Thread (15 messages) 15 messages, 5 authors, 2011-09-26

Hooking exec system call

From: Christophe Hauser <hidden>
Date: 2011-09-22 08:50:01

On Thu, Sep 22, 2011 at 01:53:44PM +0530, Abhijit Pawar wrote:
hi list,
Is there any way to hook the exec system call on Linux box apart from 
replacing the call in System Call table?

Regards,
Abhijit Pawar
 
Hi,

you can do that with LSM (CONFIG_SECURITY) using the bprm_set_creds hook (see
include/linux/security.h).

-- 
Christophe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help