Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
SELinux is preventing /usr/sbin/rsyslogd from 'search' accesses on the directory net.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that rsyslogd should be allowed search access on the net 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 'rsyslogd' --raw | audit2allow -M my-rsyslogd
# semodule -X 300 -i my-rsyslogd.pp
Additional Information:
Source Context system_u:system_r:syslogd_t:s0
Target Context system_u:object_r:sysctl_net_t:s0
Target Objects net [ dir ]
Source rsyslogd
Source Path /usr/sbin/rsyslogd
Port <Unknown>
Host (removed)
Source RPM Packages rsyslog-8.2102.0-106.el9.x86_64
Target RPM Packages
SELinux Policy RPM selinux-policy-targeted-38.1.3-1.el9.noarch
Local Policy RPM selinux-policy-targeted-38.1.3-1.el9.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name (removed)
Platform Linux (removed) 5.14.0-214.el9.x86_64 #1 SMP
PREEMPT_DYNAMIC Thu Dec 15 01:34:46 UTC 2022
x86_64 x86_64
Alert Count 12
First Seen 2022-12-23 01:36:19 GMT
Last Seen 2022-12-23 15:59:29 GMT
Local ID b6d879d1-b334-4683-9edd-cda0b3af0412
Raw Audit Messages
type=AVC msg=audit(1671811169.9:22): avc: denied { search } for pid=805 comm="rsyslogd" name="net" dev="proc" ino=15721 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0
type=SYSCALL msg=audit(1671811169.9:22): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffff9c a1=7fff7499b7b0 a2=80100 a3=0 items=0 ppid=1 pid=805 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rsyslogd exe=/usr/sbin/rsyslogd subj=system_u:system_r:syslogd_t:s0 key=(null)
Hash: rsyslogd,syslogd_t,sysctl_net_t,dir,search
Version-Release number of selected component (if applicable):
How reproducible:
Starts occuring after login to CentOS Stream 9
We see this in Cockpit's RHEL 9.2 image refresh [1] as well, and can reproduce this fairly reliably in one of our tests. Curiously nothing in our tests touches or even cares about rsyslogd, this is just a random catch. The image build log [2] has the full list of package updates, but the most plausible ones are
rsyslog (8.2102.0-105.el9 -> 8.2102.0-107.el9)
selinux-policy (38.1.2-1.el9 -> 38.1.3-1.el9)
So if rsyslog isn't supposed to do that, it may be prudent to reassign. CC'ing Attila, who uploaded that rsyslog version.
[1] https://github.com/cockpit-project/bots/pull/4226
[2] https://cockpit-logs.us-east-1.linodeobjects.com/image-refresh-logs/rhel-9-2-20230102-062525.log
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
Description of problem: SELinux is preventing /usr/sbin/rsyslogd from 'search' accesses on the directory net. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that rsyslogd should be allowed search access on the net 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 'rsyslogd' --raw | audit2allow -M my-rsyslogd # semodule -X 300 -i my-rsyslogd.pp Additional Information: Source Context system_u:system_r:syslogd_t:s0 Target Context system_u:object_r:sysctl_net_t:s0 Target Objects net [ dir ] Source rsyslogd Source Path /usr/sbin/rsyslogd Port <Unknown> Host (removed) Source RPM Packages rsyslog-8.2102.0-106.el9.x86_64 Target RPM Packages SELinux Policy RPM selinux-policy-targeted-38.1.3-1.el9.noarch Local Policy RPM selinux-policy-targeted-38.1.3-1.el9.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.14.0-214.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 15 01:34:46 UTC 2022 x86_64 x86_64 Alert Count 12 First Seen 2022-12-23 01:36:19 GMT Last Seen 2022-12-23 15:59:29 GMT Local ID b6d879d1-b334-4683-9edd-cda0b3af0412 Raw Audit Messages type=AVC msg=audit(1671811169.9:22): avc: denied { search } for pid=805 comm="rsyslogd" name="net" dev="proc" ino=15721 scontext=system_u:system_r:syslogd_t:s0 tcontext=system_u:object_r:sysctl_net_t:s0 tclass=dir permissive=0 type=SYSCALL msg=audit(1671811169.9:22): arch=x86_64 syscall=openat success=no exit=EACCES a0=ffffff9c a1=7fff7499b7b0 a2=80100 a3=0 items=0 ppid=1 pid=805 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=rsyslogd exe=/usr/sbin/rsyslogd subj=system_u:system_r:syslogd_t:s0 key=(null) Hash: rsyslogd,syslogd_t,sysctl_net_t,dir,search Version-Release number of selected component (if applicable): How reproducible: Starts occuring after login to CentOS Stream 9