From 2cc340fbe91ac28c5e3786e58429c3e5c62e79d6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 19 Nov 2010 03:04:13 +0100 Subject: fedora-autorelabel: drop disable_selinux() since it is unused --- systemd/fedora-autorelabel | 7 ------- 1 file changed, 7 deletions(-) (limited to 'systemd') 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 -- cgit v1.2.1