From: Harald Hoyer Date: Wed, 2 Feb 2011 14:10:42 +0000 (+0100) Subject: selinux: call emergency_shell for failures X-Git-Tag: 008~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9d7fda0e13341ab0ac13b0bb1272c1f58f04fa1;p=thirdparty%2Fdracut.git selinux: call emergency_shell for failures --- diff --git a/modules.d/98selinux/selinux-loadpolicy.sh b/modules.d/98selinux/selinux-loadpolicy.sh index 7cb794b68..86a99e9da 100755 --- a/modules.d/98selinux/selinux-loadpolicy.sh +++ b/modules.d/98selinux/selinux-loadpolicy.sh @@ -52,7 +52,7 @@ rd_load_policy() if [ $ret -eq 3 -o $permissive -eq 0 ]; then warn "Machine in enforcing mode." warn "Not continuing" - sleep 100d + emergency_shell -n selinux exit 1 fi return 0 @@ -60,7 +60,7 @@ rd_load_policy() 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" - sleep 100d + emergency_shell -n selinux exit 1 fi }