mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
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>
This commit is contained in:
parent
6786741dbf
commit
a7306ed8d9
5 changed files with 27 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue