Commit ff6d500
selftests/seccomp: Handle EINVAL on unshare(CLONE_NEWPID)
commit ecaaa55 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>1 parent 0eba298 commit ff6d500
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3709 | 3709 | | |
3710 | 3710 | | |
3711 | 3711 | | |
3712 | | - | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
3713 | 3718 | | |
3714 | 3719 | | |
3715 | 3720 | | |
| |||
3727 | 3732 | | |
3728 | 3733 | | |
3729 | 3734 | | |
| 3735 | + | |
| 3736 | + | |
3730 | 3737 | | |
3731 | 3738 | | |
3732 | 3739 | | |
| |||
0 commit comments