Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc1b69ed authored by Gao feng's avatar Gao feng Committed by Eric W. Biederman
Browse files

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: default avatarGao feng <gaofeng@cn.fujitsu.com>
Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
parent 2b8576cb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)