Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions kernel/core_hook.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ static void disable_seccomp()
// disable seccomp
#if defined(CONFIG_GENERIC_ENTRY) && \
LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
current_thread_info()->syscall_work &= ~SYSCALL_WORK_SECCOMP;
clear_syscall_work(SECCOMP);
#else
current_thread_info()->flags &= ~(TIF_SECCOMP | _TIF_SECCOMP);
clear_thread_flag(TIF_SECCOMP);
#endif

#ifdef CONFIG_SECCOMP
Expand Down