]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/seccomp: Update kernel config
authorMickaël Salaün <mic@linux.microsoft.com>
Wed, 2 Dec 2020 16:26:43 +0000 (17:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:51:16 +0000 (11:51 +0100)
commit5ac81a4e5fa3ae9a5c4c0793d3d630b68fe2ef2e
tree36a12c2b7d84df651b6a98376c3b36a1e920b6b9
parent0588b8a034693c097dabce9e398ac67268f52f1e
selftests/seccomp: Update kernel config

[ Upstream commit 2c07343abd8932200a45ff7b10950e71081e9e77 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/seccomp/config