Bug 199643

Summary: restorecond should not run with selinux disabled
Product: [Fedora] Fedora Reporter: Alexandre Oliva <oliva>
Component: policycoreutilsAssignee: Daniel Walsh <dwalsh>
Status: CLOSED RAWHIDE QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dwalsh, notting, pgraner
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-08-02 18:19:52 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 Alexandre Oliva 2006-07-20 23:01:45 UTC
Description of problem:
restorecond starts even with selinux disabled, and then it goes on over and over
trying to set the context of files such as /etc/mtab without ever succeeding.

Version-Release number of selected component (if applicable):
policycoreutils-1.30.17-5

Comment 1 Bill Nottingham 2006-08-01 19:13:23 UTC
Moreover, it should not touch the lock file in /var/lock/subsys if  it fails to
start.

Comment 2 Michal Jaegermann 2006-08-02 16:56:32 UTC
It looks to me that adding at the beginning of this script a line
like

[ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled || exit 0

would solve the issue right away.

Comment 3 Daniel Walsh 2006-08-02 18:19:52 UTC
Fixed in policycoreutils-1_30_22-2