From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: Watch in audit 1.6 Date: Tue, 20 Jan 2009 11:54:51 -0500 Message-ID: <200901201154.52310.sgrubb@redhat.com> References: <4620668FFAA3D5458A691287D9DDAD11AA0C3C@zrtphxm2.corp.nortel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4620668FFAA3D5458A691287D9DDAD11AA0C3C@zrtphxm2.corp.nortel.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: linux-audit@redhat.com List-Id: linux-audit@redhat.com On Tuesday 20 January 2009 11:11:52 am Ameel Kamboh wrote: > Is there a way to exclude watching sub directories as well. Today, not that I know of. A patch was submitted into the latest development kernel (2.6.29) to preserve watch ordering. But you will have to make some changes to the rules. A typical watch looks like this: -w /var/mydir -p wa -k mywatch its the same as: -a always,exit -F dir=/var/mydir -F perms=wa -F key=mywatch In the future, you will be able to do: -a never,exit -F dir=/var/mydir/runtime -a always,exit -F dir=/var/mydir -F perms=wa -F key=mywatch in that specific order since first match wins. -Steve