Article 4XV4K hook the execve system call how to find the file path from the const char __user*

hook the execve system call how to find the file path from the const char __user*

by
danielhaish
from LinuxQuestions.org on (#4XV4K)
hi i hooked the execve system call with lkm and when i wrote a code that print alert each time process is been execute it work fine but when i tried to print the file name paramter it crashed my computer
Code:asmlinkage long our_execl( const char __user* filename, const char __user* const __user* argv,
const char __user* const __user* envp )
{
printk(filename);
return orignal_execl( filename, argv, envp );
}latest?d=yIl2AUoC8zA latest?i=2ffKf6Tq0CE:toFfo2QbQjE:F7zBnMy latest?i=2ffKf6Tq0CE:toFfo2QbQjE:V_sGLiP latest?d=qj6IDK7rITs latest?i=2ffKf6Tq0CE:toFfo2QbQjE:gIN9vFw2ffKf6Tq0CE
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments