From bc1b69ed22a704fb1cc83d75b2eb46508a06c820 Mon Sep 17 00:00:00 2001 From: Gao feng Date: Mon, 28 Jan 2013 11:09:01 +0800 Subject: 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 Signed-off-by: Eric W. Biederman --- ipc/mqueue.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ipc') 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 = { .name = "mqueue", .mount = mqueue_mount, .kill_sb = kill_litter_super, + .fs_flags = FS_USERNS_MOUNT, }; int mq_init_ns(struct ipc_namespace *ns) -- cgit v1.2.3-59-g8ed1b