diff options
author | Sargun Dhillon <sargun@sargun.me> | 2020-01-07 09:59:27 -0800 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2020-01-13 21:49:54 +0100 |
commit | 873dfd7881d1d8840bf69c8c164f5323db7417fa (patch) | |
tree | 681e1f79da80c11111ec39e28d87d8362c276e15 /kernel | |
parent | 9a2cef09c801de54feecd912303ace5c27237f12 (diff) | |
download | linux-873dfd7881d1d8840bf69c8c164f5323db7417fa.tar.gz linux-873dfd7881d1d8840bf69c8c164f5323db7417fa.tar.bz2 linux-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 'kernel')
0 files changed, 0 insertions, 0 deletions