Bug 685090

Summary: mislabeled files in fresh RHEL6.1-20110311.3 installation
Product: Red Hat Enterprise Linux 6 Reporter: Karel Srot <ksrot>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: high Docs Contact:
Priority: high    
Version: 6.1CC: atodorov, syeghiay
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-13.21.106-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 12:39:04 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 682670    
Attachments:
Description Flags
anaconda.log none

Description Karel Srot 2011-03-15 09:33:01 UTC
Description of problem:

Following was executed right after the postinstall reboot:

[root@rhel6-64 ~]# ls -Z /etc/udev/rules.d/70-persistent-net.rules
-rw-r--r--. root root system_u:object_r:root_t:s0      /etc/udev/rules.d/70-persistent-net.rules
[root@rhel6-64 ~]# matchpathcon /etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/70-persistent-net.rules	system_u:object_r:udev_var_run_t:s0
[root@rhel6-64 ~]# ls -Z /etc/dhcp/dhclient-eth0.conf
-rw-r--r--. root root system_u:object_r:root_t:s0      /etc/dhcp/dhclient-eth0.conf
[root@rhel6-64 ~]# matchpathcon /etc/dhcp/dhclient-eth0.conf
/etc/dhcp/dhclient-eth0.conf	system_u:object_r:dhcp_etc_t:s0
[root@rhel6-64 ~]# ls -Z /etc/fstab
-rw-r--r--. root root system_u:object_r:root_t:s0      /etc/fstab
[root@rhel6-64 ~]# matchpathcon /etc/fstab
/etc/fstab	system_u:object_r:etc_t:s0
[root@rhel6-64 ~]# ls -Z /etc/mdadm.conf
-rw-r--r--. root root system_u:object_r:root_t:s0      /etc/mdadm.conf
[root@rhel6-64 ~]# matchpathcon /etc/mdadm.conf
/etc/mdadm.conf	system_u:object_r:etc_t:s0
[root@rhel6-64 ~]# ls -Z /etc/crypttab
-rw-r--r--. root root system_u:object_r:root_t:s0      /etc/crypttab
[root@rhel6-64 ~]# matchpathcon /etc/crypttab
/etc/crypttab	system_u:object_r:etc_t:s0
[root@rhel6-64 ~]# ls -Z /var/log/yum.log
-rw-------. root root unconfined_u:object_r:rpm_log_t:s0 /var/log/yum.log
[root@rhel6-64 ~]# matchpathcon /var/log/yum.log
/var/log/yum.log	system_u:object_r:rpm_log_t:s0


Version-Release number of selected component (if applicable):
RHEL6.1-20110311.3

How reproducible:
always

Steps to Reproduce:
1. fresh install


This was not full install, it is possible that there is even more mislabeled files in the system.

Comment 1 Chris Lumens 2011-03-15 12:53:02 UTC
All of those files are in the list of things anaconda relabels.  Please attach /var/log/anaconda.log from the installed system to this bug report.  In general when reporting installer bugs, always attach log files.

Comment 2 Karel Srot 2011-03-15 14:18:53 UTC
Created attachment 484799 [details]
anaconda.log

attached

Comment 4 Alexander Todorov 2011-03-30 09:31:00 UTC
With RHEL6.1-20110328.n.0/anaconda-13.21.107-1.el6 after fresh default install of the Server variant I get: 

# ls -Z /etc/udev/rules.d/70-persistent-net.rules
-rw-r--r--. root root system_u:object_r:udev_var_run_t:s0 /etc/udev/rules.d/70-persistent-net.rules

# matchpathcon /etc/udev/rules.d/70-persistent-net.rules
/etc/udev/rules.d/70-persistent-net.rules    system_u:object_r:udev_var_run_t:s0

# ls -Z /etc/dhcp/dhclient-eth0.conf
-rw-r--r--. root root system_u:object_r:dhcp_etc_t:s0  /etc/dhcp/dhclient-eth0.conf

#  matchpathcon /etc/dhcp/dhclient-eth0.conf
/etc/dhcp/dhclient-eth0.conf	system_u:object_r:dhcp_etc_t:s0

# ls -Z /etc/fstab
-rw-r--r--. root root system_u:object_r:etc_t:s0       /etc/fstab

#  matchpathcon /etc/fstab
/etc/fstab	system_u:object_r:etc_t:s0

# ls -Z /etc/mdadm.conf
-rw-r--r--. root root system_u:object_r:etc_t:s0       /etc/mdadm.conf

# matchpathcon /etc/mdadm.conf
/etc/mdadm.conf	system_u:object_r:etc_t:s0

# ls -Z /etc/crypttab
-rw-r--r--. root root system_u:object_r:etc_t:s0       /etc/crypttab

# matchpathcon /etc/crypttab
/etc/crypttab	system_u:object_r:etc_t:s0

# ls -Z /var/log/yum.log
-rw-------. root root unconfined_u:object_r:rpm_log_t:s0 /var/log/yum.log

#  matchpathcon /var/log/yum.log
/var/log/yum.log	system_u:object_r:rpm_log_t:s0

Comment 5 errata-xmlrpc 2011-05-19 12:39:04 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-2011-0530.html