summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/nsfs/Makefile
diff options
context:
space:
mode:
authorAndrey Vagin <avagin@openvz.org>2016-09-06 10:47:16 +0300
committerEric W. Biederman <ebiederm@xmission.com>2016-09-23 03:59:41 +0300
commit6ad92bf63e45f97e306da48cd1cbce6e4fef1e5d (patch)
tree3a880aea3a869f8ee5261704a7ca5e6f6983db17 /tools/testing/selftests/nsfs/Makefile
parenta7306ed8d94af729ecef8b6e37506a1c6fc14788 (diff)
downloadlinux-6ad92bf63e45f97e306da48cd1cbce6e4fef1e5d.tar.xz
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/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