gvisor/pkg/sentry/socket
Rahat Mahmood a00157cc0e Store more information in the kernel socket table.
Store enough information in the kernel socket table to distinguish
between different types of sockets. Previously we were only storing
the socket family, but this isn't enough to classify sockets. For
example, TCPv4 and UDPv4 sockets are both AF_INET, and ICMP sockets
are SOCK_DGRAM sockets with a particular protocol.

Instead of creating more sub-tables, flatten the socket table and
provide a filtering mechanism based on the socket entry.

Also generate and store a socket entry index ("sl" in linux) which
allows us to output entries in a stable order from procfs.

PiperOrigin-RevId: 252495895
2019-06-10 15:17:43 -07:00
..
control gvisor/sock/unix: pass creds when a message is sent between unconnected sockets 2019-06-03 21:48:19 -07:00
epsocket Store more information in the kernel socket table. 2019-06-10 15:17:43 -07:00
hostinet Store more information in the kernel socket table. 2019-06-10 15:17:43 -07:00
netlink Store more information in the kernel socket table. 2019-06-10 15:17:43 -07:00
rpcinet Store more information in the kernel socket table. 2019-06-10 15:17:43 -07:00
unix Store more information in the kernel socket table. 2019-06-10 15:17:43 -07:00
BUILD Remove license comments 2019-01-31 11:12:53 -08:00
socket.go Store more information in the kernel socket table. 2019-06-10 15:17:43 -07:00