Linux Kernel Module example. Rickroll prank.
March 19, 2016 Operating System Linux C Kernel Module
NOTE: The code used to replace the user's path with the one provided is BAD, never change user's pointer content unless he/she is expecting that to happen. Don't do that at home kids
I decided to explain the basics of a Linux Kernel Module with humor. I am not saying this is a good idea for April's fool, but it is quite close ;)
This module shares some ideas with the post about LD_PRELOAD, but this time it is not to defend ourselves. The module will replace the open syscall for our own where it... (read more)