public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: Linda Knippers <linda.knippers@hp.com>
To: "Henning, Arthur C. (CSL)" <art.henning@ngc.com>
Cc: linux-audit@redhat.com
Subject: Re: Audit rules keys
Date: Tue, 21 Aug 2007 11:39:51 -0400	[thread overview]
Message-ID: <46CB0747.6020203@hp.com> (raw)
In-Reply-To: <6F2A8C9C4C5BE446A17B745BBC856EEB5A6D39@XMBTX113.northgrum.com>

Henning, Arthur C. (CSL) wrote:
> Using system-config-audit getting key (-k) configuration errors when
> saving changes.
> 
> [root@localhost ~]# Stopping auditd: [  OK  ]
> Starting auditd: [  OK  ]
> key option needs a watch or syscall given prior to it

This is telling you that the -k flag needs to be after a -S
flag.  I don't know why the order matters but apparently it does.

> There was an error in line 9 of /etc/audit/audit.rules
> cat /etc/audit/audit.rules
> -e 1
> -f 2
> -b 8192
> -r 0
> 
> -D
> -a entry,always -S adjtimex -S settimeofday
> -a entry,always -S clock_settime
> -a entry,always -k kill -S kill
try:
-a entry, always -S kill -k kill

And for the rest, make the -k stuff to the end.

> -a exit,always -k system-locale -S sethostname
> -a exit,always -F exit=-13 -k creation -S creat -S mkdir -S mknod -S
> link -S symlink
> -a exit,always -F exit=-13 -k creation -S mkdirat -S mknodat -S linkat
> -S symlinkat
> 
> If I remove the key from line 9 and save, get error reported line 10,
> etc.
> 
> Started with NISPOM.rules contrib file.

Are the options in the wrong order in the contrib file too?
The draft I saw posted for comments was in the correct order
but I haven't looked at what's currently shipped.

-- ljk
> 
> Art Henning (CSL) 
> Enterprise IT Solutions
> Northrop Grumman Corp
> art.henning@ngc.com
> 
> 
> --
> Linux-audit mailing list
> Linux-audit@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-audit

  reply	other threads:[~2007-08-21 15:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-21 15:21 Audit rules keys Henning, Arthur C. (CSL)
2007-08-21 15:39 ` Linda Knippers [this message]
2007-08-21 15:55   ` Steve Grubb
2007-08-21 16:09     ` Henning, Arthur C. (CSL)
2007-08-21 16:46       ` Steve Grubb

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=46CB0747.6020203@hp.com \
    --to=linda.knippers@hp.com \
    --cc=art.henning@ngc.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