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 2088257 - [RHEL-9.1] avc denied seen while provisioning
Summary: [RHEL-9.1] avc denied seen while provisioning
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.0
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: 9.1
Assignee: Nikola Knazekova
QA Contact: Milos Malik
URL:
Whiteboard:
: 2088258 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-19 05:40 UTC by zguo
Modified: 2022-11-15 12:58 UTC (History)
7 users (show)

Fixed In Version: selinux-policy-34.1.40-1.el9
Doc Type: Bug Fix
Doc Text:
Cause: SELinux prevents systemd-modules-load write to the kernel messages device and send a message to syslogd over a unix domain datagram socket Consequence: Failing tests Fix: Allow systemd_modules_load_t write to the kernel messages device and send a message to syslogd over a unix domain datagram socket Result: No AVC
Clone Of:
Environment:
Last Closed: 2022-11-15 11:13:50 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-122531 0 None None None 2022-05-19 05:54:42 UTC
Red Hat Product Errata RHBA-2022:8283 0 None None None 2022-11-15 11:14:09 UTC

Comment 1 Zdenek Pytela 2022-05-19 07:34:30 UTC
Hi,

Do you happen to know which conditions are required to trigger these denials?

The denials interpreted:
----
type=PROCTITLE msg=audit(05/19/2022 04:46:29.636:43) : proctitle=/lib/systemd/systemd-modules-load /etc/rdma/modules/iwarp.conf
type=AVC msg=audit(05/19/2022 04:46:29.636:43) : avc:  denied  { sendto } for  pid=867 comm=systemd-modules path=/run/systemd/journal/socket scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket permissive=0
type=SYSCALL msg=audit(05/19/2022 04:46:29.636:43) : arch=x86_64 syscall=connect success=no exit=EACCES(Permission denied) a0=0x3 a1=0x7f7b67df0060 a2=0x1e a3=0x7ffcaead12a0 items=0 ppid=1 pid=867 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=systemd-modules exe=/usr/lib/systemd/systemd-modules-load subj=system_u:system_r:systemd_modules_load_t:s0 key=(null)
----
type=PROCTITLE msg=audit(05/19/2022 04:46:29.636:44) : proctitle=/lib/systemd/systemd-modules-load /etc/rdma/modules/iwarp.conf
type=AVC msg=audit(05/19/2022 04:46:29.636:44) : avc:  denied  { write } for  pid=867 comm=systemd-modules name=kmsg dev="devtmpfs" ino=10 scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file permissive=0
type=SYSCALL msg=audit(05/19/2022 04:46:29.636:44) : arch=x86_64 syscall=openat success=no exit=EACCES(Permission denied) a0=AT_FDCWD a1=0x7f7b67dee7c8 a2=O_WRONLY|O_NOCTTY|O_CLOEXEC a3=0x0 items=0 ppid=1 pid=867 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=systemd-modules exe=/usr/lib/systemd/systemd-modules-load subj=system_u:system_r:systemd_modules_load_t:s0 key=(null)
----

Comment 2 Zdenek Pytela 2022-05-19 07:35:40 UTC
*** Bug 2088258 has been marked as a duplicate of this bug. ***

Comment 3 zguo 2022-05-19 08:59:37 UTC
(In reply to Zdenek Pytela from comment #1)
> Hi,
> 
> Do you happen to know which conditions are required to trigger these denials?
> 
> The denials interpreted:
> ----
> type=PROCTITLE msg=audit(05/19/2022 04:46:29.636:43) :
> proctitle=/lib/systemd/systemd-modules-load /etc/rdma/modules/iwarp.conf
> type=AVC msg=audit(05/19/2022 04:46:29.636:43) : avc:  denied  { sendto }
> for  pid=867 comm=systemd-modules path=/run/systemd/journal/socket
> scontext=system_u:system_r:systemd_modules_load_t:s0
> tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket permissive=0
> type=SYSCALL msg=audit(05/19/2022 04:46:29.636:43) : arch=x86_64
> syscall=connect success=no exit=EACCES(Permission denied) a0=0x3
> a1=0x7f7b67df0060 a2=0x1e a3=0x7ffcaead12a0 items=0 ppid=1 pid=867
> auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root
> sgid=root fsgid=root tty=(none) ses=unset comm=systemd-modules
> exe=/usr/lib/systemd/systemd-modules-load
> subj=system_u:system_r:systemd_modules_load_t:s0 key=(null)
> ----
> type=PROCTITLE msg=audit(05/19/2022 04:46:29.636:44) :
> proctitle=/lib/systemd/systemd-modules-load /etc/rdma/modules/iwarp.conf
> type=AVC msg=audit(05/19/2022 04:46:29.636:44) : avc:  denied  { write } for
> pid=867 comm=systemd-modules name=kmsg dev="devtmpfs" ino=10
> scontext=system_u:system_r:systemd_modules_load_t:s0
> tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file permissive=0
> type=SYSCALL msg=audit(05/19/2022 04:46:29.636:44) : arch=x86_64
> syscall=openat success=no exit=EACCES(Permission denied) a0=AT_FDCWD
> a1=0x7f7b67dee7c8 a2=O_WRONLY|O_NOCTTY|O_CLOEXEC a3=0x0 items=0 ppid=1
> pid=867 auid=unset uid=root gid=root euid=root suid=root fsuid=root
> egid=root sgid=root fsgid=root tty=(none) ses=unset comm=systemd-modules
> exe=/usr/lib/systemd/systemd-modules-load
> subj=system_u:system_r:systemd_modules_load_t:s0 key=(null)
> ----

I am not clear, but at least it might need a machine which is with iWarp device installed. Looping RDMA developers for info.

Comment 4 Milos Malik 2022-05-19 16:16:47 UTC
Following SELinux denials appeared in enforcing mode:
----
type=PROCTITLE msg=audit(05/19/2022 12:12:50.249:249) : proctitle=/usr/lib/systemd/systemd-modules-load 
type=SYSCALL msg=audit(05/19/2022 12:12:50.249:249) : arch=x86_64 syscall=connect success=no exit=EACCES(Permission denied) a0=0x3 a1=0x7f51dd53f060 a2=0x1e a3=0x7fff99401f20 items=0 ppid=1 pid=40491 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=systemd-modules exe=/usr/lib/systemd/systemd-modules-load subj=system_u:system_r:systemd_modules_load_t:s0 key=(null) 
type=AVC msg=audit(05/19/2022 12:12:50.249:249) : avc:  denied  { sendto } for  pid=40491 comm=systemd-modules path=/run/systemd/journal/socket scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:system_r:syslogd_t:s0 tclass=unix_dgram_socket permissive=0 
----
type=PROCTITLE msg=audit(05/19/2022 12:12:50.249:250) : proctitle=/usr/lib/systemd/systemd-modules-load 
type=SYSCALL msg=audit(05/19/2022 12:12:50.249:250) : arch=x86_64 syscall=openat success=no exit=EACCES(Permission denied) a0=AT_FDCWD a1=0x7f51dd53d7c8 a2=O_WRONLY|O_NOCTTY|O_CLOEXEC a3=0x0 items=0 ppid=1 pid=40491 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=systemd-modules exe=/usr/lib/systemd/systemd-modules-load subj=system_u:system_r:systemd_modules_load_t:s0 key=(null) 
type=AVC msg=audit(05/19/2022 12:12:50.249:250) : avc:  denied  { write } for  pid=40491 comm=systemd-modules name=kmsg dev="devtmpfs" ino=10 scontext=system_u:system_r:systemd_modules_load_t:s0 tcontext=system_u:object_r:kmsg_device_t:s0 tclass=chr_file permissive=0 
----

Comment 6 Zdenek Pytela 2022-05-27 12:02:30 UTC
*** Bug 2088258 has been marked as a duplicate of this bug. ***

Comment 21 errata-xmlrpc 2022-11-15 11:13:50 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-2022:8283


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