summaryrefslogtreecommitdiffstats
path: root/reset-selinux.sh
diff options
context:
space:
mode:
authorD. Johnson <fenris02@fedoraproject.org>2011-12-02 01:18:02 -0600
committerD. Johnson <fenris02@fedoraproject.org>2011-12-02 01:18:02 -0600
commitc7cc3f012b715b21d4844a1c9c1e7672382720b1 (patch)
tree47072bd4239408da4d5cf43f70cba1f00125d390 /reset-selinux.sh
parenta3d75d633ce49c5ea84823c2408ac2d009fcae68 (diff)
downloadcleanup-c7cc3f012b715b21d4844a1c9c1e7672382720b1.tar.gz
cleanup-c7cc3f012b715b21d4844a1c9c1e7672382720b1.tar.xz
cleanup-c7cc3f012b715b21d4844a1c9c1e7672382720b1.zip
Ensure tools are installed as well.
Diffstat (limited to 'reset-selinux.sh')
-rw-r--r--reset-selinux.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/reset-selinux.sh b/reset-selinux.sh
index 72e8551..a3f4bef 100644
--- a/reset-selinux.sh
+++ b/reset-selinux.sh
@@ -8,12 +8,12 @@ TMPDIR=/root/tmp
[ -x /usr/sbin/semanage ] || yum install -y policycoreutils-python
[ -x /usr/sbin/setenforce ] || yum install -y libselinux-utils
-semanage -o ${TMPDIR}/SELINUX-CUSTOM-CONFIG_${DS}.txt
setenforce 0
+semanage -o ${TMPDIR}/SELINUX-CUSTOM-CONFIG_${DS}.txt
mv /etc/selinux/targeted ${TMPDIR}/targeted.${DS}
install -d -m 0755 -o root -g root /etc/selinux/targeted
-yum reinstall -y selinux-policy-targeted selinux-policy
+yum reinstall -y selinux-policy{,-targeted} policycoreutils{,-newrole,-restorecond,-sandbox}
semanage -i ${TMPDIR}/SELINUX-CUSTOM-CONFIG_${DS}.txt
setenforce 1