aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-11-19 03:04:13 +0100
committerBill Nottingham <notting@redhat.com>2010-11-21 23:01:57 -0500
commit2cc340fbe91ac28c5e3786e58429c3e5c62e79d6 (patch)
tree8d656267192dd80b19732af47fc2eb792361aeb4
parent5d5f11e49ac230d5d92ccc28512bcf387c22286c (diff)
downloadinitscripts-2cc340fbe91ac28c5e3786e58429c3e5c62e79d6.tar
initscripts-2cc340fbe91ac28c5e3786e58429c3e5c62e79d6.tar.gz
initscripts-2cc340fbe91ac28c5e3786e58429c3e5c62e79d6.tar.bz2
initscripts-2cc340fbe91ac28c5e3786e58429c3e5c62e79d6.tar.xz
initscripts-2cc340fbe91ac28c5e3786e58429c3e5c62e79d6.zip
fedora-autorelabel: drop disable_selinux() since it is unused
-rwxr-xr-xsystemd/fedora-autorelabel7
1 files changed, 0 insertions, 7 deletions
diff --git a/systemd/fedora-autorelabel b/systemd/fedora-autorelabel
index 2a5cc491..326837b2 100755
--- a/systemd/fedora-autorelabel
+++ b/systemd/fedora-autorelabel
@@ -19,13 +19,6 @@ if [ -e "/selinux/enforce" ] && [ "$(cat /proc/self/attr/current)" != "kernel" ]
fi
fi
-disable_selinux() {
- echo $"*** Warning -- SELinux is active"
- echo $"*** Disabling security enforcement for system recovery."
- echo $"*** Run 'setenforce 1' to reenable."
- echo "0" > "/selinux/enforce"
-}
-
relabel_selinux() {
# if /sbin/init is not labeled correctly this process is running in the
# wrong context, so a reboot will be required after relabel