aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorPetr Lautrbach <plautrba@redhat.com>2011-10-07 15:57:47 +0200
committerPetr Lautrbach <plautrba@redhat.com>2011-10-07 15:57:47 +0200
commitc21d4c974b2305c8ce6d429888be61d886fdcd44 (patch)
treec2a2210b894fb7798b63e2fc8ccc8bcfb170e4dd /rc.d
parenta95746251b1177165992faad43be3f5b402cb41b (diff)
downloadinitscripts-c21d4c974b2305c8ce6d429888be61d886fdcd44.tar
initscripts-c21d4c974b2305c8ce6d429888be61d886fdcd44.tar.gz
initscripts-c21d4c974b2305c8ce6d429888be61d886fdcd44.tar.bz2
initscripts-c21d4c974b2305c8ce6d429888be61d886fdcd44.tar.xz
initscripts-c21d4c974b2305c8ce6d429888be61d886fdcd44.zip
use restorecon -F for /dev and /dev/pts (#743222)
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 2 insertions, 2 deletions
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