]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit80d9f25a1efcd2b48e3aa0e28259e489a5574cbd
treead52709c95dcad424e38407a353460f333a0489c
parent25415d91adf6d10263c5ae9cf423db43bd09e212
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]