Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/seccomp: Update kernel config

seccomp_bpf.c uses unshare(CLONE_NEWPID), which requires CONFIG_PID_NS
to be set.

Cc: Kees Cook <keescook@chromium.org>
Cc: Shuah Khan <shuah@kernel.org>
Fixes: 6a21cc50f0c7 ("seccomp: add a return code to trap to userspace")
Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Acked-by: Tycho Andersen <tycho@tycho.pizza>
Signed-off-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20201202162643.249276-1-mic@digikod.net

authored by

Mickaël Salaün and committed by
Kees Cook
2c07343a 7ef95e3d

+1
+1
tools/testing/selftests/seccomp/config
··· 1 + CONFIG_PID_NS=y 1 2 CONFIG_SECCOMP=y 2 3 CONFIG_SECCOMP_FILTER=y 3 4 CONFIG_USER_NS=y