kernel: add a helper to get an owning user namespace for a namespace
[cascardo/linux.git] / include / linux / proc_ns.h
index de0e771..ca85a43 100644 (file)
@@ -18,6 +18,7 @@ struct proc_ns_operations {
        struct ns_common *(*get)(struct task_struct *task);
        void (*put)(struct ns_common *ns);
        int (*install)(struct nsproxy *nsproxy, struct ns_common *ns);
+       struct user_namespace *(*owner)(struct ns_common *ns);
 };
 
 extern const struct proc_ns_operations netns_operations;