diff options
author | 2024-01-24 14:13:55 +0000 | |
---|---|---|
committer | 2024-02-01 10:16:03 -0800 | |
commit | ecaaa55c9fa5e8058445a8b891070b12208cdb6d (patch) | |
tree | 97846584c70471b987504c9f62a312b324ef201c /scripts/gdb/linux/utils.py | |
parent | Linux 6.8-rc2 (diff) | |
download | wireguard-linux-ecaaa55c9fa5e8058445a8b891070b12208cdb6d.tar.xz wireguard-linux-ecaaa55c9fa5e8058445a8b891070b12208cdb6d.zip |
selftests/seccomp: Handle EINVAL on unshare(CLONE_NEWPID)
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions