The module disable write protection, and replace original syscall such as sys_open to sys_open_hooked by write syscall table(0xc15fa020).
The sys_open_hooked syscall will check whether the string of the filename has a flag substring. If there not, then the original sys_open is called. If there is, it returns a fd with a value of -1, then the file opening failed.
Of cource, other sys_call such as sys_symlink will failed also.
1 2 3
/tmp # ln -s ../flag ./ [ 5234.521789] You will not see the flag... ln: ./flag: Operation not permitted