[lkml]   [2000]   [Oct]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectexecve replacement.
Hi everybody,

I have replaced the execve() kernel API with my own implementation but it
doesn't work well.

extern void * sys_call_table[]

asmlinkage int (*system_execve)(const char *, const char **, const char

asmlinkage int my_execve(const char * filename, const char **argv, const
char **envp)
return system_execve(filename, argv, envp);

int init_module()
system_execve = sys_call_table[__NR_execve];
sys_call_table[__NR_execve] = my_execve;

void cleanup_module()
sys_call_table[__NR_execve] = system_execve;

Does anybody know where is the problem?

Thanks in advance.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:39    [W:0.080 / U:1.472 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site