diff options
author | Andrey Vagin <avagin@openvz.org> | 2016-09-06 09:47:16 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2016-09-23 02:59:41 +0200 |
commit | 6ad92bf63e45f97e306da48cd1cbce6e4fef1e5d (patch) | |
tree | 3a880aea3a869f8ee5261704a7ca5e6f6983db17 /tools/testing/selftests/nsfs/Makefile | |
parent | nsfs: add ioctl to get a parent namespace (diff) | |
download | linux-6ad92bf63e45f97e306da48cd1cbce6e4fef1e5d.tar.xz linux-6ad92bf63e45f97e306da48cd1cbce6e4fef1e5d.zip |
tools/testing: add a test to check nsfs ioctl-s
There are two new ioctl-s:
One ioctl for the user namespace that owns a file descriptor.
One ioctl for the parent namespace of a namespace file descriptor.
The test checks that these ioctl-s works and that they handle a case
when a target namespace is outside of the current process namespace.
Signed-off-by: Andrei Vagin <avagin@openvz.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'tools/testing/selftests/nsfs/Makefile')
-rw-r--r-- | tools/testing/selftests/nsfs/Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/selftests/nsfs/Makefile b/tools/testing/selftests/nsfs/Makefile new file mode 100644 index 000000000000..2306054a901a --- /dev/null +++ b/tools/testing/selftests/nsfs/Makefile @@ -0,0 +1,12 @@ +TEST_PROGS := owner pidns + +CFLAGS := -Wall -Werror + +all: owner pidns +owner: owner.c +pidns: pidns.c + +clean: + $(RM) owner pidns + +include ../lib.mk |