public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Q on audit, audit-syscall
@ 2006-04-05 11:27 Herbert Rosmanith
  2006-04-05 11:41 ` Robin Holt
  2006-04-11  4:21 ` Q on audit, audit-syscall: insecure? Linda Walsh
  0 siblings, 2 replies; 17+ messages in thread
From: Herbert Rosmanith @ 2006-04-05 11:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: Herbert Rosmanith


good afternoon,

I'm searching for a way to trace/intercept syscalls, both before and
after execution. "ptrace" is not an option (you probably know why).
I've found CONFIG_AUDIT and CONFIG_AUDITSYSCALL, which offer
"audit_syscall_entry" and "audit_syscall_exit", but I dont know
how to use this. Also, the comment in kernel/auditsc.c reads:
 * The method for actual interception of syscall entry and exit (not in
 * this file -- see entry.S) is based on a GPL'd patch written by
 * okir@suse.de and Copyright 2003 SuSE Linux AG.

So, am I looking in the wrong file?

I just cant see how this software communicates with user-space,
there is no "register_xxx" (or whatever) in the source-files.
Is it neccessary to write an additional module (like se-linux does)
which makes use of audit and exports its own functionality to
userspace?

So far, in the audit-1.1.5 deamon, I've only found a PF_NETLINK/NETLINK_AUDIT
socket. *Is* this it?

What's additionally confusing me is that linux/Documentation/devices.txt
says that "block 130 minor 0 = Audit device", yet, allthugh I'm running
with 2.6.16 + CONFIG_AUDIT & CONFIG_AUDITSYSCALL, there just is no
block dev 130 in /proc/devices. Is the entry in devices.txt wrong?

regards,
h.rosmanith






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

end of thread, other threads:[~2006-04-11  4:21 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-05 11:27 Q on audit, audit-syscall Herbert Rosmanith
2006-04-05 11:41 ` Robin Holt
2006-04-05 12:06   ` Herbert Rosmanith
2006-04-05 13:17     ` Kyle Moffett
2006-04-05 13:50       ` Herbert Rosmanith
2006-04-05 14:17         ` Kyle Moffett
2006-04-05 20:04           ` Herbert Rosmanith
2006-04-05 20:26             ` Robin Holt
2006-04-05 20:36             ` Valdis.Kletnieks
2006-04-05 21:47               ` Herbert Rosmanith
2006-04-05 22:30                 ` Chris Wright
2006-04-05 22:46                   ` Herbert Rosmanith
2006-04-05 22:55                     ` Chris Wright
2006-04-05 22:57                       ` Herbert Rosmanith
2006-04-06  4:24                 ` Valdis.Kletnieks
2006-04-06 13:01                 ` Stephen Smalley
2006-04-11  4:21 ` Q on audit, audit-syscall: insecure? Linda Walsh

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