A simple kernel module who hides a file by hooking the getdents64 syscall.
First go to idanm.c and find the FILE_TO_HIDE macro, then replace it with the path to the file you want to hide.
Now you will have to compile the module, by using the following command:
makeThen you will have to load the module, use the following command:
sudo insmod hidefile.koTo unload the module, use the following command:
sudo rmmod hidefileTo delete the out data, use the following command:
make clean