public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: more on limiting auditing of file access
Date: Mon, 5 Nov 2007 15:08:04 -0500	[thread overview]
Message-ID: <200711051508.05153.sgrubb@redhat.com> (raw)
In-Reply-To: <32998.10.1.5.58.1194287790.squirrel@aa.usno.navy.mil>

On Monday 05 November 2007 01:36:30 pm Bill Tangren wrote:
> I have a rule that audits failed access to files:
>
> -a exit,always -S chmod -S lchown -S chown -F success=0
>
> I assume that this is the rule that is causing so many files accessed by
> the web server to be logged. How can change this rule to exclude user
> apache from tripping this rule?

Fields (-F options) are "anded" to decide whether to trigger or not. So, you 
could use:

-a exit,always -S chmod -S lchown -S chown -F success=0 -F uid!=apache

But you could chose to limit by partition or exact error code, too. For 
example, you may not want the failures due to ENOENT (file doesn't exist). In 
that case, it would be:

-a exit,always -S chmod -S lchown -S chown -F success=0 -F exit!=-2

-Steve

  reply	other threads:[~2007-11-05 20:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-05 18:36 more on limiting auditing of file access Bill Tangren
2007-11-05 20:08 ` Steve Grubb [this message]
2007-11-05 20:32   ` Bill Tangren

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=200711051508.05153.sgrubb@redhat.com \
    --to=sgrubb@redhat.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