aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-01 19:15:37 +0000
committerBill Nottingham <notting@redhat.com>2005-04-01 19:15:37 +0000
commit6bf3cbefeada64211b776d4c37d155fcde7f5b4f (patch)
treeeb3880a20f4a0c5618232856a1112fbe80c71931 /rc.d/rc.sysinit
parent170aa264f196111dd4a644fe81f08a300566bcd1 (diff)
downloadinitscripts-6bf3cbefeada64211b776d4c37d155fcde7f5b4f.tar
initscripts-6bf3cbefeada64211b776d4c37d155fcde7f5b4f.tar.gz
initscripts-6bf3cbefeada64211b776d4c37d155fcde7f5b4f.tar.bz2
initscripts-6bf3cbefeada64211b776d4c37d155fcde7f5b4f.tar.xz
initscripts-6bf3cbefeada64211b776d4c37d155fcde7f5b4f.zip
fix restorecon invocation (#153100)
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 6b067a4c..266cac2d 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -593,7 +593,7 @@ if [ -n "$_NEED_XFILES" ]; then
fi
# Clean up various /tmp bits
-restorecon /tmp
+[ -n "$SELINUX" ] && restorecon /tmp
rm -f /tmp/.X*-lock /tmp/.lock.* /tmp/.gdm_socket /tmp/.s.PGSQL.*
rm -rf /tmp/.X*-unix /tmp/.ICE-unix /tmp/.font-unix /tmp/hsperfdata_* \
/tmp/kde-* /tmp/ksocket-* /tmp/mc-* /tmp/mcop-* /tmp/orbit-* \