From: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
To: linux-audit@redhat.com
Subject: Re: Disabling monitoring of a subfolder
Date: Mon, 28 Nov 2011 13:48:37 -0200 [thread overview]
Message-ID: <4ED3AD55.6060301@linux.vnet.ibm.com> (raw)
In-Reply-To: <CAG5jwy-EHOdfjuTjrGcYt0-zZPkxsNAvQS0wndHExqYpuxBxDw@mail.gmail.com>
Hi,
You could use a syscall based form to write the rule.
First exclude the subdirectory that you don't want to watch (using
*never* as action):
auditctl -a exit,never -F dir=/var/mydata/tmp_data -k my-data
And then add a watcher to all the rest:
auditctl -a exit,always -F dir=/var/mydata -F perm=w -k my-data
Regards,
Marcelo
On 11/24/2011 12:46 PM, 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/
>
>
> Thanks!
>
>
> M G
>
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit
>
next prev parent reply other threads:[~2011-11-28 15:48 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 [this message]
2011-11-29 16:26 ` Steve Grubb
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=4ED3AD55.6060301@linux.vnet.ibm.com \
--to=mhcerri@linux.vnet.ibm.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.