Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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-automation>
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:
Embargoed:
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