]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ipc: Restrict mounting the mqueue filesystem
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 22 Mar 2013 01:13:15 +0000 (18:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 16:26:02 +0000 (09:26 -0700)
commit63795cc597539dff38550070dfd945dc08862eef
treec531ec2b6d08aba0715537cc7b98a2d045a7b3d8
parent9c773201d61272db49f8f33a83a3cb2a3fe4b14f
ipc: Restrict mounting the mqueue filesystem

commit a636b702ed1805e988ad3d8ff8b52c060f8b341c upstream.

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.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
ipc/mqueue.c