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 2164845 - SELinux prevents the NM iscsid dispatcher from reading the /proc/cpuinfo file
Summary: SELinux prevents the NM iscsid dispatcher from reading the /proc/cpuinfo file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: selinux-policy
Version: 9.2
Hardware: aarch64
OS: Linux
medium
medium
Target Milestone: rc
: 9.2
Assignee: Zdenek Pytela
QA Contact: Milos Malik
URL:
Whiteboard:
: 2158746 (view as bug list)
Depends On:
Blocks: 2129768
TreeView+ depends on / blocked
 
Reported: 2023-01-26 16:11 UTC by Jan Stodola
Modified: 2023-05-09 10:22 UTC (History)
5 users (show)

Fixed In Version: selinux-policy-38.1.6-1.el9
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 08:17:16 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 1589 0 None open Allow nm-dispatcher plugins read generic files in /proc 2023-02-03 17:20:33 UTC
Red Hat Bugzilla 2158746 1 None None None 2023-09-05 15:15:18 UTC
Red Hat Issue Tracker RHELPLAN-146585 0 None None None 2023-01-26 16:13:27 UTC
Red Hat Issue Tracker RHELPLAN-146586 0 None None None 2023-01-26 16:13:29 UTC
Red Hat Product Errata RHBA-2023:2483 0 None None None 2023-05-09 08:17:47 UTC

Description Jan Stodola 2023-01-26 16:11:43 UTC
Description of problem:
The following AVC appeared in audit.log after the default package set installation on aarch64 in FIPS mode ("fips=1" on the kernel command line):

type=AVC msg=audit(1674742919.572:45): avc:  denied  { read } for  pid=1003 comm="systemctl" name="cpuinfo" dev="proc" ino=4026531987 scontext=system_u:system_r:NetworkManager_dispatcher_iscsid_t:s0 tcontext=system_u:object_r:proc_t:s0 
tclass=file permissive=0



Version-Release number of selected component (if applicable):
RHEL-9.2.0-20230125.12
selinux-policy-38.1.4-1.el9

How reproducible:
Always on aach64

Steps to Reproduce:
1. Run installation on aarch64 with "fips=1" on the kernel command line. Install the default package set.
2. Check /var/log/audit/audit.log on the installed system.

Actual results:
AVC denials

Expected results:
No AVC

Additional info:
So far reproduced just on aarch64 and only in FIPS mode.

Comment 3 Zdenek Pytela 2023-01-26 18:12:38 UTC
This is similar to bz#2158746, but for a different plugin:

----
type=PROCTITLE msg=audit(26.1.2023 15:30:09.370:39) : proctitle=/bin/systemctl --no-block reload iscsi.service
type=SYSCALL msg=audit(26.1.2023 15:30:09.370:39) : arch=aarch64 syscall=newfstatat success=yes exit=0 a0=0x3 a1=0xffffb5fa3fa0 a2=0xffffd825a1d8 a3=0x1000 items=0 ppid=1091 pid=1095 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=systemctl exe=/usr/bin/systemctl subj=system_u:system_r:NetworkManager_dispatcher_iscsid_t:s0 key=(null)
type=AVC msg=audit(26.1.2023 15:30:09.370:39) : avc:  denied  { getattr } for  pid=1095 comm=systemctl path=/proc/cpuinfo dev="proc" ino=4026531987 scontext=system_u:system_r:NetworkManager_dispatcher_iscsid_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=1
----
type=PROCTITLE msg=audit(26.1.2023 15:30:09.970:47) : proctitle=/bin/systemctl --no-block reload iscsi.service
type=SYSCALL msg=audit(26.1.2023 15:30:09.970:47) : arch=aarch64 syscall=openat success=yes exit=3 a0=AT_FDCWD a1=0xffff9b8f5170 a2=O_RDONLY a3=0x0 items=0 ppid=1186 pid=1188 auid=unset uid=root gid=root euid=root suid=root fsuid=root egid=root sgid=root fsgid=root tty=(none) ses=unset comm=systemctl exe=/usr/bin/systemctl subj=system_u:system_r:NetworkManager_dispatcher_iscsid_t:s0 key=(null)
type=AVC msg=audit(26.1.2023 15:30:09.970:47) : avc:  denied  { open } for  pid=1188 comm=systemctl path=/proc/cpuinfo dev="proc" ino=4026531987 scontext=system_u:system_r:NetworkManager_dispatcher_iscsid_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=1
type=AVC msg=audit(26.1.2023 15:30:09.970:47) : avc:  denied  { read } for  pid=1188 comm=systemctl name=cpuinfo dev="proc" ino=4026531987 scontext=system_u:system_r:NetworkManager_dispatcher_iscsid_t:s0 tcontext=system_u:object_r:proc_t:s0 tclass=file permissive=1
----

Comment 6 Nikola Knazekova 2023-02-09 15:55:10 UTC
*** Bug 2158746 has been marked as a duplicate of this bug. ***

Comment 15 errata-xmlrpc 2023-05-09 08:17:16 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-2023:2483


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