linux-imx/tools/testing/selftests/seccomp
Terry Tritton 612fbf6588 selftests/seccomp: Handle EINVAL on unshare(CLONE_NEWPID)
commit ecaaa55c9f upstream.

unshare(CLONE_NEWPID) can return EINVAL if the kernel does not have the
CONFIG_PID_NS option enabled.

Add a check on these calls to skip the test if we receive EINVAL.

Signed-off-by: Terry Tritton <terry.tritton@linaro.org>
Link: https://lore.kernel.org/r/20240124141357.1243457-2-terry.tritton@linaro.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-02 16:32:42 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
config selftests/seccomp: Update kernel config 2020-12-02 11:20:54 -08:00
Makefile selftests: seccomp: Fix incorrect kernel headers search path 2023-02-13 09:09:45 -07:00
seccomp_benchmark.c selftests/seccomp: remove ARRAY_SIZE define from seccomp_benchmark 2021-12-10 17:51:09 -07:00
seccomp_bpf.c selftests/seccomp: Handle EINVAL on unshare(CLONE_NEWPID) 2024-05-02 16:32:42 +02:00
settings selftests/seccomp: Compare bitmap vs filter overhead 2020-11-20 11:16:34 -08:00