kernel: use syscall hook for all version, remove code next version if works well

This commit is contained in:
buildbot
2024-04-26 11:42:24 +08:00
parent 2027ac325f
commit dedd54d890
2 changed files with 5 additions and 5 deletions

View File

@@ -532,7 +532,7 @@ static int input_handle_event_handler_pre(struct kprobe *p,
return ksu_handle_input_handle_event(type, code, value);
}
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)
#if 1
static struct kprobe execve_kp = {
.symbol_name = SYS_EXECVE_SYMBOL,
.pre_handler = sys_execve_handler_pre,
@@ -550,7 +550,7 @@ static struct kprobe execve_kp = {
};
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 10, 0)
#if 1
static struct kprobe vfs_read_kp = {
.symbol_name = SYS_READ_SYMBOL,
.pre_handler = sys_read_handler_pre,