summaryrefslogtreecommitdiffstats
path: root/ipc/mqueue.c
diff options
context:
space:
mode:
authorGao feng <gaofeng@cn.fujitsu.com>2013-01-27 22:09:01 -0500
committerEric W. Biederman <ebiederm@xmission.com>2013-01-27 22:25:50 -0500
commitbc1b69ed22a704fb1cc83d75b2eb46508a06c820 (patch)
treedb9d3feb6cc45303c8bbda31d4ce6a3569eda929 /ipc/mqueue.c
parent2b8576cb09a7b1b581c253554bf9e05d3adce7d6 (diff)
userns: Allow the unprivileged users to mount mqueue fs
This patch allow the unprivileged user to mount mqueuefs in user ns. If two userns share the same ipcns,the files in mqueue fs should be seen in both these two userns. If the userns has its own ipcns,it has its own mqueue fs too. ipcns has already done this job well. Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r--ipc/mqueue.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 71a3ca18c873..023c9867ff43 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -1383,6 +1383,7 @@ static struct file_system_type mqueue_fs_type = {
1383 .name = "mqueue", 1383 .name = "mqueue",
1384 .mount = mqueue_mount, 1384 .mount = mqueue_mount,
1385 .kill_sb = kill_litter_super, 1385 .kill_sb = kill_litter_super,
1386 .fs_flags = FS_USERNS_MOUNT,
1386}; 1387};
1387 1388
1388int mq_init_ns(struct ipc_namespace *ns) 1389int mq_init_ns(struct ipc_namespace *ns)