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 1925811 - SELinux is preventing /usr/libexec/platform-python3.6 from getattr access on the file /usr/sbin/kpatch
Summary: SELinux is preventing /usr/libexec/platform-python3.6 from getattr access on ...
Keywords:
Status: CLOSED DUPLICATE of bug 1895322
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: subscription-manager
Version: 8.3
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-02-06 18:37 UTC by marinzrncic
Modified: 2021-02-16 14:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-16 14:54:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description marinzrncic 2021-02-06 18:37:19 UTC
SELinux is preventing /usr/libexec/platform-python3.6 from getattr access on the file /usr/sbin/kpatch.

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

If you believe that platform-python3.6 should be allowed getattr access on the kpatch 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 '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:object_r:kpatch_exec_t:s0
Target Objects                /usr/sbin/kpatch [ file ]
Source                        rhsmcertd-worke
Source Path                   /usr/libexec/platform-python3.6
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           kpatch-0.6.1-6.el8.noarch
SELinux Policy RPM            selinux-policy-targeted-3.14.3-54.el8_3.2.noarch
Local Policy RPM              selinux-policy-targeted-3.14.3-54.el8_3.2.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux localhost.localdomain
                              4.18.0-240.10.1.el8_3.x86_64 #1 SMP Wed Dec 16
                              03:30:52 EST 2020 x86_64 x86_64
Alert Count                   2
First Seen                    2021-02-06 15:01:28 -03
Last Seen                     2021-02-06 15:01:28 -03
Local ID                      04fff869-a844-42ec-9059-39fe0debc08f

Raw Audit Messages
type=AVC msg=audit(1612634488.155:129): avc:  denied  { getattr } for  pid=6981 comm="rhsmcertd-worke" path="/usr/sbin/kpatch" dev="sda1" ino=4082990 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=system_u:object_r:kpatch_exec_t:s0 tclass=file permissive=0


Hash: rhsmcertd-worke,rhsmcertd_t,kpatch_exec_t,file,getattr

Comment 1 Petr Viktorin (pviktori) 2021-02-10 13:11:34 UTC
Looks like an issue in rhsmcertd.

Comment 2 Rehana 2021-02-16 14:54:47 UTC

*** This bug has been marked as a duplicate of bug 1895322 ***


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