Bug 671261 - auditctl and audit.rules man pages inconsistent on -a option
Summary: auditctl and audit.rules man pages inconsistent on -a option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: audit
Version: 5.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Steve Grubb
QA Contact: Ondrej Moriš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-20 21:47 UTC by Guil Barros
Modified: 2018-11-14 15:01 UTC (History)
2 users (show)

Fixed In Version: audit-1.8-2.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-21 06:38:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0265 0 normal SHIPPED_LIVE audit bug fix and enhancement update 2012-02-20 15:06:31 UTC

Description Guil Barros 2011-01-20 21:47:50 UTC
Description of problem:
man auditctl:
...
       -a list,action
              Append  rule  to  the  end  of list with action. Please note the
              comma separating the two values.
...

man audit.rules:
...
       -a action,list -S syscall -F field=value -k keyname

       The  -a  option tells the kernel’s rule matching engine that we want to
       append a rule and the end of the rule list.
...

Additionally both options do work:
# auditctl -a entry,always -F arch=b32 -S execve -F euid=0
# auditctl -a always,entry -F arch=b32 -S execve -F uid=0 
# auditctl -l
LIST_RULES: entry,always arch=1073741827 (0x40000003) euid=0 syscall=execve
LIST_RULES: entry,always arch=1073741827 (0x40000003) uid=0 syscall=execve

This seems to have been fixed upstream:
https://fedorahosted.org/audit/changeset/418
And this fix is due to be included in RHEL6.1

Version-Release number of selected component (if applicable):
audit-1.7.17-3.el5

How reproducible:
always

Steps to Reproduce:
1. man auditctl
2. man audit.rules

Comment 2 Steve Grubb 2011-10-27 15:39:34 UTC
audit-1.8-1.el5 was built to address this problem.

Comment 3 Steve Grubb 2011-10-28 13:15:52 UTC
Patch was missing - now fixed in audit-1.8-2.el5.

Comment 6 errata-xmlrpc 2012-02-21 06:38:01 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0265.html


Note You need to log in before you can comment on or make changes to this bug.