public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Amy Griffis <amy.griffis@hp.com>
To: linux-audit@redhat.com
Subject: Re: file watch and stat
Date: Tue, 3 Oct 2006 11:43:15 -0400	[thread overview]
Message-ID: <20061003154315.GB17635@fc.hp.com> (raw)
In-Reply-To: <45218309.7050900@us.ibm.com>

Michael C Thompson wrote:  [Mon Oct 02 2006, 05:22:17PM EDT]
> Amy Griffis wrote:
> >Michael C Thompson wrote:  [Mon Oct 02 2006, 03:16:19PM EDT]
> >>Hey all,
> >>
> >>I'm trying to figure out why having a watch a on file is not generating 
> >>a record when I stat said file.
> >>
> >>Put a watch on a file, and do stat file.
> >>
> >>No record... I'm not sure why this is happening, isn't getting such 
> >>information considered security relevant?
> >
> >What is your audit rule?
> 
> auditctl -w /path/to/file

You aren't seeing a record because stat is not included in any of the
syscall classes.  I believe it was omitted because it has a tendency
to fill up audit logs.

You can audit this event by specifying the syscall directly, e.g.

auditctl -a exit,always -S stat -F path=/path/to/file

Regards,
Amy

      reply	other threads:[~2006-10-03 15:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-02 19:16 file watch and stat Michael C Thompson
2006-10-02 20:11 ` Amy Griffis
2006-10-02 21:22   ` Michael C Thompson
2006-10-03 15:43     ` Amy Griffis [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=20061003154315.GB17635@fc.hp.com \
    --to=amy.griffis@hp.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