Description of problem: Yum installation of selinux-policy-targeted-2.2.40-1.fc5 fails: Updating : selinux-policy-targeted ####################### [15/36] Traceback (most recent call last): File "/usr/sbin/genhomedircon", line 373, in ? selconf.write() File "/usr/sbin/genhomedircon", line 334, in write fd.write(self.genoutput()) File "/usr/sbin/genhomedircon", line 321, in genoutput for h in self.getHomeDirs(): File "/usr/sbin/genhomedircon", line 311, in getHomeDirs if self.checkExists(homedir) == 1: File "/usr/sbin/genhomedircon", line 287, in checkExists regex = i.split()[0] IndexError: list index out of range libsemanage.semanage_install_sandbox: genhomedircon returned error code 1. genhomedir is attempting to process /etc/selinux/targeted/contexts/files/file_contexts, when it fails. This file is corrupted with stuff like: ######################################## # # Macros for switching between source policy # and loadable policy module support # The corrupted file is apparently generated by the semodule command in the post-install script. The only .pp files in /usr/share/selinux/targeted are base.pp, clamav.pp, and enableaudit.pp, so the semodule command is: semodule -b base.pp -i clamav.pp -s targeted Running this by hand results in the corrupted file_contexts and the genhomedircon error. Running it without the -i clamav.pp appears to correct the problem. Version-Release number of selected component (if applicable): selinux-policy-targeted-2.2.40-1.fc5 How reproducible: Steps to Reproduce: 1. Yum install selinux-policy-targeted-2.2.40-1.fc5 2. Or after installation: semodule -b base.pp -i clamav.pp -s targeted 3. Actual results: Corrupted file_contexts and error in genhomedircon Expected results: Clean installation Additional info:
Fixed in policycoreutils-1.30.10-1.fc5
Closing bugs