public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
* log deletion of directories?
@ 2008-09-05 23:34 Brian LaMere
  2008-09-06 22:37 ` Steve Grubb
  0 siblings, 1 reply; 2+ messages in thread
From: Brian LaMere @ 2008-09-05 23:34 UTC (permalink / raw)
  To: linux-audit


[-- 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 --]



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-06 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 23:34 log deletion of directories? Brian LaMere
2008-09-06 22:37 ` Steve Grubb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox