public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] userns: Allow the unprivileged users to mount mqueue fs
@ 2013-01-28  3:09 Gao feng
  2013-01-28  3:43 ` Eric W. Biederman
  0 siblings, 1 reply; 4+ messages in thread
From: Gao feng @ 2013-01-28  3:09 UTC (permalink / raw)
  To: ebiederm
  Cc: serge.hallyn, akpm, containers, linux-kernel, linux-fsdevel,
	Gao feng

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>
---
 ipc/mqueue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 71a3ca1..023c986 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)
-- 
1.7.11.7


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-28  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-28  3:09 [PATCH] userns: Allow the unprivileged users to mount mqueue fs Gao feng
2013-01-28  3:43 ` Eric W. Biederman
2013-01-28  6:48   ` Gao feng
2013-01-28  7:14     ` Eric W. Biederman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox