Bug 2182660
Summary: | No audit event recorded when not having any rule | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Renaud Métrich <rmetrich> |
Component: | kernel | Assignee: | Richard Guy Briggs <rbriggs> |
kernel sub component: | Audit | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
Status: | CLOSED MIGRATED | Docs Contact: | |
Severity: | high | ||
Priority: | high | CC: | alakatos, dapospis, denli, scorreia, sgrubb |
Version: | 9.1 | Keywords: | MigratedToJIRA |
Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2023-09-25 19:49:55 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Renaud Métrich
2023-03-29 09:34:12 UTC
I think this is a kernel bug. There is a function, audit_log_path_denied() which is intended to log this event. Because this is a security policy violation and should occur rarely, it should not have to be subjected to the dummy context check. The dummy context check ensures that events are recorded if there are rules loaded. I would suggest deleting the dummy context check in audit_log_path_denied() as the fix. IMHO everything that pops up an event should be always recorded, even when there is no rule. I need to experiment again, but I'm pretty this can also happen with SELinux AVCs, depending on how the system was started ("audit=1" or nothing). I'm not sure it has same root cause however. "everything that pops up an event" == "failure event" more precisely The problem is that it may be too late in the syscall when the failure occurs to collect enough info for a meaningful event. I know SE linux varies in the quality of its information based on whether rules are loaded or not. It would have to be carefully checked to see if the dummy context check can be removed or if there's a workaround to augment the information that can be logged. For example, if we remove the check and only get a naked ANOM_LINK record, it has the program and user but not which file was being created. You have to somehow trigger the collection of that information so that it makes sense. But then again, maybe we get the full event. It would have to be tested. Wouldn't the kernel/audit be a better component to discuss this? Yes, this was identified as a kernel bug in comment 2. Issue migration from Bugzilla to Jira is in process at this time. This will be the last message in Jira copied from the Bugzilla bug. This BZ has been automatically migrated to the issues.redhat.com Red Hat Issue Tracker. All future work related to this report will be managed there. Due to differences in account names between systems, some fields were not replicated. Be sure to add yourself to Jira issue's "Watchers" field to continue receiving updates and add others to the "Need Info From" field to continue requesting information. To find the migrated issue, look in the "Links" section for a direct link to the new issue location. The issue key will have an icon of 2 footprints next to it, and begin with "RHEL-" followed by an integer. You can also find this issue by visiting https://issues.redhat.com/issues/?jql= and searching the "Bugzilla Bug" field for this BZ's number, e.g. a search like: "Bugzilla Bug" = 1234567 In the event you have trouble locating or viewing this issue, you can file an issue by sending mail to rh-issues. You can also visit https://access.redhat.com/articles/7032570 for general account information. |