selftests/exec: add file type errno tests
authorKees Cook <keescook@chromium.org>
Sat, 15 Aug 2020 00:30:17 +0000 (17:30 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 15 Aug 2020 02:56:56 +0000 (19:56 -0700)
commit0f71241a8e32baf9ac290cf915bc9b3ff265f7d3
treead52709c95dcad424e38407a353460f333a0489c
parentfc4177be963dccad73b98d7db3a8a38911f952b7
selftests/exec: add file type errno tests

Make sure execve() returns the expected errno values for non-regular
files.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Marc Zyngier <maz@kernel.org>
Link: http://lkml.kernel.org/r/20200813231723.2725102-3-keescook@chromium.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/exec/.gitignore
tools/testing/selftests/exec/Makefile
tools/testing/selftests/exec/non-regular.c [new file with mode: 0644]