From: Alexander Viro <aviro@redhat.com>
To: Steve Grubb <sgrubb@redhat.com>
Cc: linux-audit@redhat.com
Subject: Re: Audit with path exception rule
Date: Tue, 14 Aug 2007 15:12:25 -0400 [thread overview]
Message-ID: <20070814191225.GA14077@devserv.devel.redhat.com> (raw)
In-Reply-To: <200707241548.00142.sgrubb@redhat.com>
On Tue, Jul 24, 2007 at 03:47:59PM -0400, Steve Grubb wrote:
> On Monday 23 July 2007 11:25:22 am Ameel Kamboh wrote:
> > I would like to audit the file system for anyone creating new files
> > However I would like to exclude a directory from the watch list.
> >
> > Here is the sample I have:
> >
> > #3. create/Remove any files
> > -a exit,always -S creat -F path!=/var/myApp <--- line 21
> > -a exit,always -S unlink -F path!=/var/myApp
>
> I was hoping one of the kernel people was going to jump in with an answer
> here. I have a feeling that the kernel doesn't allow it. I think it would be
> trivial to patch the kernel to allow this and we should. The rule you are
> trying to express seems reasonable to me.
The problem with that is simple - for that kind of rules we lose hash-based
overhead reduction we have for watches.
Basically, we distribute AUDIT_WATCH rules into a bunch of lists, by
hash(inumber(watched object)). At match time we can skip most of them
immediately, by not walking every list.
Negative rules like that would have to go into "the rest" list and its
length is rather sensitive for overhead...
prev parent reply other threads:[~2007-08-14 19:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-23 15:25 Audit with path exception rule Ameel Kamboh
2007-07-24 19:47 ` Steve Grubb
2007-08-14 19:12 ` Alexander Viro [this message]
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=20070814191225.GA14077@devserv.devel.redhat.com \
--to=aviro@redhat.com \
--cc=linux-audit@redhat.com \
--cc=sgrubb@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox