From c21d4c974b2305c8ce6d429888be61d886fdcd44 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Fri, 7 Oct 2011 15:57:47 +0200 Subject: use restorecon -F for /dev and /dev/pts (#743222) --- rc.d/rc.sysinit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rc.d') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index de26855d..1dc58cd4 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -43,7 +43,7 @@ if [ -e "/selinux/enforce" ] && [ "$(cat /proc/self/attr/current)" != "kernel" ] fi if [ -n "$SELINUX_STATE" -a -x /sbin/restorecon ] && __fgrep " /dev " /proc/mounts >/dev/null 2>&1 ; then - /sbin/restorecon -R /dev 2>/dev/null + /sbin/restorecon -R -F /dev 2>/dev/null fi disable_selinux() { @@ -147,7 +147,7 @@ if [ -f /etc/rc.modules ]; then fi mount -n /dev/pts >/dev/null 2>&1 -[ -n "$SELINUX_STATE" ] && restorecon /dev/pts >/dev/null 2>&1 +[ -n "$SELINUX_STATE" ] && restorecon -F /dev/pts >/dev/null 2>&1 # Configure kernel parameters update_boot_stage RCkernelparam -- cgit v1.2.1