android_kernel_samsung_msm8976/net/unix
Andrei Vagin a3a7f9f79d net/unix: don't show information about sockets from other namespaces
commit 0f5da659d8f1810f44de14acf2c80cd6499623a0 upstream.

socket_diag shows information only about sockets from a namespace where
a diag socket lives.

But if we request information about one unix socket, the kernel don't
check that its netns is matched with a diag socket namespace, so any
user can get information about any unix socket in a system. This looks
like a bug.

v2: add a Fixes tag

Fixes: 51d7cccf07 ("net: make sock diag per-namespace")
Signed-off-by: Andrei Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-07-27 21:45:50 +02:00
..
Kconfig
Makefile
af_unix.c af_unix: move unix_mknod() out of bindlock 2019-07-27 21:43:50 +02:00
diag.c net/unix: don't show information about sockets from other namespaces 2019-07-27 21:45:50 +02:00
garbage.c net: unix: properly re-increment inflight counter of GC discarded candidates 2019-07-27 21:43:15 +02:00
sysctl_net_unix.c