Do not attempt to load policy if selinux-policy is not installed.
parent
d03caf15cc
commit
76434898ad
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
# FIXME: load selinux policy. this should really be done after we switchroot
|
||||
[ -x "$NEWROOT/usr/sbin/load_policy" ] && {
|
||||
[ -x "$NEWROOT/usr/sbin/load_policy" ] && [ -x "$NEWROOT/etc/sysconfig/selinux" ] {
|
||||
chroot $NEWROOT /usr/sbin/load_policy -i
|
||||
if [ $? -eq 3 ]; then
|
||||
echo "Initial SELinux policy load failed and enforcing mode requested."
|
||||
|
|
|
|||
Loading…
Reference in New Issue