From: Steve Grubb <sgrubb@redhat.com>
To: Chu Li <chul@cn.fujitsu.com>
Cc: 'linux-audit' <linux-audit@redhat.com>
Subject: Re: [Patch]Fix the bug of using "-S syscall -a list, action", no errors will be reported.
Date: Wed, 6 Aug 2008 12:57:51 -0400 [thread overview]
Message-ID: <200808061257.52481.sgrubb@redhat.com> (raw)
In-Reply-To: <003901c8f795$d0df9300$958da70a@truly>
On Wednesday 06 August 2008 03:27:00 Chu Li wrote:
> And I found another problem, when using "-a 'list','action' -w /mnt", it
> will always add the rule "LIST_RULES: exit,always dir=/mnt (0x4) perm=rwxa".
> I found "-w" will use the "exit" list automatically. I think it's better to
> add something about it in manual.
There are 2 forms of audit rules, the syscall syntax (-a) and the watch syntax
(-w). They cannot be mixed. When -w is given, only -p and -k are valid.
When -a is given, -w is invalid.
The -w notation is primarily for backwards compatibility with RHEL4. In it you
do not give a list. When writing watches in RHEL5 and later, you can now use
syscall notation like this:
-a always,exit -F perm=wa -F path=/etc/shadow
Note that -S is not given. The kernel selects the syscalls based on the perm
field. Hope this helps.
-Steve
prev parent reply other threads:[~2008-08-06 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-31 1:38 [Patch]Fix the bug of using "-S syscall -a list, action", no errors will be reported chuli
2008-08-05 0:18 ` Steve Grubb
2008-08-06 7:27 ` Chu Li
2008-08-06 8:51 ` Chu Li
2008-08-06 16:57 ` 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=200808061257.52481.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=chul@cn.fujitsu.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