Re: Want to dump information about the process when it exits (Linux Kernel 2.4)

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

 



On 5/11/06, Asim <asimkadav@xxxxxxxxx> wrote:
On 5/11/06, Dang <linuxdang@xxxxxxxxx> wrote:
> On 5/11/06, Adrian - Razvan Deaconescu <razvand@xxxxxxxxx> wrote:
> >
> >
> > On 5/11/06, Dang <linuxdang@xxxxxxxxx> wrote:
> > > Hi,
> > >    I have an requirement of logging program's name with time stamp on
> > > its exit. My preference would be to trap in kernel. Can't change
> > > source code, I have to achieve it using modules.
> > >

You need to intercept the fork system call and not exit.


You need to intercept the exec (execv) system call and not exit/fork.

-- Asim

Aerodynamically the bumblebee shouldn't be able to fly, but the
bumblebee doesn't know that so it goes on flying anyway.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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