I'm trying to set a keylogger kernel module. all is fine except the final log file. I'm trying to, at the exit of the module, write a log in a /tmp/ file.
I'm using last kernel version 4.20. I'm trying to use vfs_write, but when compiling, it tells me
"WARNING : vfs_write [...] undefined !"
and when im trying to insert the module it says me
"Unknown symbol vfs_write (err -2)"
i am using this method to do the job: Read/write files within a Linux kernel module
Tell me What i did wrong or how to correctly open /to write a file x). Thanks for all.