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.
DescriptionJan Pazdziora (Red Hat)
2022-02-14 23:24:48 UTC
Description of problem:
The /usr/share/audit/sample-rules, before bug 1767054 stored in /usr/share/doc/audit/rules, is no longer readable by other users than root.
Version-Release number of selected component (if applicable):
audit-3.0.7-100.el9.x86_64
How reproducible:
Deterministic.
Steps to Reproduce:
1. dnf install -y audit
2. As non-root user (for example test):
ls -la /usr/share/audit/sample-rules
Actual results:
ls: cannot access '/usr/share/audit/sample-rules': Permission denied
Expected results:
total 164
drwxr-x---. 2 root root 4096 Feb 14 23:37 .
drwxr-x---. 3 root root 26 Feb 14 23:37 ..
-rw-r--r--. 1 root root 244 Jan 25 12:46 10-base-config.rules
-rw-r--r--. 1 root root 284 Jan 25 12:46 10-no-audit.rules
-rw-r--r--. 1 root root 93 Jan 25 12:46 11-loginuid.rules
-rw-r--r--. 1 root root 333 Jan 25 12:46 12-cont-fail.rules
-rw-r--r--. 1 root root 327 Jan 25 12:46 12-ignore-error.rules
-rw-r--r--. 1 root root 516 Jan 25 12:46 20-dont-audit.rules
-rw-r--r--. 1 root root 273 Jan 25 12:46 21-no32bit.rules
-rw-r--r--. 1 root root 254 Jan 25 12:46 22-ignore-chrony.rules
-rw-r--r--. 1 root root 507 Jan 25 12:46 23-ignore-filesystems.rules
-rw-r--r--. 1 root root 4943 Jan 25 12:46 30-nispom.rules
-rw-r--r--. 1 root root 1500 Jan 25 12:46 30-ospp-v42-1-create-failed.rules
-rw-r--r--. 1 root root 746 Jan 25 12:46 30-ospp-v42-1-create-success.rules
-rw-r--r--. 1 root root 1646 Jan 25 12:46 30-ospp-v42-2-modify-failed.rules
-rw-r--r--. 1 root root 826 Jan 25 12:46 30-ospp-v42-2-modify-success.rules
-rw-r--r--. 1 root root 625 Jan 25 12:46 30-ospp-v42-3-access-failed.rules
-rw-r--r--. 1 root root 399 Jan 25 12:46 30-ospp-v42-3-access-success.rules
-rw-r--r--. 1 root root 562 Jan 25 12:46 30-ospp-v42-4-delete-failed.rules
-rw-r--r--. 1 root root 284 Jan 25 12:46 30-ospp-v42-4-delete-success.rules
-rw-r--r--. 1 root root 816 Jan 25 12:46 30-ospp-v42-5-perm-change-failed.rules
-rw-r--r--. 1 root root 414 Jan 25 12:46 30-ospp-v42-5-perm-change-success.rules
-rw-r--r--. 1 root root 579 Jan 25 12:46 30-ospp-v42-6-owner-change-failed.rules
-rw-r--r--. 1 root root 295 Jan 25 12:46 30-ospp-v42-6-owner-change-success.rules
-rw-r--r--. 1 root root 5509 Jan 25 12:46 30-ospp-v42.rules
-rw-r--r--. 1 root root 6179 Jan 25 12:46 30-pci-dss-v31.rules
-rw-r--r--. 1 root root 6624 Jan 25 12:46 30-stig.rules
-rw-r--r--. 1 root root 1458 Jan 25 12:46 31-privileged.rules
-rw-r--r--. 1 root root 213 Jan 25 12:46 32-power-abuse.rules
-rw-r--r--. 1 root root 156 Jan 25 12:46 40-local.rules
-rw-r--r--. 1 root root 439 Jan 25 12:46 41-containers.rules
-rw-r--r--. 1 root root 672 Jan 25 12:46 42-injection.rules
-rw-r--r--. 1 root root 398 Jan 25 12:46 43-module-load.rules
-rw-r--r--. 1 root root 584 Jan 25 12:46 44-installers.rules
-rw-r--r--. 1 root root 326 Jan 25 12:46 70-einval.rules
-rw-r--r--. 1 root root 151 Jan 25 12:46 71-networking.rules
-rw-r--r--. 1 root root 86 Jan 25 12:46 99-finalize.rules
-rw-r--r--. 1 root root 1421 Jan 25 12:46 README-rules
Additional info:
This is a regression against RHEL 8.5.
Comment 2Jan Pazdziora (Red Hat)
2022-02-14 23:27:14 UTC
The problem seems caused by restrictive permissions on the parent directory:
# ls -dla /usr/share/audit
drwxr-x---. 3 root root 26 Feb 14 23:37 /usr/share/audit
Comment 4Jan Pazdziora (Red Hat)
2022-02-14 23:29:51 UTC
This seems to be the results of rebase from RHEL 8.5's audit-3.0-0.17.20191104git1c2f876.el8.x86_64 to audit 3.0.7.
Comment 5Jan Pazdziora (Red Hat)
2022-02-14 23:30:29 UTC
I think that was a copy & paste from one line to another without inspecting the attr. Fixed in github and F35. The F35 build also picks up 2 patches. One to use the new gcc attributes for access/deallocation and another to hush some warnings. (The attributes will eventually help gcc analyzer static analysis.) Rawhide & F36 have a problem with SWIG code + gcc-12. I'll fix that when it's known how to fix SWIG generated code. It wouldn't hurt to pick those patches up on RHEL. Might actually find a bug in another package.
Thanks for pointing out this problem.
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 (new packages: audit), 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:3963