From: Herbert Rosmanith <kernel@wildsau.enemy.org>
To: linux-kernel@vger.kernel.org
Cc: Herbert Rosmanith <kernel@wildsau.enemy.org>
Subject: Q on audit, audit-syscall
Date: Wed, 5 Apr 2006 13:27:03 +0200 (MET DST) [thread overview]
Message-ID: <200604051127.k35BR3Qe009718@wildsau.enemy.org> (raw)
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
next reply other threads:[~2006-04-05 11:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-05 11:27 Herbert Rosmanith [this message]
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
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=200604051127.k35BR3Qe009718@wildsau.enemy.org \
--to=kernel@wildsau.enemy.org \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®