kernel: Fix compatibility with nongki kernels (#594)

This commit is contained in:
YangQi0408
2025-11-18 00:25:48 +08:00
committed by GitHub
parent c4faf57ca9
commit fb539fae57
5 changed files with 36 additions and 6 deletions

View File

@@ -82,8 +82,9 @@ void disable_seccomp(void)
#ifdef CONFIG_SECCOMP
current->seccomp.mode = 0;
current->seccomp.filter = NULL;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)
atomic_set(&current->seccomp.filter_count, 0);
#else
#endif
#endif
}