Reset seccomp filter count when escaping to root

This commit is contained in:
Wang Han
2025-08-15 21:49:17 +08:00
committed by GitHub
parent 1ccdbc2b76
commit 884ca5851a

View File

@@ -125,6 +125,7 @@ static void disable_seccomp()
#ifdef CONFIG_SECCOMP
current->seccomp.mode = 0;
current->seccomp.filter = NULL;
atomic_set(current->seccomp.filter_count, 0);
#else
#endif
}