Browse Source

selinux-loadpolicy.sh: also check for /etc/selinux/config

master
Harald Hoyer 16 years ago
parent
commit
233f79df99
  1. 3
      modules.d/99base/selinux-loadpolicy.sh

3
modules.d/99base/selinux-loadpolicy.sh

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
# FIXME: load selinux policy. this should really be done after we switchroot # FIXME: load selinux policy. this should really be done after we switchroot


if [ -x "$NEWROOT/usr/sbin/load_policy" -o -x "$NEWROOT/sbin/load_policy" ] && [ -e "$NEWROOT/etc/sysconfig/selinux" ]; then if [ -x "$NEWROOT/usr/sbin/load_policy" -o -x "$NEWROOT/sbin/load_policy" ] \
&& [ -e "$NEWROOT/etc/sysconfig/selinux" -o -e "$NEWROOT/etc/selinux/config" ]; then
ret=0 ret=0
info "Loading SELinux policy" info "Loading SELinux policy"
{ {

Loading…
Cancel
Save