How to intercept execve system call...?
From: Prasad (prasad_3483_at_yahoo.co.in)
Date: 09/22/04
- Next message: Lepi: "Re: Closing down program"
- Previous message: Pieter: "Re: Closing down program"
- Next in thread: Kasper Dupont: "Re: How to intercept execve system call...?"
- Reply: Kasper Dupont: "Re: How to intercept execve system call...?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Sep 2004 05:18:35 -0700
Hello everyone !
I'm trying to intercept "execve" system call with the following
function...I am using with linux-2.6.8.1 kernel for it
asmlinkage int new_execve(struct pt_regs my_regs)
{
printk("%s: user %d is trying to execute ", __FUNCTION__, current
-> uid);
printk("%s \n",(char *)my_regs.ebx);
return( old_execve(my_regs) );
}
But after loading my LKM module with above function, I'm getting a
segmentation fault for every external shell command executed .
Could you pls tell me "What is that I'm missing here..."
regards
-Prasad
- Next message: Lepi: "Re: Closing down program"
- Previous message: Pieter: "Re: Closing down program"
- Next in thread: Kasper Dupont: "Re: How to intercept execve system call...?"
- Reply: Kasper Dupont: "Re: How to intercept execve system call...?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|