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.
DescriptionBrian J. Murrell
2023-01-07 20:50:25 UTC
SELinux is preventing systemctl from getattr access on the filesystem /.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that systemctl should be allowed getattr access on the filesystem 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 'systemctl' --raw | audit2allow -M my-systemctl
# semodule -X 300 -i my-systemctl.pp
Additional Information:
Source Context system_u:system_r:spamd_update_t:s0
Target Context system_u:object_r:fs_t:s0
Target Objects / [ filesystem ]
Source systemctl
Source Path systemctl
Port <Unknown>
Host server.interlinx.bc.ca
Source RPM Packages
Target RPM Packages filesystem-3.8-6.el8.x86_64
SELinux Policy RPM selinux-policy-targeted-3.14.3-108.el8.noarch
Local Policy RPM selinux-policy-targeted-3.14.3-108.el8.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name server.interlinx.bc.ca
Platform Linux server.interlinx.bc.ca
4.18.0-425.3.1.el8.x86_64 #1 SMP Tue Nov 8
14:08:25 EST 2022 x86_64 x86_64
Alert Count 92
First Seen 2022-11-19 00:33:37 EST
Last Seen 2023-01-07 00:31:12 EST
Local ID 7a355dbb-e393-41b1-b0ee-3b1c65801892
Raw Audit Messages
type=AVC msg=audit(1673069472.646:145202): avc: denied { getattr } for pid=4042248 comm="systemctl" name="/" dev="dm-4" ino=2 scontext=system_u:system_r:spamd_update_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem permissive=0
Hash: systemctl,spamd_update_t,fs_t,filesystem,getattr
Brian,
Do you know when this denial appears? Just starting the sa-update.service did not reproduce it on my system.
What filesystem is on the dm-4 device?
Perhaps with full auditing there will be more details:
1) Open the /etc/audit/rules.d/audit.rules file in an editor.
2) Remove the following line if it exists:
-a task,never
3) Add the following line to the end of the file:
-w /etc/shadow -p w
4) Restart the audit daemon:
# service auditd restart
5) Re-run your scenario.
6) Collect AVC denials:
# ausearch -i -m avc,user_avc,selinux_err,user_selinux_err -ts today
(In reply to Milos Malik from comment #2)
> I believe this BZ is a duplicate of BZ#2144501.
I would tend to agree. Unfortunately, because AVC error reporting on headless systems is manual (copy and paste from sealert -l) and the duplicate issue detection in BZ didn't find the duplicate even with the exact same issue title, and the amount of time between reports (BZ#2144501 was reported a month and a half ago) and fixes landing to production systems, it can be that duplicates get forgotten about before the fixes appear on production systems.
Even though BZ#2144501 reports the issue fixed in selinux-policy-3.14.3-112.el8 on 2022-12-02 12:26:20 UTC and verified on 2022-12-04 08:49:20 UTC, the current version of selinux-policy in current EL8.7 is still 3.14.3-108.el8. Would be better if the gap between verified and users actually getting the updated package could be closed.
(In reply to Brian J. Murrell from comment #3)
> Even though BZ#2144501 reports the issue fixed in
> selinux-policy-3.14.3-112.el8 on 2022-12-02 12:26:20 UTC and verified on
> 2022-12-04 08:49:20 UTC, the current version of selinux-policy in current
> EL8.7 is still 3.14.3-108.el8. Would be better if the gap between verified
> and users actually getting the updated package could be closed.
Although the request is understandable, the gap which actually can be up to 7 months is a result of the current RHEL development life cycle.
For RHEL 9, there is the option to use centos stream when the packages are available immediately when the build is created.
Closing dup.
*** This bug has been marked as a duplicate of bug 2144501 ***
SELinux is preventing systemctl from getattr access on the filesystem /. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that systemctl should be allowed getattr access on the filesystem 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 'systemctl' --raw | audit2allow -M my-systemctl # semodule -X 300 -i my-systemctl.pp Additional Information: Source Context system_u:system_r:spamd_update_t:s0 Target Context system_u:object_r:fs_t:s0 Target Objects / [ filesystem ] Source systemctl Source Path systemctl Port <Unknown> Host server.interlinx.bc.ca Source RPM Packages Target RPM Packages filesystem-3.8-6.el8.x86_64 SELinux Policy RPM selinux-policy-targeted-3.14.3-108.el8.noarch Local Policy RPM selinux-policy-targeted-3.14.3-108.el8.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name server.interlinx.bc.ca Platform Linux server.interlinx.bc.ca 4.18.0-425.3.1.el8.x86_64 #1 SMP Tue Nov 8 14:08:25 EST 2022 x86_64 x86_64 Alert Count 92 First Seen 2022-11-19 00:33:37 EST Last Seen 2023-01-07 00:31:12 EST Local ID 7a355dbb-e393-41b1-b0ee-3b1c65801892 Raw Audit Messages type=AVC msg=audit(1673069472.646:145202): avc: denied { getattr } for pid=4042248 comm="systemctl" name="/" dev="dm-4" ino=2 scontext=system_u:system_r:spamd_update_t:s0 tcontext=system_u:object_r:fs_t:s0 tclass=filesystem permissive=0 Hash: systemctl,spamd_update_t,fs_t,filesystem,getattr