Bug 153713

Summary: restorecon should be conditional
Product: [Fedora] Fedora Reporter: Robert Scheck <redhat-bugzilla>
Component: initscriptsAssignee: Bill Nottingham <notting>
Status: CLOSED DUPLICATE QA Contact: Brock Organ <borgan>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: rvokal
Target Milestone: ---Keywords: EasyFix
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-05 18:06:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert Scheck 2005-04-05 06:21:03 UTC
Description of problem:
Like everything SELinux specific in initscripts, restorecon should be also made
conditional (onliest missing currently).

Version-Release number of selected component (if applicable):
initscripts-8.07-1

Actual results / Expected results:
--- initscripts-8.07/rc.d/rc.sysinit       2005-03-28 22:29:11.000000000 +0200
+++ initscripts-8.07/rc.d/rc.sysinit.rsc   2005-04-05 08:01:44.000000000 +0200
@@ -593,7 +593,7 @@
 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-*  \

Comment 1 Bill Nottingham 2005-04-05 18:06:29 UTC

*** This bug has been marked as a duplicate of 153100 ***