Linux Kernel module that interceps the ‘openat’ syscall, reports the name of the file that a particular process opens to the user.
- run 'make' to build both kernel module and user-space client
- run 'make module' to build kernel module only
- run 'make client' to build user-space client only
-
Insert built kernel module into your kernel
sudo insmod ./alternate_openat.ko
or
sudo insmod ./alternate_openat.ko editor="<your editor>
NOTE: If 'editor' argument isnt supplied it defaults to 'gedit'
-
Run client
./client
-
Run your editor
gedit
or
<editor you supplied to module>
-
Observe the list of file were opened by editor