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 1878020 - SELinux is preventing /usr/libexec/platform-python3.6 from search access on the /proc/pid of dnf
Summary: SELinux is preventing /usr/libexec/platform-python3.6 from search access on t...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.2
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 8.5
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-09-11 05:39 UTC by Jing Huo
Modified: 2021-11-10 08:25 UTC (History)
4 users (show)

Fixed In Version: selinux-policy-3.14.3-72.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 19:42:29 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4420 0 None None None 2021-11-09 19:42:47 UTC

Description Jing Huo 2020-09-11 05:39:12 UTC
Description of problem:

SELinux is preventing rhsmcertd-worke from search access on the /proc/pid of dnf .

Version-Release number of selected component (if applicable):

selinux-policy-3.14.3-41.el8_2.5.noarch

SELinux is preventing /usr/libexec/platform-python3.6 from search access on the derectory 7279.

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

If you believe that platform-python3.6 should be allowed search access on the 7279 directory 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 'rhsmcertd-worke' --raw | audit2allow -M my-rhsmcertdworke
# semodule -X 300 -i my-rhsmcertdworke.pp

Additional Information:
Source Context                     system_u:system_r:rhsmcertd_t:s0
Target Context                   system_u:system_r:rpm_t:s0
Target Objects                   7279 [ dir ]
Source                           rhsmcertd-worke
Source Path                         /usr/libexec/platform-python3.6
Port                           <Unknown>
Host                           <Unknown>
Source RPM Packages                 platform-python-3.6.8-1.el8.0.1.x86_64
Target RPM Packages
Policy RPM                      selinux-policy-3.14.3-41.el8_2.5.noarch
Selinux Enabled                   True
Policy Type                       targeted
Enforcing Mode                         Permissive
Host Name                          xxx
Platform                      Linux xxx 4.18.0-80.el8.x86_64 #1
                              SMP Tue Jun 4 09:19:46 UTC 2019 x86_64 x86_64
Alert Count                         1
First Seen                         2020-09-07 22:10:52 JST
Last Seen                         2020-09-07 22:10:52 JST
Local ID                        879f68dc-1bd0-47ba-8164-e84d74557eca

Raw Audit Messages
type=AVC msg=audit(1599484252.555:41828): avc:  denied  { search } for  pid=7220 comm="rhsmcertd-worke" name="7279" dev="proc" ino=215575551 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:system_r:rpm_t:s0 tclass=dir permissive=1

type=SYSCALL msg=audit(1599484252.555:41828): arch=x86_64 syscall=access success=yes exit=0 a0=7f9fa9133bf0 a1=0 a2=7f9fbf325a40 a3=7f9fbf01395b items=0 ppid=1159 pid=7220 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rhsmcertd-worke exe=/usr/libexec/platform-python3.6 subj=system_u:system_r:rhsmcertd_t:s0 key=(null)^]ARCH=x86_64 SYSCALL=access AUID=unset UID=root GID=root EUID=root SUID=root FSUID=root EGID=root SGID=root FSGID=root

Hash: rhsmcertd-worke,rhsmcertd_t,rpm_t,dir,search
-------------------------------------

Comment 18 errata-xmlrpc 2021-11-09 19:42:29 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 (selinux-policy bug fix and enhancement update), 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-2021:4420


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