Bug 239460 - upgrading selinux overwrites contexts/users/root
upgrading selinux overwrites contexts/users/root
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: selinux-policy (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
Depends On:
  Show dependency treegraph
Reported: 2007-05-08 11:50 EDT by Ronan Waide
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version: RHBA-2007-0544
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-11-07 11:39:38 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Ronan Waide 2007-05-08 11:50:53 EDT
Description of problem:
I run a modified contexts/users/root which allows root to log in as sysadm_r.
Every selinux policy upgrade overwrites this file unconditionally, occasionally
resulting in me losing root access to the box when I forget to re-edit the file. 

Version-Release number of selected component (if applicable):
all version/release numbers for RHEL5, up to and including the current
u1-prerelease on dwalsh's people.redhat.com page. Latest version installed is

How reproducible:
100% reproducible

Steps to Reproduce:
1. edit /etc/selinux/{policy}/contexts/users/root
2. upgrade selinux-policy-{policy}
3. check root file

Actual results:
changes are overwritten by upgrade. file is not even saved as '.rpmsave'

Expected results:
file should be flagged as a config file and either left untouched or moved to
Comment 1 Daniel Walsh 2007-05-14 14:24:13 EDT
I have fixed this in all future updates to config/noreplace

selinux-policy-2.4.6-69 and beyond will have this fix.
Comment 2 RHEL Product and Program Management 2007-06-04 16:44:17 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
Comment 7 errata-xmlrpc 2007-11-07 11:39:38 EST
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.