From: Rudi Chiarito <nutello@sweetness.com>
To: linux-audit@redhat.com
Subject: Re: Filesystem access statistics
Date: Wed, 12 Apr 2006 22:12:33 +0200 [thread overview]
Message-ID: <20060412201233.GB1399@plain.rackshack.net> (raw)
In-Reply-To: <200604121226.29081.sgrubb@redhat.com>
On Wed, Apr 12, 2006 at 12:26:29PM -0400, Steve Grubb wrote:
> I would think that you could write a program to do this via the audit
> dispatcher interface. In auditd.conf,
> dispatcher = /usr/bin/your-program
> log_format = nolog
Will that preempt any other audit users that might be looking for
events downstream? Sounds a bit too drastic, although I guess I am not
the typical case, so an application as "intrusive" as mine won't be
needed on the average system.
> if (hdr.type == AUDIT_PATH) {
libaudit.h from audit-libs-devel 1.1.5-1 only has AUDIT_FS_INODE. Is
this new in 1.2 or a typo? I saw mention of a new filesystem API in the
audit RPM changelog. Is that part of it?
> You can then set the audit rules for whatever you want to measure, if all you
> want to measure is the opens,
That's a very good question by itself. Anything that peeks into a
directory should do, I guess. That would mean not just opens, but also
directory traversals, unlink calls, etc. Are there aliases of any kind?
The kernel just gained a bunch of new *at() syscalls. If I had written
this a month or two ago, I would have most likely missed them. Is there
a way to look for present and future syscalls dealing with files/inodes?
> You can use devmajor and devminor fields to limit the audit system to
> reporting opens on an exact partition. This is highly recommended. On my
That's a good idea where applicable. Thanks.
--
Rudi
next prev parent reply other threads:[~2006-04-12 20:15 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-12 15:23 Filesystem access statistics Rudi Chiarito
2006-04-12 16:26 ` Steve Grubb
2006-04-12 20:12 ` Rudi Chiarito [this message]
2006-04-13 13:50 ` 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=20060412201233.GB1399@plain.rackshack.net \
--to=nutello@sweetness.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.