aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/pidfd/Makefile
diff options
context:
space:
mode:
authorSargun Dhillon <sargun@sargun.me>2020-01-07 09:59:27 -0800
committerChristian Brauner <christian.brauner@ubuntu.com>2020-01-13 21:49:54 +0100
commit873dfd7881d1d8840bf69c8c164f5323db7417fa (patch)
tree681e1f79da80c11111ec39e28d87d8362c276e15 /tools/testing/selftests/pidfd/Makefile
parentarch: wire up pidfd_getfd syscall (diff)
downloadlinux-dev-873dfd7881d1d8840bf69c8c164f5323db7417fa.tar.xz
linux-dev-873dfd7881d1d8840bf69c8c164f5323db7417fa.zip
test: Add test for pidfd getfd
The following tests: * Fetch FD, and then compare via kcmp * Make sure getfd can be blocked by blocking ptrace_may_access * Making sure fetching bad FDs fails * Make sure trying to set flags to non-zero results in an EINVAL Signed-off-by: Sargun Dhillon <sargun@sargun.me> Acked-by: Christian Brauner <christian.brauner@ubuntu.com> Link: https://lore.kernel.org/r/20200107175927.4558-5-sargun@sargun.me Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/pidfd/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/pidfd/Makefile b/tools/testing/selftests/pidfd/Makefile
index 43db1b98e845..75a545861375 100644
--- a/tools/testing/selftests/pidfd/Makefile
+++ b/tools/testing/selftests/pidfd/Makefile
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
CFLAGS += -g -I../../../../usr/include/ -pthread
-TEST_GEN_PROGS := pidfd_test pidfd_fdinfo_test pidfd_open_test pidfd_poll_test pidfd_wait
+TEST_GEN_PROGS := pidfd_test pidfd_fdinfo_test pidfd_open_test pidfd_poll_test pidfd_wait pidfd_getfd_test
include ../lib.mk