[PLUG] Kernel level file calling

Manas Alekar manas_alekar at yahoo.com
Fri Nov 19 20:41:25 PST 2010


> Now can I write a kernel module or any other application as a  daemon, which

> intercepts this call and reads the contents of my file and then  passes back
> the control to foo.

Your question is not well formed. Read the data in the module? And? Even so,
you don't need to write a kernel module. Hijack the system call using env 
variable
LD_PRELOAD.

Best,
Manas




More information about the plug-mail mailing list