I recently experienced failure during "semodule -i" that brought down X and forced me to hard-reboot the system. After that further policy operations resulted in the following error: libsemanage.semanage_load_module: Error while reading from module file /etc/selinux/targeted/modules/tmp/base.pp. (No such file or directory) I managed to find https://bugzilla.redhat.com/show_bug.cgi?id=518094 and based on this here are my successful recover steps on Gentoo (I think it would be worth it to add them to the Troubleshooting section of the Handbook): setenforce 0 mv /etc/selinux/targeted /etc/selinux/targeted.old FEATURES="-selinux" emerge -1av $(eix -I --only-names sec-policy/) restorecon -R /etc/selinux
Fixed in CVS