]> 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)
commita03978594fe15d238581d400159a834818e91265
treead52709c95dcad424e38407a353460f333a0489c
parent7e4067769f8ffbb1f373b6af3fafe80d9f8a6ded
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]