diff options
author | Andrey Vagin <avagin@openvz.org> | 2016-09-06 10:47:15 +0300 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2016-09-23 03:59:41 +0300 |
commit | a7306ed8d94af729ecef8b6e37506a1c6fc14788 (patch) | |
tree | 0d45320911d2a339bc0abd6bacd5703c7308c08c /include/linux | |
parent | 6786741dbf99e44fb0c0ed85a37582b8a26f1c3b (diff) | |
download | linux-a7306ed8d94af729ecef8b6e37506a1c6fc14788.tar.xz |
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/linux')
-rw-r--r-- | include/linux/proc_ns.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/proc_ns.h b/include/linux/proc_ns.h index ca85a4348ffc..12cb8bd81d2d 100644 --- a/include/linux/proc_ns.h +++ b/include/linux/proc_ns.h @@ -19,6 +19,7 @@ struct proc_ns_operations { void (*put)(struct ns_common *ns); int (*install)(struct nsproxy *nsproxy, struct ns_common *ns); struct user_namespace *(*owner)(struct ns_common *ns); + struct ns_common *(*get_parent)(struct ns_common *ns); }; extern const struct proc_ns_operations netns_operations; |