pidfd_getfd_v5.6
-----BEGIN PGP SIGNATURE-----

iHUEABYKAB0WIQRAhzRXHqcMeLMyaSiRxhvAZXjcogUCXjFp8gAKCRCRxhvAZXjc
oiogAQDM4WqnwR07YyZE+5zFpEU3LnOhS/maqPjF3elDeOcD3AEAvLXcCXUB67mE
pqp0y68RzTOGOsD2Gwx3YWcDZDeAGQE=
=nCnz
-----END PGP SIGNATURE-----
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>
4 files changed