Bug 199643 - restorecond should not run with selinux disabled
Summary: restorecond should not run with selinux disabled
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: policycoreutils
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Ben Levenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-07-20 23:01 UTC by Alexandre Oliva
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-08-02 18:19:52 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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


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