From: Steve Grubb <sgrubb@redhat.com>
To: linux-audit@redhat.com
Cc: "Khoa V. Nguyen" <kelvestto@yahoo.com>
Subject: Re: auditctl Question
Date: Thu, 22 Mar 2007 09:57:56 -0400 [thread overview]
Message-ID: <200703220957.56397.sgrubb@redhat.com> (raw)
In-Reply-To: <502890.80597.qm@web55402.mail.re4.yahoo.com>
On Wednesday 21 March 2007 13:03, Khoa V. Nguyen wrote:
> I want to be able to audit failed access to /etc/inittab but I don't think
> the current auditctl features able to accomplish it.
>
> auditctl -a watch,always /etc/inittab -F success=no
>
> This would be a syntax error..but
>
> auditctl -a exit,always -w /etc/inittab -F success=no
>
>
> How can I do it?
It depends on the kernel you are running on. For 2.6.19 and higher, you'd just
do:
auditctl -a exit,always -F perm=rwa -F path=/etc/inittab -F success=no
If you have an earlier kernel, you are limited to -S open -F success=no and
you could limit its scope by using -F devmajor and devminor.
-Steve
next prev parent reply other threads:[~2007-03-22 13:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-21 17:03 auditctl Question Khoa V. Nguyen
2007-03-22 13:57 ` Steve Grubb [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-07-31 17:14 New List Member: Intro & comments Clif Flynt
2006-07-31 20:05 ` SQLite Clarification Clif Flynt
2006-07-31 21:13 ` Steve Grubb
2006-08-02 20:49 ` auditctl question Lane Williams
2006-08-02 22:03 ` Steve Grubb
2006-08-02 22:15 ` Linda Knippers
2006-08-02 22:29 ` Steve Grubb
2006-08-03 0:22 ` Klaus Weidner
2006-08-03 13:00 ` Williams, P. Lane
2006-08-03 15:18 ` Klaus Weidner
2006-08-03 20:02 ` Williams, P. Lane
2006-08-03 20:29 ` Klaus Weidner
2006-08-03 21:06 ` Steve Grubb
2006-08-04 1:50 ` Williams, P. Lane
2006-08-04 10:28 ` Steve Grubb
2006-08-04 12:48 ` Lane Williams
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=200703220957.56397.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=kelvestto@yahoo.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.