kernel: fix syscall_work version

This commit is contained in:
weishu
2023-01-07 20:11:33 +07:00
parent 94d0d5ac6b
commit 43bea50605

View File

@@ -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);