linux_kernel_hacking
linux_kernel_hacking copied to clipboard
How do you bring all the modules together?
I want to integrate all the functions in one file, but, I meet lots of bug, For example, static struct ftrace_hook hooks[] = { HOOK("sys_getdents64", hook_getdents64, &orig_getdents64), HOOK("sys_getdents", hook_getdents, &orig_getdents), HOOK("tcp4_seq_show", hook_tcp4_seq_show, &orig_tcp4_seq_show), };
this will lead to printk(KERN_DEBUG "rootkit: unresolved symbol: %s\n", hook->name);
I don't know why , can you help me ??? thank you !!!!