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-10-12 11:01:37 -07:00
2016-10-11 15:06:33 -07:00
2016-10-17 16:26:29 +01:00
2016-10-29 16:23:48 -04:00
2016-10-30 17:31:12 -04:00
2016-10-08 20:56:54 -07:00
2016-10-11 13:22:22 -07:00
2016-10-30 12:42:58 -04:00
2016-10-13 21:28:20 -07:00
2016-10-24 14:18:14 +02:00
2016-10-11 15:06:31 -07:00
2016-10-11 15:06:31 -07:00
2016-10-14 12:18:50 -07:00
2016-10-09 17:32:20 -07:00
2016-10-19 11:09:28 -04:00
2016-10-22 17:05:52 -04:00
2016-10-26 17:15:26 -04:00
2016-10-14 12:18:50 -07:00
2016-10-17 15:27:27 -07:00
2016-10-10 14:51:45 -07:00
2016-10-15 10:03:15 -07:00
2016-10-07 18:46:30 -07:00
2016-10-07 18:46:30 -07:00
2016-10-20 16:35:50 +02:00
2016-10-20 20:10:17 +02:00
2016-10-07 18:46:30 -07:00
2016-10-11 15:06:30 -07:00
2016-10-11 15:06:32 -07:00
2016-10-27 16:16:09 -04:00
2016-10-14 14:26:58 -07:00
2016-10-20 14:51:10 -04:00
2016-10-15 10:03:15 -07:00
2016-10-14 17:23:33 -07:00
2016-10-10 14:51:45 -07:00
2016-10-27 16:16:09 -04:00
2016-10-20 14:51:09 -04:00
2016-10-20 14:51:10 -04:00
2016-10-07 18:46:29 -07:00
2016-10-29 15:03:14 -04:00
2016-10-27 16:03:24 +02:00
2016-10-07 23:50:39 -04:00
2016-10-15 10:03:15 -07:00
2016-10-26 15:45:38 +10:00
2016-10-20 15:51:28 +11:00
2016-10-17 10:17:05 -04:00
2016-10-16 11:02:31 +02:00
2016-10-27 18:43:43 -07:00
2016-10-09 12:23:38 -07:00
2016-10-07 18:46:30 -07:00
2016-10-11 15:06:33 -07:00
2016-10-11 15:06:33 -07:00
2016-10-11 15:06:33 -07:00
2016-10-24 19:13:20 -07:00
2016-10-27 09:27:57 -07:00
2016-10-30 12:42:58 -04:00
2016-10-07 18:46:30 -07:00
2016-10-19 11:36:22 -06:00
2016-10-11 15:06:34 -07:00
2016-10-28 11:06:25 +02:00
2016-10-18 11:56:31 -04:00
2016-10-18 11:56:31 -04:00
2016-10-14 11:36:59 -07:00
2016-10-08 11:06:08 -04:00
2016-10-09 12:23:38 -07:00
2016-10-31 10:56:36 -04:00
2016-10-11 15:06:30 -07:00
2016-10-15 10:03:15 -07:00
2016-10-11 15:06:32 -07:00
2016-10-11 15:06:33 -07:00
2016-10-07 18:46:30 -07:00
2016-10-30 12:42:58 -04:00
2016-10-18 14:14:20 -04:00
2016-10-17 09:50:56 -07:00
2016-10-20 13:27:47 +02:00
2016-10-10 13:38:49 -07:00
2016-10-08 10:27:10 +02:00
2016-10-07 21:48:36 -04:00