proc connector: reject unprivileged listener bumps
authorKees Cook <keescook@chromium.org>
Mon, 25 Feb 2013 21:32:25 +0000 (21:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Feb 2013 18:08:35 +0000 (13:08 -0500)
commite70ab977991964a5a7ad1182799451d067e62669
tree1026f098ea84df13f0d94e5397d3a5ec6f913aeb
parent114a6f8b52163c0232fbcd7f3808ff04dc61a9b5
proc connector: reject unprivileged listener bumps

While PROC_CN_MCAST_LISTEN/IGNORE is entirely advisory, it was possible
for an unprivileged user to turn off notifications for all listeners by
sending PROC_CN_MCAST_IGNORE. Instead, require the same privileges as
required for a multicast bind.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: Evgeniy Polyakov <zbr@ioremap.net>
Cc: Matt Helsley <matthltc@us.ibm.com>
Cc: stable@vger.kernel.org
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Acked-by: Matt Helsley <matthltc@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/cn_proc.c