Do not attempt to load policy if selinux-policy is not installed.

master
Warren Togami 2009-05-21 14:34:38 -04:00
parent d03caf15cc
commit 76434898ad
1 changed files with 1 additions and 1 deletions

View File

@ -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."