kernel: Fix compatibility with nongki kernels (#594)
This commit is contained in:
@@ -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(¤t->seccomp.filter_count, 0);
|
||||
#else
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user