diff options
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index cf2cc234c8b4..8a0e90eb81d3 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -3368,10 +3368,16 @@ static int mntns_install(struct nsproxy *nsproxy, struct ns_common *ns) | |||
3368 | return 0; | 3368 | return 0; |
3369 | } | 3369 | } |
3370 | 3370 | ||
3371 | static struct user_namespace *mntns_owner(struct ns_common *ns) | ||
3372 | { | ||
3373 | return to_mnt_ns(ns)->user_ns; | ||
3374 | } | ||
3375 | |||
3371 | const struct proc_ns_operations mntns_operations = { | 3376 | const struct proc_ns_operations mntns_operations = { |
3372 | .name = "mnt", | 3377 | .name = "mnt", |
3373 | .type = CLONE_NEWNS, | 3378 | .type = CLONE_NEWNS, |
3374 | .get = mntns_get, | 3379 | .get = mntns_get, |
3375 | .put = mntns_put, | 3380 | .put = mntns_put, |
3376 | .install = mntns_install, | 3381 | .install = mntns_install, |
3382 | .owner = mntns_owner, | ||
3377 | }; | 3383 | }; |