From b0ed17e48b58d1fe4f2ee518f9854847d20c0fdc Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 3 May 2004 21:16:34 +0000 Subject: fix selinux short-circuit test (#121143, ) --- rc.d/rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d') 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 -- cgit v1.2.1