kernel: check CONFIG_SECCOMP status (#351)

This commit is contained in:
zhcnUTF8
2023-04-05 19:09:47 +08:00
committed by GitHub
parent f17de87952
commit fabaa61279

View File

@@ -76,8 +76,12 @@ void escape_to_root(void)
#else
current_thread_info()->flags &= ~(TIF_SECCOMP | _TIF_SECCOMP);
#endif
#ifdef CONFIG_SECCOMP
current->seccomp.mode = 0;
current->seccomp.filter = NULL;
#else
#endif
// setgroup to root
if (cred->group_info)