aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/nsfs/Makefile
diff options
context:
space:
mode:
authorAndrey Vagin <avagin@openvz.org>2016-09-06 00:47:16 -0700
committerEric W. Biederman <ebiederm@xmission.com>2016-09-22 19:59:41 -0500
commit6ad92bf63e45f97e306da48cd1cbce6e4fef1e5d (patch)
tree3a880aea3a869f8ee5261704a7ca5e6f6983db17 /tools/testing/selftests/nsfs/Makefile
parentnsfs: add ioctl to get a parent namespace (diff)
downloadlinux-dev-6ad92bf63e45f97e306da48cd1cbce6e4fef1e5d.tar.xz
linux-dev-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 '')
-rw-r--r--tools/testing/selftests/nsfs/Makefile12
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