We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc388ce commit dd8389dCopy full SHA for dd8389d
kernel/core_hook.c
@@ -129,9 +129,9 @@ static void disable_seccomp(struct task_struct *tsk)
129
// disable seccomp
130
#if defined(CONFIG_GENERIC_ENTRY) && \
131
LINUX_VERSION_CODE >= KERNEL_VERSION(5, 11, 0)
132
- current_thread_info()->syscall_work &= ~SYSCALL_WORK_SECCOMP;
+ clear_syscall_work(SECCOMP);
133
#else
134
- current_thread_info()->flags &= ~(TIF_SECCOMP | _TIF_SECCOMP);
+ clear_thread_flag(TIF_SECCOMP);
135
#endif
136
137
#ifdef CONFIG_SECCOMP
0 commit comments