diff options
author | Christian Brauner <christian.brauner@ubuntu.com> | 2020-05-05 16:04:32 +0200 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2020-05-13 11:41:22 +0200 |
commit | 2b40c5db73e239531ea54991087f4edc07fbb08e (patch) | |
tree | 87b39da2a4f8975b3388e8c7abe9b68851a9b991 /tools/testing/selftests/pidfd/Makefile | |
parent | nsproxy: attach to namespaces via pidfds (diff) | |
download | linux-dev-2b40c5db73e239531ea54991087f4edc07fbb08e.tar.xz linux-dev-2b40c5db73e239531ea54991087f4edc07fbb08e.zip |
selftests/pidfd: add pidfd setns tests
This is basically a test-suite for setns() and as of now contains:
- test that we can't pass garbage flags
- test that we can't attach to the namespaces of task that has already exited
- test that we can incrementally setns into all namespaces of a target task
using a pidfd
- test that we can setns atomically into all namespaces of a target task
- test that we can't cross setns into a user namespace outside of our user
namespace hierarchy
- test that we can't setns into namespaces owned by user namespaces over which
we are not privileged
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20200505140432.181565-4-christian.brauner@ubuntu.com
Diffstat (limited to 'tools/testing/selftests/pidfd/Makefile')
-rw-r--r-- | tools/testing/selftests/pidfd/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/testing/selftests/pidfd/Makefile b/tools/testing/selftests/pidfd/Makefile index 75a545861375..f4a2f28f926b 100644 --- a/tools/testing/selftests/pidfd/Makefile +++ b/tools/testing/selftests/pidfd/Makefile @@ -1,7 +1,8 @@ # 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 pidfd_getfd_test +TEST_GEN_PROGS := pidfd_test pidfd_fdinfo_test pidfd_open_test \ + pidfd_poll_test pidfd_wait pidfd_getfd_test pidfd_setns_test include ../lib.mk |