diff options
Diffstat (limited to 'net/core/net_namespace.c')
-rw-r--r-- | net/core/net_namespace.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index 06af5d6a883c..e8be581b47b0 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c | |||
@@ -1016,11 +1016,17 @@ static int netns_install(struct nsproxy *nsproxy, struct ns_common *ns) | |||
1016 | return 0; | 1016 | return 0; |
1017 | } | 1017 | } |
1018 | 1018 | ||
1019 | static struct user_namespace *netns_owner(struct ns_common *ns) | ||
1020 | { | ||
1021 | return to_net_ns(ns)->user_ns; | ||
1022 | } | ||
1023 | |||
1019 | const struct proc_ns_operations netns_operations = { | 1024 | const struct proc_ns_operations netns_operations = { |
1020 | .name = "net", | 1025 | .name = "net", |
1021 | .type = CLONE_NEWNET, | 1026 | .type = CLONE_NEWNET, |
1022 | .get = netns_get, | 1027 | .get = netns_get, |
1023 | .put = netns_put, | 1028 | .put = netns_put, |
1024 | .install = netns_install, | 1029 | .install = netns_install, |
1030 | .owner = netns_owner, | ||
1025 | }; | 1031 | }; |
1026 | #endif | 1032 | #endif |