The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* auditing subsystem
@ 2005-03-04  6:18 Russell Miller
  2005-03-04  6:34 ` Chris Wright
  2005-03-04  6:53 ` Valdis.Kletnieks
  0 siblings, 2 replies; 3+ messages in thread
From: Russell Miller @ 2005-03-04  6:18 UTC (permalink / raw)
  To: linux-kernel

I've been doing a lot of research on this, and I keep coming up with things 
that don't work, have been abandoned, or are almost impossible to find or get 
working.  So I'll ask here.  Maybe one of the ultra-elightened linux gods 
will have a ready answer.

I want to be able to audit system calls - I want to log when files are opened, 
created, changed, deleted, etc.  Preferably I would like to do it without 
having to apply kernel patches, using vanilla (or close to vanilla) kernel.  
If this isn't possible, my net preference is to use a module.  If this isn't 
possible, well, I'll do what I have to.

I notice there is a CONFIG_AUDIT option.  Is this what I am looking for, and 
how do I use it?  /dev/audit seems not to work...

Thanks.  If you can even point me a suitable FM to R, I'd be content.

--Russell

-- 

Russell Miller - rmiller@duskglow.com - Agoura, CA

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: auditing subsystem
  2005-03-04  6:18 auditing subsystem Russell Miller
@ 2005-03-04  6:34 ` Chris Wright
  2005-03-04  6:53 ` Valdis.Kletnieks
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Wright @ 2005-03-04  6:34 UTC (permalink / raw)
  To: Russell Miller; +Cc: linux-kernel

* Russell Miller (rmiller@duskglow.com) wrote:
> I've been doing a lot of research on this, and I keep coming up with things 
> that don't work, have been abandoned, or are almost impossible to find or get 
> working.  So I'll ask here.  Maybe one of the ultra-elightened linux gods 
> will have a ready answer.

You'll have better luck using linux-audit list.

> I want to be able to audit system calls - I want to log when files are opened, 
> created, changed, deleted, etc.  Preferably I would like to do it without 
> having to apply kernel patches, using vanilla (or close to vanilla) kernel.  
> If this isn't possible, my net preference is to use a module.  If this isn't 
> possible, well, I'll do what I have to.

No patches needed (although you will want 2.6.11 because the inode filter
was busted, and you'll likely want to use it), for opened anyway.  You'll
need an additional auditfs patch for created/deleted/changed(for more
than just knowing open w/ write access) and it's not a stable patch yet.

> I notice there is a CONFIG_AUDIT option.  Is this what I am looking for, and 
> how do I use it?  /dev/audit seems not to work...

You'll need auditd, auditctl, and some rules to capture what you care
about.

For example:

To watch accesses to /etc/passwd (not creation/deletion events).

# auditd
# auditctl -a entry,possible -S open
# auditctl -a exit,always -S open -F inode=(inode of /etc/passwd)

-- 
Linux Security Modules     http://lsm.immunix.org     http://lsm.bkbits.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: auditing subsystem
  2005-03-04  6:18 auditing subsystem Russell Miller
  2005-03-04  6:34 ` Chris Wright
@ 2005-03-04  6:53 ` Valdis.Kletnieks
  1 sibling, 0 replies; 3+ messages in thread
From: Valdis.Kletnieks @ 2005-03-04  6:53 UTC (permalink / raw)
  To: Russell Miller; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 655 bytes --]

On Thu, 03 Mar 2005 22:18:11 PST, Russell Miller said:
> I've been doing a lot of research on this, and I keep coming up with things 

> I notice there is a CONFIG_AUDIT option.  Is this what I am looking for, and 
> how do I use it?  /dev/audit seems not to work...

oooh.. a victim^Wtester ;)

CONFIG_AUDIT is indeed what you're looking for, in combination with the audit-0.6.5
userspace end just released.  Mailing list is linux-audit@redhat.com, visit
http://www.redhat.com/mailman/listinfo/linux-audit for more info....

(Currently, there's still a add-on kernel patch for stuff that's not in
the mainstream yet - but that's hopefully temporary.. ;)

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-03-04  6:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-04  6:18 auditing subsystem Russell Miller
2005-03-04  6:34 ` Chris Wright
2005-03-04  6:53 ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox