linux/tools/testing/selftests/pidfd
Sargun Dhillon 873dfd7881
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>
2020-01-13 21:49:54 +01:00
..
.gitignore test: Add test for pidfd getfd 2020-01-13 21:49:54 +01:00
Makefile test: Add test for pidfd getfd 2020-01-13 21:49:54 +01:00
pidfd_fdinfo_test.c test: verify fdinfo for pidfd of reaped process 2019-10-17 15:36:54 +02:00
pidfd_getfd_test.c test: Add test for pidfd getfd 2020-01-13 21:49:54 +01:00
pidfd_open_test.c tests: move common definitions and functions into pidfd.h 2019-08-06 19:39:45 +02:00
pidfd_poll_test.c tests: add pidfd poll tests 2019-08-06 19:52:41 +02:00
pidfd_test.c core-process-v5.4 2019-09-16 09:28:19 -07:00
pidfd_wait.c pidfd: add pidfd_wait tests 2019-08-06 19:39:30 +02:00
pidfd.h test: Add test for pidfd getfd 2020-01-13 21:49:54 +01:00