aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-08-27 13:25:41 -0400
committerBill Nottingham <notting@redhat.com>2009-08-27 13:25:41 -0400
commit9c489daad152a05c2d330f5cb92f49fadf45a084 (patch)
tree9426e03f038fe9b076f4e1efa181435ec3622e76
parent9bdccfbb11bee1b9fc58b7a581b8ba4542bb7196 (diff)
downloadinitscripts-9c489daad152a05c2d330f5cb92f49fadf45a084.tar
initscripts-9c489daad152a05c2d330f5cb92f49fadf45a084.tar.gz
initscripts-9c489daad152a05c2d330f5cb92f49fadf45a084.tar.bz2
initscripts-9c489daad152a05c2d330f5cb92f49fadf45a084.tar.xz
initscripts-9c489daad152a05c2d330f5cb92f49fadf45a084.zip
Restore context of recreated files. (#519748)
-rwxr-xr-xrc.d/rc.sysinit1
1 files changed, 1 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 1b49033d..dd3c053e 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -770,6 +770,7 @@ if [ -n "$_NEED_XFILES" ]; then
chgrp utmp /var/run/utmpx /var/log/wtmpx
chmod 0664 /var/run/utmpx /var/log/wtmpx
fi
+[ -n "$SELINUX_STATE" ] && restorecon /var/run/utmp* /var/log/wtmp* >/dev/null 2>&1
# Clean up various /tmp bits
[ -n "$SELINUX_STATE" ] && restorecon /tmp