hello!!! evereone.
i donīt know how to catch the system call when a file is opened.
i wanna write a message when the kernel linux opens a file.
thanks!!!
Printable View
hello!!! evereone.
i donīt know how to catch the system call when a file is opened.
i wanna write a message when the kernel linux opens a file.
thanks!!!
By being in the USER Space, it cannot be done. Since, kernel does such operations in KERNEL space.
I am not completely clear with ur requirement
please luk into man for "strace" whether it will serve ur purpose
Couldn't he write a fake kernel module, one of these "Hello World" examples, and load that as a module?
Via ioctl calls the user app could communicate with that module. Only I don't know what message is there to catch in kernel space. :rolleyes: