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 1598201

Summary: avc: denied { map } comm="systemd-sysctl" path="/etc/ld.so.cache" on rhel-alt-7.6 s390x installation
Product: Red Hat Enterprise Linux 7 Reporter: Edjunior Barbosa Machado <emachado>
Component: selinux-policyAssignee: Lukas Vrabec <lvrabec>
Status: CLOSED NOTABUG QA Contact: Milos Malik <mmalik>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.6-AltCC: lvrabec, mgrepl, mmalik, plautrba, ssekidde
Target Milestone: rc   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-17 21:40:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/distribution/install/Sysinfo logfile none

Description Edjunior Barbosa Machado 2018-07-04 15:38:29 UTC
Created attachment 1456520 [details]
/distribution/install/Sysinfo logfile

Description of problem:

AVC failures are occurring during RHEL-ALT-7.6-20180626.3 Server s390x installation via beaker (https://beaker.engineering.redhat.com/recipes/5348461#task75053690):

******** SElinux AVC Failures ********
[    5.523065] audit: type=1400 audit(1530711965.557:4): avc:  denied  { map } for  pid=852 comm="systemd-sysctl" path="/etc/ld.so.cache" dev="dm-0" ino=17492956 scontext=system_u:system_r:systemd_sysctl_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
[    5.631601] audit: type=1400 audit(1530711965.667:5): avc:  denied  { map } for  pid=870 comm="systemd-tmpfile" path="/etc/ld.so.cache" dev="dm-0" ino=17492956 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
[    5.644381] audit: type=1400 audit(1530711965.687:6): avc:  denied  { map } for  pid=868 comm="systemd-hwdb" path="/etc/ld.so.cache" dev="dm-0" ino=17492956 scontext=system_u:system_r:systemd_hwdb_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
[    5.746727] audit: type=1400 audit(1530711965.787:7): avc:  denied  { map } for  pid=897 comm="hostname" path="/etc/ld.so.cache" dev="dm-0" ino=17492956 scontext=system_u:system_r:hostname_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
[    7.372538] audit: type=1400 audit(1530711967.407:8): avc:  denied  { map } for  pid=1115 comm="restorecon" path="/etc/ld.so.cache" dev="dm-0" ino=17492956 scontext=system_u:system_r:setfiles_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
[    7.384807] audit: type=1400 audit(1530711967.427:9): avc:  denied  { map } for  pid=1117 comm="systemd-tmpfile" path="/etc/ld.so.cache" dev="dm-0" ino=17492956 scontext=system_u:system_r:systemd_tmpfiles_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=file permissive=0
******** End System Information ********

This problem was not found when installing in other architectures.

Version-Release number of selected component (if applicable):
selinux-policy-3.13.1-204.el7.noarch

How reproducible:
2 of 2 attempts when installing RHEL-ALT-7.6-20180626.3 Server s390x on beaker

Actual results:
/distribution/install/Sysinfo logfile attached

Expected results:
No AVC failures

Comment 2 Milos Malik 2018-07-09 10:25:53 UTC
The /etc/ld.so.cache file is mislabeled, because SELinux denials mentioned above show tcontext=system_u:object_r:etc_t:s0. Correct label is:

# matchpathcon /etc/ld.so.cache 
/etc/ld.so.cache	system_u:object_r:ld_so_cache_t:s0
#

Please run following command, which corrects the label:

# restorecon -Rv /etc

Comment 3 Lukas Vrabec 2018-07-17 21:40:25 UTC
Based on comment#2 closing this ticket.