8

Kernel: getting command line and pid_parent in do_execve_common?

view full story
linux-howto

http://stackoverflow.com – Is it possible to get the command line of a process that is about to be created in do_execve_common of the Linux kernel? In other words, how to extract the command line from argv and printk it to dmesg. Secondly, is it also possible to get the pid and the parent pid of the process? Is this information available somewhere around do_execve_common? I need to do those things ONLY in the kernel. (HowTos)