On Tue, 23 Sep 2008 14:48:52 -0400
"Sukanto Ghosh" <[EMAIL PROTECTED]> wrote:

> Is there any mechanism by which a kernel module can trap / detect that
> a process (pid known) is making some network system call (socket,
> bind, send, recv, etc) ?
> I want to log all messages that some (not all) processes send /
> recieve. Can this be done from a kernel module ?

If you would like to do this from userspace, use systemtap. From kernel
module I think this can be done by kprobes (systemtap uses it), but not
sure how difficult it will be. Dive into the code...

Regards

Jirka


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to