From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: Marina Gray <marina.gray@itselearning.ca>
Subject: Re: Disabling monitoring of a subfolder
Date: Tue, 29 Nov 2011 11:26:50 -0500 [thread overview]
Message-ID: <201111291126.50287.sgrubb@redhat.com> (raw)
In-Reply-To: <CAG5jwy-EHOdfjuTjrGcYt0-zZPkxsNAvQS0wndHExqYpuxBxDw@mail.gmail.com>
On Thursday, November 24, 2011 09:46:57 AM Marina Gray wrote:
> I have a folder which I'd like to monitor with auditd, with the
> exception of one specific subdirectory. Is there any way I can disable
> monitoring just that subdirectory, but keep monitoring the rest of the
> dir recursively as usual?
>
> Say, I first do:
>
> auditctl -w /var/mydata/ -k my-data -p w
>
> and want to exclude looking at /var/mydata/tmp_data/
The kernel was patched at some point to allow excluding folders, but the excluded
folder has to be before the recursive folder - order matters.
-a never,exit -F dir=/var/mydata/tmp_data/
-a always,exit -F dir=/var/mydata/ -F key=my-data -F perm=w
If this doesn't work, you are probably on an older kernel that can't do it.
-Steve
prev parent reply other threads:[~2011-11-29 16:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-24 14:46 Disabling monitoring of a subfolder Marina Gray
2011-11-28 15:48 ` Marcelo Cerri
2011-11-29 16:26 ` Steve Grubb [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=201111291126.50287.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=linux-audit@redhat.com \
--cc=marina.gray@itselearning.ca \
/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.