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 154885 - the file /.autorelabel not created when enabling SELinux
Summary: the file /.autorelabel not created when enabling SELinux
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: system-config-securitylevel
Version: 4.0
Hardware: All
OS: Linux
Target Milestone: ---
: ---
Assignee: Chris Lumens
QA Contact:
Depends On:
Blocks: 156322
TreeView+ depends on / blocked
Reported: 2005-04-14 18:01 UTC by Eric Paris
Modified: 2007-11-30 22:07 UTC (History)
1 user (show)

Fixed In Version: RHBA-2005-726
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-10-05 17:25:55 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2005:726 qe-ready SHIPPED_LIVE system-config-securitylevel bug fix update 2005-10-05 04:00:00 UTC

Description Eric Paris 2005-04-14 18:01:22 UTC
Description of problem:  When system-config-securitylevel is used to switch
SELinux from disabled to enabled the file /.autorelabel must be created. 
Systems which were installed or run for any time with selinux disabled will have
files with incorrect or no SELinux context.  This causes the system to work very
poorly if at all.

The existance of /.autorelabel is checked by rc.sysinit on bootup and relabels
all of the files on the FS with the best selinux labels it can.  We cannot
reasonably expect users to use the gui to change from disabled to enabled and
then to go to the command line and run "touch /.autorelabel"

Moving from enabled to disabled does not need any modification.  There also does
not need to be any changes when moving from enforcing to permissive or vice
versa.  This file only needs to be created when changing from disabled to enabled.

Version-Release number of selected component (if applicable):  Latest RHEL4 and FC4

How reproducible: Always

Steps to Reproduce:
1.  run system-config-securitylevel
2.  disable selinux
3.  enables selinux
4.  check for the existance of /.autorelabel
Actual results:
No file created

Expected results:
Empty /.autorelabel file created

Comment 6 Chris Lumens 2005-04-22 17:33:38 UTC
Package built.

Comment 13 Red Hat Bugzilla 2005-10-05 17:25:55 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

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