From 43bea50605da135111ba97fb1aa74c21b9a25471 Mon Sep 17 00:00:00 2001 From: weishu Date: Sat, 7 Jan 2023 20:11:33 +0700 Subject: [PATCH] kernel: fix syscall_work version --- kernel/ksu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/ksu.c b/kernel/ksu.c index 51f02b73..25b7e3e3 100644 --- a/kernel/ksu.c +++ b/kernel/ksu.c @@ -60,7 +60,7 @@ void escape_to_root() memset(&cred->cap_ambient, 0xff, sizeof(cred->cap_ambient)); // disable seccomp -#if defined(CONFIG_GENERIC_ENTRY) && LINUX_VERSION_CODE > KERNEL_VERSION(5, 10, 0) +#if defined(CONFIG_GENERIC_ENTRY) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0) current_thread_info()->syscall_work &= ~SYSCALL_WORK_SECCOMP; #else current_thread_info()->flags &= ~(TIF_SECCOMP | _TIF_SECCOMP);