Bug 153713 - restorecon should be conditional
Summary: restorecon should be conditional
Keywords:
Status: CLOSED DUPLICATE of bug 153100
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2005-04-05 06:21 UTC by Robert Scheck
Modified: 2014-03-17 02:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-04-05 18:06:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.