diff options
author | D. Johnson <fenris02@fedoraproject.org> | 2011-12-02 01:18:02 -0600 |
---|---|---|
committer | D. Johnson <fenris02@fedoraproject.org> | 2011-12-02 01:18:02 -0600 |
commit | c7cc3f012b715b21d4844a1c9c1e7672382720b1 (patch) | |
tree | 47072bd4239408da4d5cf43f70cba1f00125d390 /reset-selinux.sh | |
parent | a3d75d633ce49c5ea84823c2408ac2d009fcae68 (diff) | |
download | cleanup-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.sh | 4 |
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 |