From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: help needed: how to exclude a single file from being audited.
Date: Wed, 7 Sep 2011 08:05:36 -0400 [thread overview]
Message-ID: <201109070805.36752.sgrubb@redhat.com> (raw)
In-Reply-To: <CAN-7VpkouDHjuAq33hEk3fOP3JpwVr4U3D9qb6gOHZuXD8SvgA@mail.gmail.com>
On Wednesday, September 07, 2011 12:47:53 AM Vipin Rathor wrote:
> I've a situation here. I've put a watch on a directory (e.g. -w /etc).
> Due to this, every action on files under this directory are being
> audited.
> Now I want to exclude a single file in that directory (e.g.
> /etc/sysconfig/bash-prompt-xterm), how should I do that?
> I tried something like this in my exclude list:
> -a exclude,never -F path=/etc/sysconfig/bash-prompt-xterm
>
> But got this error:
> Only msgtype field can be used with exclude filter
>
> Any idea, how to exclude a single file from a 'watched' directory?
Path fields must be on the exit filter. Try:
-a exit,never -F path=/etc/sysconfig/bash-prompt-xterm
And this must be before the rule on the directory. Note that this is kernel version
dependent. There was a bug sometime ago where the kernel was not preserving the
ordering of file system watches and the never rules didn't work.
-Steve
next prev parent reply other threads:[~2011-09-07 12:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-07 4:47 help needed: how to exclude a single file from being audited Vipin Rathor
2011-09-07 12:05 ` Steve Grubb [this message]
2011-09-08 5:38 ` Vipin Rathor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201109070805.36752.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.