Skip to content

Commit

Permalink
userns: Allow the unprivileged users to mount mqueue fs
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Eric W. Biederman <[email protected]>
  • Loading branch information
Gao feng authored and ebiederm committed Jan 28, 2013
1 parent 2b8576c commit bc1b69e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ipc/mqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bc1b69e

Please sign in to comment.