summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/socket/rpcinet/rpcinet.go
diff options
context:
space:
mode:
authorIan Lewis <ianlewis@google.com>2020-01-08 16:35:43 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-08 17:24:05 -0800
commitfbb2c008e26a7e9d860f6cbf796ea7c375858502 (patch)
tree698e17f595ea9a689579cf009011171c4bbdcf9a /pkg/sentry/socket/rpcinet/rpcinet.go
parent565b64148314018e1234196182b55c4f01772e77 (diff)
Return correct length with MSG_TRUNC for unix sockets.
This change calls a new Truncate method on the EndpointReader in RecvMsg for both netlink and unix sockets. This allows readers such as sockets to peek at the length of data without actually reading it to a buffer. Fixes #993 #1240 PiperOrigin-RevId: 288800167
Diffstat (limited to 'pkg/sentry/socket/rpcinet/rpcinet.go')
0 files changed, 0 insertions, 0 deletions