diff options
author | Stefan Hajnoczi <stefanha@redhat.com> | 2017-10-05 16:46:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-05 21:44:17 -0400 |
commit | 413a4317aca7d6367d57a5971b0c461f03851207 (patch) | |
tree | cf1b8a4ac209b5ce6ef8aaf861f84bc8279cf4d8 /MAINTAINERS | |
parent | 3b4477d2dcf2709d0be89e2a8dced3d0f4a017f2 (diff) |
VSOCK: add sock_diag interface
This patch adds the sock_diag interface for querying sockets from
userspace. Tools like ss(8) and netstat(8) can use this interface to
list open sockets.
The userspace ABI is defined in <linux/vm_sockets_diag.h> and includes
netlink request and response structs. The request can query sockets
based on their sk_state (e.g. listening sockets only) and the response
contains socket information fields including the local/remote addresses,
inode number, etc.
This patch does not dump VMCI pending sockets because I have only tested
the virtio transport, which does not use pending sockets. Support can
be added later by extending vsock_diag_dump() if needed by VMCI users.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'MAINTAINERS')
-rw-r--r-- | MAINTAINERS | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index d0cbb3d7a0ca..0fd9121953bb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -14286,6 +14286,8 @@ S: Maintained | |||
14286 | F: include/linux/virtio_vsock.h | 14286 | F: include/linux/virtio_vsock.h |
14287 | F: include/uapi/linux/virtio_vsock.h | 14287 | F: include/uapi/linux/virtio_vsock.h |
14288 | F: include/uapi/linux/vsockmon.h | 14288 | F: include/uapi/linux/vsockmon.h |
14289 | F: include/uapi/linux/vm_sockets_diag.h | ||
14290 | F: net/vmw_vsock/diag.c | ||
14289 | F: net/vmw_vsock/af_vsock_tap.c | 14291 | F: net/vmw_vsock/af_vsock_tap.c |
14290 | F: net/vmw_vsock/virtio_transport_common.c | 14292 | F: net/vmw_vsock/virtio_transport_common.c |
14291 | F: net/vmw_vsock/virtio_transport.c | 14293 | F: net/vmw_vsock/virtio_transport.c |