public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: "[Cloud ASIA] Toshihiro Takehara" <takehara@cloud-asia.co.jp>
Subject: Re: Suppress or exclude messages from /var/log/audit.log via audit.rules
Date: Sat, 04 Apr 2015 10:47:22 -0400	[thread overview]
Message-ID: <10204897.6gJiKKv096@x2> (raw)
In-Reply-To: <CAE215-musnk9qQ-GTdjnA5KLZDfspGAuscM9U_UySfWME_kryg@mail.gmail.com>

On Saturday, April 04, 2015 12:23:56 AM [Cloud ASIA] Toshihiro Takehara wrote:
> This is the audit.rules below.
> 
> # First rule - delete all
> 
> > -D
> > # Increase the buffers to survive stress events.
> > # Make this bigger for busy systems
> > -b 320
> > # Feel free to add below this line. See auditctl man page
> > -a exit,always -F arch=b64 -F dir=/etc -F success=0 -S open -S truncate
> > -a exit,always -F arch=b64 -S open -F uid=10
> > -a exit,always -F arch=b64 -S open -F auid>=500 -F perm=wa
> > -a exit,never -F arch=x86_64 -S all -F path=/root/mysql_status_check.sh
> > -a never,exit -F arch=b32 -S open -S openat -F exit=-ENOENT
> > -a never,exit -F arch=b64 -S open -S openat -F exit=-ENOENT
> > -w /etc/sudoers -p wa -k sudoers-change
> > -w /etc/ -p wa
> > -w /var/lib/mysql -p wa

One thing I forgot to mention yesterday is that the kernel rule matching 
engine works from top to bottom. That means "never" should probably be before 
"always" when they both cover the same syscall and the "never" is a subset of 
the possible selections of the "always" rule.

-Steve

  parent reply	other threads:[~2015-04-04 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-03 15:23 Suppress or exclude messages from /var/log/audit.log via audit.rules [Cloud ASIA] Toshihiro Takehara
2015-04-03 17:28 ` Steve Grubb
2015-04-04 14:47 ` Steve Grubb [this message]
2015-04-14 14:42   ` [Cloud ASIA] Toshihiro Takehara

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=10204897.6gJiKKv096@x2 \
    --to=sgrubb@redhat.com \
    --cc=linux-audit@redhat.com \
    --cc=takehara@cloud-asia.co.jp \
    /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