kernel: fix seccomp, this is actually a fix of previous commit

This commit is contained in:
weishu
2022-12-22 22:20:12 +07:00
parent 3196731545
commit dcb1d38a37

View File

@@ -60,7 +60,7 @@ void escape_to_root() {
#ifdef CONFIG_GENERIC_ENTRY #ifdef CONFIG_GENERIC_ENTRY
current_thread_info()->syscall_work &= ~SYSCALL_WORK_SECCOMP; current_thread_info()->syscall_work &= ~SYSCALL_WORK_SECCOMP;
#else #else
current_thread_info()->flags &= ~(TIF_SECCOMP | SYSCALL_ENTER_WORK); current_thread_info()->flags &= ~(TIF_SECCOMP | _TIF_SECCOMP);
#endif #endif
current->seccomp.mode = 0; current->seccomp.mode = 0;
current->seccomp.filter = NULL; current->seccomp.filter = NULL;