Hi all !
I am working on writing a generic system call handler, which can intercept (almost) all linux system calls. I have already written a simple module which intercepts chdir() system call. But, the thing is it doesn't sounds like a good idea to write separate function for each system call. So, I am trying to write a generic function which can intercept all the system calls.
To start with, I wrote a function which takes six arguments (max no of arguments which any exisiting system call could have) and it is working fine for intercepting few system call like exit, chdir etc. But, system calls like fork(), read() etc are not working.