Andrey Vagin bcac25a58b kernel: add a helper to get an owning user namespace for a namespace
Return -EPERM if an owning user namespace is outside of a process
current user namespace.

v2: In a first version ns_get_owner returned ENOENT for init_user_ns.
    This special cases was removed from this version. There is nothing
    outside of init_user_ns, so we can return EPERM.
v3: rename ns->get_owner() to ns->owner(). get_* usually means that it
grabs a reference.

Acked-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Andrei Vagin <avagin@openvz.org>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
2016-09-22 19:59:39 -05:00
..
2016-07-28 12:26:31 -07:00
2016-02-16 20:21:48 -05:00
2016-06-03 19:37:21 -04:00
2015-04-02 14:04:59 -04:00
2016-02-21 22:00:28 -05:00
2015-11-22 11:54:10 -05:00
2016-07-13 11:53:41 -07:00
2015-10-26 22:24:22 -07:00