Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 526640

Summary: update of udev causes udevd to change the context
Product: Red Hat Enterprise Linux 5 Reporter: Tomas Smetana <tsmetana>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED ERRATA QA Contact: BaseOS QE <qe-baseos-auto>
Severity: low Docs Contact:
Priority: low    
Version: 5.4CC: mmalik, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 07:50:16 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 Tomas Smetana 2009-10-01 08:54:02 UTC
Description of problem:
When updating udev, the udev daemon is restarted in the post scriptlet which causes it to change the SELinux context.

Version-Release number of selected component (if applicable):
selinux-policy-2.4.6-255

How reproducible:
always

Steps to Reproduce:
1. rpm -Uvh udev-095-14.21.i386.rpm
2. ps -Z grep udev
  
Actual results:
[root@localhost i386]# ps -AZ | grep udev
system_u:system_r:udev_t:SystemLow-SystemHigh 343 ? 00:00:01 udevd
[root@localhost i386]# rpm -Uvh udev-095-14.21.i386.rpm
Preparing...                ########################################### [100%]
  1:udev                   ########################################### [100%]
[root@localhost i386]# ps -AZ | grep udev
user_u:system_r:rpm_script_t     3973 ?        00:00:00 udevd

Expected results:
the context remains system_u:system_r:udev_t.

Additional info:
This bug has been already fixed somewhere between selinux-policy-2.4.6-255
and selinux-policy-2.4.6-257 but I was unable to find a corresponding bugreport.  I have been asked to create one for tracking purposes and to ensure the fix is tested in 5.5.

Comment 1 Daniel Walsh 2009-10-01 13:37:55 UTC
Not sure when it was fixed but I will say

Fixed in selinux-policy-2.4.6-257.el5

Comment 6 errata-xmlrpc 2010-03-30 07:50:16 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 therefore 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-2010-0182.html