[selinux-policy] Test if selinuxenabled correctly
Daniel J Walsh
dwalsh at fedoraproject.org
Thu Dec 22 15:32:27 UTC 2011
commit 5a73fdc4eec9ecf8079646abc100874796a57cf4
Author: Dan Walsh <dwalsh at redhat.com>
Date: Thu Dec 22 15:32:22 2011 +0000
Test if selinuxenabled correctly
selinux-policy.spec | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/selinux-policy.spec b/selinux-policy.spec
index abde030..fdee870 100644
--- a/selinux-policy.spec
+++ b/selinux-policy.spec
@@ -218,7 +218,7 @@ if [ -e /etc/selinux/%2/.rebuild ]; then \
rm -f /etc/selinux/%2/modules/active/modules/qemu.pp /etc/selinux/%2/modules/active/modules/nsplugin.pp \
/usr/sbin/semodule -B -n -s %2; \
fi; \
-[ "${SELINUXTYPE}" == "%2" ] && [ selinuxenabled ] && load_policy; \
+[ "${SELINUXTYPE}" == "%2" ] && selinuxenabled && load_policy; \
if [ %1 -eq 1 ]; then \
/sbin/restorecon -R /root /var/log /var/run 2> /dev/null; \
else \
More information about the scm-commits
mailing list