linux/tools/testing/selftests/pidfd
Christian Kellner 2def297ec7 pidfd: add tests for NSpid info in fdinfo
Add a test that checks that if pid namespaces are configured the fdinfo
file of a pidfd contains an NSpid: entry containing the process id in
the current and additionally all nested namespaces. In the case that
a pidfd is from a pid namespace not in the same namespace hierarchy as
the process accessing the fdinfo file, ensure the 'NSpid' shows 0 for
that pidfd, analogous to the 'Pid' entry.

Signed-off-by: Christian Kellner <christian@kellner.me>
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20191014162034.2185-2-ckellner@redhat.com
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
2019-10-15 12:17:11 +02:00
..
.gitignore tests: add pidfd poll tests 2019-08-06 19:52:41 +02:00
Makefile pidfd: add tests for NSpid info in fdinfo 2019-10-15 12:17:11 +02:00
pidfd_fdinfo_test.c pidfd: add tests for NSpid info in fdinfo 2019-10-15 12:17:11 +02: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 tests: move common definitions and functions into pidfd.h 2019-08-06 19:39:45 +02:00