diff options
author | Bill Nottingham <notting@redhat.com> | 2004-05-03 21:16:34 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2004-05-03 21:16:34 +0000 |
commit | b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc (patch) | |
tree | 856b23458489c6e25fe46150cb0827770b5fe58d /rc.d/rc.sysinit | |
parent | 17ea2b3b10bd96a4b59cf4d62b826b6e3e39f6fe (diff) | |
download | initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.tar initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.tar.gz initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.tar.bz2 initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.tar.xz initscripts-b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc.zip |
fix selinux short-circuit test (#121143, <michal@harddata.com>)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index cfe552b7..9d735fdf 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -32,7 +32,7 @@ mount -n -t sysfs /sys /sys >/dev/null 2>&1 # Check SELinux status selinuxfs=`awk '/ selinuxfs / { print $2 }' /proc/mounts` SELINUX= -if [ -n "$selinuxfs" -a "`cat /proc/self/attr/current`" != "kernel" ]; then +if [ -n "$selinuxfs" ] && [ "`cat /proc/self/attr/current`" != "kernel" ]; then if [ -r $selinuxfs/enforce ] ; then SELINUX=`cat $selinuxfs/enforce` else |