summaryrefslogtreecommitdiffstats
path: root/fs/sysfs/mount.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2013-03-22 02:13:15 +0100
committerEric W. Biederman <ebiederm@xmission.com>2013-03-27 15:50:06 +0100
commita636b702ed1805e988ad3d8ff8b52c060f8b341c (patch)
tree6144e89780172adc58cea3cab7d75000ae31fa04 /fs/sysfs/mount.c
parentvfs: Carefully propogate mounts across user namespaces (diff)
downloadlinux-a636b702ed1805e988ad3d8ff8b52c060f8b341c.tar.xz
linux-a636b702ed1805e988ad3d8ff8b52c060f8b341c.zip
ipc: Restrict mounting the mqueue filesystem
Only allow mounting the mqueue filesystem if the caller has CAP_SYS_ADMIN rights over the ipc namespace. The principle here is if you create or have capabilities over it you can mount it, otherwise you get to live with what other people have mounted. This information is not particularly sensitive and mqueue essentially only reports which posix messages queues exist. Still when creating a restricted environment for an application to live any extra information may be of use to someone with sufficient creativity. The historical if imperfect way this information has been restricted has been not to allow mounts and restricting this to ipc namespace creators maintains the spirit of the historical restriction. Cc: stable@vger.kernel.org Acked-by: Serge Hallyn <serge.hallyn@canonical.com> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'fs/sysfs/mount.c')
0 files changed, 0 insertions, 0 deletions