aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/exec/Makefile
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-05-17 21:47:43 -0700
committerShuah Khan <skhan@linuxfoundation.org>2020-05-22 09:29:00 -0600
commit61016db15b8e20f371352db6a75b044ec3183fe7 (patch)
treee165fec62302f9fd5d2d7f0d23196b50b6fdcf3e /tools/testing/selftests/exec/Makefile
parentselftests: introduce gen_tar Makefile target (diff)
downloadwireguard-linux-61016db15b8e20f371352db6a75b044ec3183fe7.tar.xz
wireguard-linux-61016db15b8e20f371352db6a75b044ec3183fe7.zip
selftests/exec: Verify execve of non-regular files fail
Add a named pipe as an exec target to make sure that non-regular files are rejected by execve() with EACCES. This can help verify commit 73601ea5b7b1 ("fs/open.c: allow opening only regular files during execve()"). Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/exec/Makefile')
-rw-r--r--tools/testing/selftests/exec/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/exec/Makefile b/tools/testing/selftests/exec/Makefile
index 33339e31e365..cfafa1f8a2fa 100644
--- a/tools/testing/selftests/exec/Makefile
+++ b/tools/testing/selftests/exec/Makefile
@@ -4,7 +4,7 @@ CFLAGS += -Wno-nonnull
CFLAGS += -D_GNU_SOURCE
TEST_GEN_PROGS := execveat
-TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir
+TEST_GEN_FILES := execveat.symlink execveat.denatured script subdir pipe
# Makefile is a run-time dependency, since it's accessed by the execveat test
TEST_FILES := Makefile