From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Grubb Subject: Re: What's the difference between -F dir=XX and -w? Date: Fri, 3 Jan 2014 09:18:07 -0500 Message-ID: <20140103091807.55ddc2ce@ivy-bridge> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-audit-bounces@redhat.com Errors-To: linux-audit-bounces@redhat.com To: Aaron Lewis Cc: "linux-audit@redhat.com" List-Id: linux-audit@redhat.com On Fri, 3 Jan 2014 14:30:58 +0800 Aaron Lewis wrote: > What's the difference between -F dir=XX and -w? > > -a exit,always -F arch=b64 -S open -F success=1 -F dir=/secure > > versus > > -w /secure > The '-w' option is for backwards compatibility with the original (RHEL4) implementation. What it does it detect what the target is (file or dir) and then expands into -F path= or -F dir= depending on what the target was. '-w' should be considered deprecated and is limited in its capabilities. This is explained in more detail on the auditctl man page. -Steve