Bug 239460

Summary: upgrading selinux overwrites contexts/users/root
Product: Red Hat Enterprise Linux 5 Reporter: Ronan Waide <waider>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: dwalsh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: RHBA-2007-0544 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-07 16:39:38 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 Ronan Waide 2007-05-08 15:50:53 UTC
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
selinux-policy-strict-2.4.6-67

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

Comment 1 Daniel Walsh 2007-05-14 18:24:13 UTC
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 Program Management 2007-06-04 20:44:17 UTC
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
release.

Comment 7 errata-xmlrpc 2007-11-07 16:39:38 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.

http://rhn.redhat.com/errata/RHBA-2007-0544.html