nsfs: add ioctl to get a parent namespace
authorAndrey Vagin <avagin@openvz.org>
Tue, 6 Sep 2016 07:47:15 +0000 (00:47 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Sep 2016 00:59:41 +0000 (19:59 -0500)
commita7306ed8d94af729ecef8b6e37506a1c6fc14788
tree0d45320911d2a339bc0abd6bacd5703c7308c08c
parent6786741dbf99e44fb0c0ed85a37582b8a26f1c3b
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>
fs/nsfs.c
include/linux/proc_ns.h
include/uapi/linux/nsfs.h
kernel/pid_namespace.c
kernel/user_namespace.c