diff options
author | Andrey Vagin <avagin@openvz.org> | 2016-09-06 09:47:15 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2016-09-23 02:59:41 +0200 |
commit | a7306ed8d94af729ecef8b6e37506a1c6fc14788 (patch) | |
tree | 0d45320911d2a339bc0abd6bacd5703c7308c08c /kernel/user_namespace.c | |
parent | nsfs: add ioctl to get an owning user namespace for ns file descriptor (diff) | |
download | linux-a7306ed8d94af729ecef8b6e37506a1c6fc14788.tar.xz linux-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 'kernel/user_namespace.c')
-rw-r--r-- | kernel/user_namespace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c index 0ef683a03c20..a58a219b99c6 100644 --- a/kernel/user_namespace.c +++ b/kernel/user_namespace.c @@ -1034,6 +1034,7 @@ const struct proc_ns_operations userns_operations = { .put = userns_put, .install = userns_install, .owner = userns_owner, + .get_parent = ns_get_owner, }; static __init int user_namespaces_init(void) |