Re: [PATCH v2] net/unix: don't show information about sockets from other namespaces

2017-10-25 Thread David Miller
From: Andrei Vagin Date: Wed, 25 Oct 2017 10:16:42 -0700 > 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 a

[PATCH v2] net/unix: don't show information about sockets from other namespaces

2017-10-25 Thread Andrei Vagin
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 l