public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Brian LaMere <brianl@clinicomp.com>
To: linux-audit@redhat.com
Subject: log deletion of directories?
Date: Fri, 05 Sep 2008 16:34:24 -0700	[thread overview]
Message-ID: <1220657664.8619.13.camel@orpheus.clinicomp.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1009 bytes --]

Trying to find what is deleting a directory (/tmp/xauth).  Thought I'd
start with the basics, and just putting a watch on it.

[bel@comsup]:/etc/audit > auditctl -w /testdir/checkdir -p rwxa -k
missingfiles
[bel@comsup]:/etc/audit > auditctl -l|grep missing
LIST_RULES: exit,always dir=/testdir/checkdir (0x11) perm=rwxa
key=missingfiles
[bel@comsup]:/etc/audit > ausearch -k missingfiles
<no matches>
[bel@comsup]:/etc/audit > rmdir /testdir/checkdir 
[bel@comsup]:/etc/audit > ausearch -k missingfiles
<no matches>
[bel@comsup]:/etc/audit > auditctl -w /testdir/checkfile -p wrxa -k
missingfiles
[bel@comsup]:/etc/audit > rm /testdir/checkfile
[bel@comsup]:/etc/audit > ausearch -k missingfiles
----
(lots of text here)

Any suggestions on how to get it to do for a directory what it's doing
for the file?  I don't want to watch /tmp for adds/removes obviously;
that would be silly.  It is indeed a *directory* (regardless whether the
directory contents show up) that I want to watch.

Thanks,
Brian LaMere

[-- Attachment #1.2: Type: text/html, Size: 1456 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2008-09-05 23:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05 23:34 Brian LaMere [this message]
2008-09-06 22:37 ` log deletion of directories? 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=1220657664.8619.13.camel@orpheus.clinicomp.com \
    --to=brianl@clinicomp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox