Skip to content

Commit

Permalink
FIXME: building warning on ARM64 (CentOS 7/8)
Browse files Browse the repository at this point in the history
The compat_exec hooking related isn't applicable for ARM64 targets

Signed-off-by: shenping.matt <shenping.matt@bytedance.com>
  • Loading branch information
shenping-bd committed Aug 29, 2024
1 parent bcb6ac0 commit d7e5926
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion driver/LKM/src/smith_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ static int EXECVE_GET_SOCK_FD_LIMIT = 12; /* maximum fd numbers to be queried *
static char connect_syscall_kprobe_state = 0x0;
static char execve_kretprobe_state = 0x0;
static char bind_kprobe_state = 0x0;
static char compat_execve_kretprobe_state = 0x0;
static char create_file_kprobe_state = 0x0;
static char ptrace_kprobe_state = 0x0;
static char do_init_module_kprobe_state = 0x0;
Expand Down Expand Up @@ -103,10 +102,16 @@ static char security_path_unlink_kprobe_state = 0x0;
static char call_usermodehelper_exec_kprobe_state = 0x0;
static char write_kprobe_state = 0x0;

#ifdef CONFIG_COMPAT
static char compat_execve_kretprobe_state = 0x0;
#endif

#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)
static char execveat_kretprobe_state = 0x0;
#ifdef CONFIG_COMPAT
static char compat_execveat_kretprobe_state = 0x0;
#endif
#endif

#if EXIT_PROTECT == 1
void exit_protect_action(void)
Expand Down

0 comments on commit d7e5926

Please sign in to comment.