Description of problem When you have a recursive audit rule watching a directory and its subtree and you remove the directory, you only get an audit event saying the rule is removed and not one on the directory itself. There should be 2 audit events: one on the directory and one saying the rule was removed. How reproducible: Always Steps to Reproduce: 1. mkdir /tmp/test 2. auditctl -a always,exit -F dir=/tmp/test -F key=test 3. rmdir /tmp/test 4. ausearch --start recent -k test Actual results: time->Mon May 18 10:42:26 2009 type=CONFIG_CHANGE msg=audit(1242657746.295:37): auid=4325 ses=1 subj=unconfined_u:unconfined_r:auditctl_t:s0 op=add rule key="test2" list=4 res=1 ---- time->Mon May 18 10:42:33 2009 type=CONFIG_CHANGE msg=audit(1242657753.089:38): op=remove rule dir="/tmp/test" key="test2" list=4 res=1 Expected results: One more event that contains at least a syscall and path record.
Patch posted
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release.
in kernel-2.6.18-150.el5 You can download this test kernel from http://people.redhat.com/dzickus/el5 Please do NOT transition this bugzilla state to VERIFIED until our QE team has sent specific instructions indicating when to do so. However feel free to provide a comment indicating that this fix has been verified.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2009-1243.html