Blame dracut-004-forcepermissive.patch
|
Harald Hoyer |
a4fab5 |
diff -up dracut-004/modules.d/99base/selinux-loadpolicy.sh.load dracut-004/modules.d/99base/selinux-loadpolicy.sh
|
|
Harald Hoyer |
a4fab5 |
--- dracut-004/modules.d/99base/selinux-loadpolicy.sh.load 2010-01-15 14:07:54.000000000 +0100
|
|
Harald Hoyer |
a4fab5 |
+++ dracut-004/modules.d/99base/selinux-loadpolicy.sh 2010-01-26 11:23:56.000000000 +0100
|
|
Harald Hoyer |
a4fab5 |
@@ -37,6 +37,8 @@ rd_load_policy()
|
|
Harald Hoyer |
a4fab5 |
} 2>&1 | vinfo
|
|
Harald Hoyer |
a4fab5 |
|
|
Harald Hoyer |
a4fab5 |
if [ $ret -eq 0 -o $ret -eq 2 ]; then
|
|
Harald Hoyer |
a4fab5 |
+ # If machine requires a relabel, force to permissive mode
|
|
Harald Hoyer |
a4fab5 |
+ [ -e "$NEWROOT"/.autorelabel ] && ( echo 0 > "$NEWROOT"/selinux/enforce )
|
|
Harald Hoyer |
a4fab5 |
return 0
|
|
Harald Hoyer |
a4fab5 |
fi
|
|
Harald Hoyer |
a4fab5 |
|