diff --git a/3_RootkitTechniques/3.3_set_root/ftrace_helper.h b/3_RootkitTechniques/3.3_set_root/ftrace_helper.h index 1ecdf76..f3a0171 100644 --- a/3_RootkitTechniques/3.3_set_root/ftrace_helper.h +++ b/3_RootkitTechniques/3.3_set_root/ftrace_helper.h @@ -9,6 +9,10 @@ #include #include +#if defined(CONFIG_X86_64) && (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0)) +#define PTREGS_SYSCALL_STUBS 1 +#endif + /* x64 has to be special and require a different naming convention */ #ifdef PTREGS_SYSCALL_STUBS #define SYSCALL_NAME(name) ("__x64_" name)