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 1405716 - SELinux is preventing /usr/bin/python2.7 from read access on the file unix.
Summary: SELinux is preventing /usr/bin/python2.7 from read access on the file unix.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: selinux-policy
Version: 7.3
Hardware: x86_64
OS: Linux
unspecified
urgent
Target Milestone: rc
: ---
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-17 18:26 UTC by Brian J. Murrell
Modified: 2018-04-10 12:26 UTC (History)
6 users (show)

Fixed In Version: selinux-policy-3.13.1-177.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 12:25:40 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0763 0 None None None 2018-04-10 12:26:24 UTC

Description Brian J. Murrell 2016-12-17 18:26:53 UTC
SELinux is preventing /usr/bin/python2.7 from read access on the file unix.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that python2.7 should be allowed read access on the unix file by default.
Then you should report this as a bug.
You can generate a local policy module to allow this access.
Do
allow this access for now by executing:
# ausearch -c 'ipa-dnskeysyncd' --raw | audit2allow -M my-ipadnskeysyncd
# semodule -i my-ipadnskeysyncd.pp


Additional Information:
Source Context                system_u:system_r:ipa_dnskey_t:s0
Target Context                system_u:object_r:proc_net_t:s0
Target Objects                unix [ file ]
Source                        ipa-dnskeysyncd
Source Path                   /usr/bin/python2.7
Port                          <Unknown>
Host                          server.interlinx.bc.ca
Source RPM Packages
Target RPM Packages
Policy RPM                    selinux-policy-3.13.1-102.el7_3.7.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     server.interlinx.bc.ca
Platform                      Linux server.interlinx.bc.ca
                              3.10.0-514.2.2.el7.x86_64 #1 SMP Tue Dec 6
                              23:06:41 UTC 2016 x86_64 x86_64
Alert Count                   825
First Seen                    2016-12-16 22:09:54 EST
Last Seen                     2016-12-17 13:23:10 EST
Local ID                      06ab36fb-2d79-4937-a7ca-51c50af854cf

Raw Audit Messages
type=AVC msg=audit(1481998990.686:7332): avc:  denied  { read } for  pid=29769 comm="ipa-dnskeysyncd" name="unix" dev="proc" ino=4026532003 scontext=system_u:system_r:ipa_dnskey_t:s0 tcontext=system_u:object_r:proc_net_t:s0 tclass=file


Hash: ipa-dnskeysyncd,ipa_dnskey_t,proc_net_t,file,read

Comment 2 Milos Malik 2016-12-19 10:30:08 UTC
# ls -il /proc/net/unix 
4026532003 -r--r--r--. 1 root root 0 Dec 19 05:28 /proc/net/unix
# ls -Z /proc/net/unix 
-r--r--r--. root root system_u:object_r:proc_net_t:s0  /proc/net/unix
#

My guess is that SELinux policy developers should allow { getattr open read } to proc_net_t for all domains.

Comment 9 errata-xmlrpc 2018-04-10 12:25:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0763


Note You need to log in before you can comment on or make changes to this bug.