Files
kernel_arpi/include/linux
Andrey Vagin c62cce2cae net: add an ioctl to get a socket network namespace
Each socket operates in a network namespace where it has been created,
so if we want to dump and restore a socket, we have to know its network
namespace.

We have a socket_diag to get information about sockets, it doesn't
report sockets which are not bound or connected.

This patch introduces a new socket ioctl, which is called SIOCGSKNS
and used to get a file descriptor for a socket network namespace.

A task must have CAP_NET_ADMIN in a target network namespace to
use this ioctl.

Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Andrei Vagin <avagin@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-31 10:56:36 -04:00
..
2016-09-27 21:20:53 -04:00
2016-10-07 18:46:30 -07:00
2016-09-24 10:48:18 +02:00
2016-10-20 15:51:28 +11:00
2016-09-27 12:33:47 +02:00
2016-10-24 19:13:20 -07:00
2016-10-19 11:36:22 -06:00
2016-10-14 11:36:59 -07:00
2016-09-27 21:52:00 -04:00
2016-10-05 18:23:36 -04:00
2016-10-07 18:46:27 -07:00
2016-09-30 10:54:03 +02:00