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 1744300 - SELinux is preventing /usr/libexec/platform-python3.6 from 'open' accesses on the file /var/log/hawkey.log.
Summary: SELinux is preventing /usr/libexec/platform-python3.6 from 'open' accesses on...
Keywords:
Status: CLOSED DUPLICATE of bug 1720639
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: selinux-policy
Version: 8.1
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Lukas Vrabec
QA Contact: Milos Malik
URL:
Whiteboard: abrt_hash:b6471f9644c8dc7a88624819561...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-08-21 19:11 UTC by Joachim Frieben
Modified: 2024-06-13 22:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-08-26 15:19:36 UTC
Type: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Joachim Frieben 2019-08-21 19:11:57 UTC
Description of problem:
SELinux is preventing /usr/libexec/platform-python3.6 from 'open' accesses on the file /var/log/hawkey.log.

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

If you believe that platform-python3.6 should be allowed open access on the hawkey.log 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                unconfined_u:object_r:var_log_t:s0
Target Objects                /var/log/hawkey.log [ file ]
Source                        rhsmcertd-worke
Source Path                   /usr/libexec/platform-python3.6
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           platform-python-3.6.8-11.el8.x86_64
Target RPM Packages           dnf-data-4.2.6-1.el8.noarch
Policy RPM                    selinux-policy-3.14.3-9.el8.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 4.18.0-107.el8.x86_64 #1 SMP Fri
                              Jun 14 13:46:34 UTC 2019 x86_64 x86_64
Alert Count                   1
First Seen                    2019-08-21 21:06:27 CEST
Last Seen                     2019-08-21 21:06:27 CEST
Local ID                      f6e01ef5-b341-4423-b7ef-ef28dac080c4

Raw Audit Messages
type=AVC msg=audit(1566414387.603:302): avc:  denied  { open } for  pid=9479 comm="rhsmcertd-worke" path="/var/log/hawkey.log" dev="dm-3" ino=131153 scontext=system_u:system_r:rhsmcertd_t:s0 tcontext=unconfined_u:object_r:var_log_t:s0 tclass=file permissive=0


type=SYSCALL msg=audit(1566414387.603:302): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffff9c a1=555df3574600 a2=441 a3=1b6 items=0 ppid=1859 pid=9479 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)

Hash: rhsmcertd-worke,rhsmcertd_t,var_log_t,file,open

Version-Release number of selected component:
selinux-policy-3.14.3-9.el8.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.9.5
hashmarkername: setroubleshoot
kernel:         4.18.0-107.el8.x86_64
type:           libreport

Comment 1 Milos Malik 2019-08-22 07:14:47 UTC
I believe this bug is a duplicate of BZ#1720639.

Comment 2 Lukas Vrabec 2019-08-26 15:19:36 UTC

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


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