Bug 491344 - auditctl fails to parse multiple syscall options
Summary: auditctl fails to parse multiple syscall options
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: audit
Version: 5.3
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Steve Grubb
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-03-20 14:57 UTC by CCS Admins
Modified: 2009-04-21 16:45 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-04-21 16:45:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description CCS Admins 2009-03-20 14:57:15 UTC
Description of problem:

auditctl fails to parse comma separated syscall list as -S argument, contrary to man page. 

Version-Release number of selected component (if applicable):

audit-1.6.5-9.el5

How reproducible:       

Steps to Reproduce:

1. [root@XXX ~]# auditctl -S open,close
Syscall name unknown: open,close
 
Actual results:

auditctl fails add audit rule.

Expected results:

auditctl should add audit rule.

Additional info:

man page indicates that this syntax is valid.

       -S [Syscall name or number|all]
              Any  syscall name or number may be used. The word 'all' may also
              be used.
              [...]
              You may also specify multiple  syscalls  in the same rule as a 
              comma separated list with
              no spaces in between. Doing so improves performance since  fewer
              rules need to be evaluated.
              [...]

Comment 1 CCS Admins 2009-03-20 15:05:32 UTC
Workaround: specify multiple -S options (... -S open -S close ...)

Comment 2 CCS Admins 2009-03-20 15:14:40 UTC
Oops. That should be against audit-1.7.7-6.el5. Need more coffee.

Comment 3 Steve Grubb 2009-04-21 16:45:55 UTC
This looks like a man page error that was corrected in the 5.3 release. The auditctl man page looks like it was corrected sometime before the 1.7.7 release. This is the man page's raw form:

https://fedorahosted.org/audit/browser/tags/audit-1.7.7/docs/auditctl.8#L92

It says to use multiple '-S' options. So, I think we can close this one. If you do have 1.7.7-6 installed, you may want to check that the man page was really updated, rpm -qV audit.

Closing since it appears to be fixed. Thanks for reporting the bug.


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