All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Subject: Re: filtering out audit output
Date: Wed, 2 Feb 2011 08:23:32 -0500	[thread overview]
Message-ID: <201102020823.32227.sgrubb@redhat.com> (raw)
In-Reply-To: <91A75C8A95C47545850F344255A779E3082C17@XMBC3081.northgrum.com>

On Tuesday, February 01, 2011 02:34:23 pm Levy, Mark (IT Solutions) wrote:
> Hi, I'm trying to find a way to filter out some of the excess output from
> netiq which does a df every 10 seconds. I haven't had any success yet and
> was hoping someone could point me the right direction. Below is the output
> that I would like to filter out.
> 
>   node=newman.netiq.northgrum.com type=CWD msg=audit(02/01/2011
> 01:26:09.976:336030) :  cwd=/usr/netiq/vsau/bin
> node=newman.netiq.northgrum.com type=EXECVE msg=audit(02/01/2011
> 01:26:09.976:336030) : argc=(null) a0=/bin/df a1=-kP a2=../local/spool
> node=newman.netiq.northgrum.com type=SYSCALL msg=audit(02/01/2011
> 01:26:09.976:336030) : arch=x86_64 syscall=execve per=400000 success=yes
> exit=0 a0=7fffe76acc58 a1=7fffe76aa af8 a2=603c90 a3=0 items=2 ppid=3465
> pid=9347 auid=unset uid=root gid=root euid=root suid=root fsuid=root
> egid=root sgid=root fsgid=root tty=(none) ses=4294967295 comm=df exe
> =/bin/df key=(null)
> ----

This looks like you have an audit rule for execve. Do you have some reason to audit 
execve? If not, I would place watches on the programs you care about and not capture 
all execve. Or do you care about programs that users run rather than the system 
running? In that case, I would restrict the execve to auid>=500 and  auid!=4294967295. 
If you just don't want df, near the top try this:

-a exit,never -F path=/bin/df -F perm=x

It has to be before the rule that triggers the execve because the audit system has a 
first match wins rule engine. You may need a recent kernel for that to work as it did 
not work as intended at first.

-Steve

      reply	other threads:[~2011-02-02 13:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01 19:34 filtering out audit output Levy, Mark (IT Solutions)
2011-02-02 13:23 ` Steve Grubb [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=201102020823.32227.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 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.