diff options
Diffstat (limited to 'ipc/namespace.c')
-rw-r--r-- | ipc/namespace.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ipc/namespace.c b/ipc/namespace.c index fab727d9fe09..0abdea496493 100644 --- a/ipc/namespace.c +++ b/ipc/namespace.c | |||
@@ -188,10 +188,16 @@ static int ipcns_install(struct nsproxy *nsproxy, struct ns_common *new) | |||
188 | return 0; | 188 | return 0; |
189 | } | 189 | } |
190 | 190 | ||
191 | static struct user_namespace *ipcns_owner(struct ns_common *ns) | ||
192 | { | ||
193 | return to_ipc_ns(ns)->user_ns; | ||
194 | } | ||
195 | |||
191 | const struct proc_ns_operations ipcns_operations = { | 196 | const struct proc_ns_operations ipcns_operations = { |
192 | .name = "ipc", | 197 | .name = "ipc", |
193 | .type = CLONE_NEWIPC, | 198 | .type = CLONE_NEWIPC, |
194 | .get = ipcns_get, | 199 | .get = ipcns_get, |
195 | .put = ipcns_put, | 200 | .put = ipcns_put, |
196 | .install = ipcns_install, | 201 | .install = ipcns_install, |
202 | .owner = ipcns_owner, | ||
197 | }; | 203 | }; |