suterusu icon indicating copy to clipboard operation
suterusu copied to clipboard

Couldn't be compiled on 4.x Linux(which I have expected)

Open targetnull opened this issue 8 years ago • 4 comments

Hi, I'm trying it on the 4.4.0 arm linux and it couldn't be compiled, saying that

main.c:255:28: error: ‘struct file’ has no member named ‘f_dentry’ afinfo = PDE_DATA(filep->f_dentry->d_inode);

But I have expected this because the file structure could change from version to version. I'd like to know wether you plan to update this project to support the latest kernel. If you don't, could you provide me with some reference where I can find such examples?

BTW, since you can do hijackings, is there a way to defend such attacks? Take the keylogger as an example, you have registered a modified keyboad notifier, is there any method to prevent an unauthorized process from doing so?

Thanks

targetnull avatar Mar 30 '16 13:03 targetnull

This has not been tested, but it compiles now, theres 2 places in main.c that need this update: #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) afinfo = PDE(filep->f_dentry->d_inode)->data; #elif LINUX_VERSION_CODE < KERNEL_VERSION(3, 19, 0) afinfo = PDE_DATA(filep->f_dentry->d_inode); #else afinfo = PDE_DATA(filep->f_path.dentry->d_inode); #endif

bzgo avatar May 12 '16 01:05 bzgo

Well, nowadays we have arrived at 5.x version...

q2dg avatar Feb 17 '19 01:02 q2dg

Well, nowadays we have arrived at 5.x version...

Hi, guys. I want to cross-compile it for Linux 4.1.x, but it threw out this error. What can I do? 1587189744(1) it seems that it points to wrong lib. the asm/bitsperlong.h is in arch/arm/include/asm.

Mrdongzai avatar Apr 18 '20 12:04 Mrdongzai

Well, nowadays we have arrived at 5.x version...

image it's really strange. if I compile it in my Linux 4.15. it works well. but when I cross-compile it threw out the problem. 1587189744(1)

Mrdongzai avatar Apr 18 '20 15:04 Mrdongzai