tools/testing: add a test to check nsfs ioctl-s
authorAndrey Vagin <avagin@openvz.org>
Tue, 6 Sep 2016 07:47:16 +0000 (00:47 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Sep 2016 00:59:41 +0000 (19:59 -0500)
commit6ad92bf63e45f97e306da48cd1cbce6e4fef1e5d
tree3a880aea3a869f8ee5261704a7ca5e6f6983db17
parenta7306ed8d94af729ecef8b6e37506a1c6fc14788
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>
tools/testing/selftests/Makefile
tools/testing/selftests/nsfs/Makefile [new file with mode: 0644]
tools/testing/selftests/nsfs/owner.c [new file with mode: 0644]
tools/testing/selftests/nsfs/pidns.c [new file with mode: 0644]