]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
selinux: fix "selinux=0" handling
authorHarald Hoyer <harald@redhat.com>
Thu, 18 Feb 2010 07:46:57 +0000 (08:46 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 18 Feb 2010 07:46:57 +0000 (08:46 +0100)
modules.d/99base/selinux-loadpolicy.sh

index f3bacec0280d281fbfaccfcd6982e53bc5d83699..93d6f2cff393cac7c58bb7b0f7f8eba829ac8b8b 100755 (executable)
@@ -55,7 +55,7 @@ rd_load_policy()
            exit 1
        fi
        return 0
-    elif [ $permissive -eq 0 ]; then
+    elif [ $permissive -eq 0 -a $disabled -eq 0 ]; then
        warn "Machine in enforcing mode and cannot execute load_policy."
        warn "To disable selinux, add selinux=0 to the kernel command line."
        warn "Not continuing"