Red Hat Bugzilla – Bug 199643
restorecond should not run with selinux disabled
Last modified: 2007-11-30 17:11:38 EST
Description of problem:
restorecond starts even with selinux disabled, and then it goes on over and over
trying to set the context of files such as /etc/mtab without ever succeeding.
Version-Release number of selected component (if applicable):
Moreover, it should not touch the lock file in /var/lock/subsys if it fails to
It looks to me that adding at the beginning of this script a line
[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 0
would solve the issue right away.
Fixed in policycoreutils-1_30_22-2