Skip to content

Commit

Permalink
selftests/seccomp: Update kernel config
Browse files Browse the repository at this point in the history
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: 6a21cc5 ("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
  • Loading branch information
Mickaël Salaün authored and Kees Cook committed Dec 2, 2020
1 parent 7ef95e3 commit 2c07343
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/testing/selftests/seccomp/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONFIG_PID_NS=y
CONFIG_SECCOMP=y
CONFIG_SECCOMP_FILTER=y
CONFIG_USER_NS=y

0 comments on commit 2c07343

Please sign in to comment.