aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/nsfs.h
diff options
context:
space:
mode:
authorAndrey Vagin <avagin@openvz.org>2016-09-06 00:47:15 -0700
committerEric W. Biederman <ebiederm@xmission.com>2016-09-22 19:59:41 -0500
commita7306ed8d94af729ecef8b6e37506a1c6fc14788 (patch)
tree0d45320911d2a339bc0abd6bacd5703c7308c08c /include/uapi/linux/nsfs.h
parentnsfs: add ioctl to get an owning user namespace for ns file descriptor (diff)
downloadlinux-dev-a7306ed8d94af729ecef8b6e37506a1c6fc14788.tar.xz
linux-dev-a7306ed8d94af729ecef8b6e37506a1c6fc14788.zip
nsfs: add ioctl to get a parent namespace
Pid and user namepaces are hierarchical. There is no way to discover parent-child relationships. In a future we will use this interface to dump and restore nested namespaces. Acked-by: Serge Hallyn <serge@hallyn.com> Signed-off-by: Andrei Vagin <avagin@openvz.org> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/uapi/linux/nsfs.h')
-rw-r--r--include/uapi/linux/nsfs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/nsfs.h b/include/uapi/linux/nsfs.h
index 5cacd5c1b5d7..3af617230d1b 100644
--- a/include/uapi/linux/nsfs.h
+++ b/include/uapi/linux/nsfs.h
@@ -7,5 +7,7 @@
/* Returns a file descriptor that refers to an owning user namespace */
#define NS_GET_USERNS _IO(NSIO, 0x1)
+/* Returns a file descriptor that refers to a parent namespace */
+#define NS_GET_PARENT _IO(NSIO, 0x2)
#endif /* __LINUX_NSFS_H */