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.

Bug 2061726

Summary: auparse missing information when used with --format-text
Product: Red Hat Enterprise Linux 8 Reporter: Sergio Correia <scorreia>
Component: auditAssignee: Sergio Correia <scorreia>
Status: CLOSED ERRATA QA Contact: Martin Zelený <mzeleny>
Severity: medium Docs Contact:
Priority: high    
Version: 8.6CC: lmiksik, lvrabec, mzeleny, sgrubb, tscherf
Target Milestone: rcKeywords: Regression, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: audit-3.0.7-2.el8.1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 2061731 2062612 (view as bug list) Environment:
Last Closed: 2022-05-10 15:30:12 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:
Bug Depends On:    
Bug Blocks: 2061731, 2062612    

Description Sergio Correia 2022-03-08 12:22:30 UTC
Initial report from Mark Gardner in the audit mailing list (https://listman.redhat.com/archives/linux-audit/2022-February/018844.html), while testing CentOS Stream 8.

Description of problem:

When watching a directory with a rule such as "-w /root/test -p ra -k test", the relevant audit events do get recorded, however if one tries to use ausearch to filter them and uses the --format-text switch, the displayed records lack some of the information.

Version-Release number of selected component (if applicable):
audit-3.0.7-2.el8.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. mkdir /root/test
2. auditctl -l
No rules
3. auditctl -w /root/test -p ra -k test
4. auditctl -l
-w /root/test -p ra -k test
5. cd /root/test
6. ls
7. ausearch -k test --format text -ts recent


Actual results:
ausearch output lacks the name of the directory that was opened:

At 06:14:42 03/08/2022 root successfully opened-file  using /usr/bin/ls

Expected results:
ausearch output will show the name of the directory that was opened:

At 06:18:23 03/08/2022 root successfully opened-file /root/test using /usr/bin/ls

Additional info:

This regression was introduced in 3.0.4 and upstream commit becc1c2 [1] fixes the issue.

[1] https://github.com/linux-audit/audit-userspace/commit/becc1c2

Comment 15 errata-xmlrpc 2022-05-10 15:30:12 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 (audit 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-2022:2096