gvisor/pkg/sentry/fs/host
Michael Pratt 57772db2e7 Shutdown host sockets on internal shutdown
This is required to make the shutdown visible to peers outside the
sandbox.

The readClosed / writeClosed fields were dropped, as they were
preventing a shutdown socket from reading the remainder of queued bytes.
The host syscalls will return the appropriate errors for shutdown.

The control message tests have been split out of socket_unix.cc to make
the (few) remaining tests accessible to testing inherited host UDS,
which don't support sending control messages.

Updates #273

PiperOrigin-RevId: 251763060
2019-06-05 18:40:37 -07:00
..
BUILD Remove license comments 2019-01-31 11:12:53 -08:00
control.go Implement the MSG_CTRUNC msghdr flag for Unix sockets. 2019-04-29 21:21:08 -07:00
descriptor.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
descriptor_state.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
descriptor_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
device.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
file.go Add basic plumbing for splice and stub implementation. 2019-05-21 15:18:12 -07:00
fs.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
fs_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
inode.go Return EPERM for mknod 2019-05-17 13:47:40 -07:00
inode_state.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
inode_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
ioctl_unsafe.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket.go Shutdown host sockets on internal shutdown 2019-06-05 18:40:37 -07:00
socket_iovec.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_state.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
socket_test.go Shutdown host sockets on internal shutdown 2019-06-05 18:40:37 -07:00
socket_unsafe.go Implement the MSG_CTRUNC msghdr flag for Unix sockets. 2019-04-29 21:21:08 -07:00
tty.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
util.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
util_unsafe.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
wait_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00