LWSS / Cartographer

Linux Kernel Module to spoof /proc maps
66 stars 8 forks source link

Fix Linux >=5.6 and fix C90 compiler warnings #8

Closed aw1cks closed 4 years ago

aw1cks commented 4 years ago

This PR adds a macro to check for kernel version, and if greater than or equal to 5.6.0, uses proc_ops instead of file_operations as the latter has been deprecated. Additionally I moved all variable instantiation before assignment to get rid of the C90 warnings from the compiler. I put both of these in one PR since fixing the compiler warnings was trivial, hope that's OK.

LWSS commented 4 years ago

thanks for this, you even cleaned up some of my zoomer-slop not declaring the variables at the top of the function.