gvisor/pkg/sentry/socket
Brian Geffon 4fd1d40e1d Rpcinet needs to track shutdown state for blocking sockets.
Because rpcinet will emulate a blocking socket backed by an rpc based
non-blocking socket. In the event of a shutdown(SHUT_RD) followed by a
read a non-blocking socket is allowed to return an EWOULDBLOCK however
since a blocking socket knows it cannot receive anymore data it would
block indefinitely and in this situation linux returns 0. We have to
track this on the rpcinet sentry side so we can emulate that behavior
because the remote side has no way to know if the socket is actually
blocking within the sentry.

PiperOrigin-RevId: 201201618
Change-Id: I4ac3a7b74b5dae471ab97c2e7d33b83f425aedac
2018-06-19 10:43:30 -07:00
..
control Implement SO_TIMESTAMP 2018-05-01 22:11:49 -07:00
epsocket sentry: Add simple SIOCGIFFLAGS support (IFF_RUNNING and IFF_PROMIS). 2018-05-22 13:47:33 -07:00
hostinet Set CLOEXEC option to sockets 2018-06-11 16:45:50 -07:00
netlink Refcount socket Dirents correctly. 2018-05-16 13:29:17 -07:00
rpcinet Rpcinet needs to track shutdown state for blocking sockets. 2018-06-19 10:43:30 -07:00
unix Refcount socket Dirents correctly. 2018-05-16 13:29:17 -07:00
BUILD Implement SO_TIMESTAMP 2018-05-01 22:11:49 -07:00
socket.go Implement SO_TIMESTAMP 2018-05-01 22:11:49 -07:00