Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 153713 - restorecon should be conditional
Summary: restorecon should be conditional
Status: CLOSED DUPLICATE of bug 153100
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
Depends On:
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:
Last Closed: 2005-04-05 18:06:29 UTC

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):

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

 # 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.