Re: Logging network messages of some processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 23 Sep 2008 14:48:52 -0400
"Sukanto Ghosh" <sukanto.cse.iitb@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux