gvisor/runsc
Michael Pratt 49b596b98d Cleanup host UDS support
This change fixes several issues with the fsgofer host UDS support. Notably, it
adds support for SOCK_SEQPACKET and SOCK_DGRAM sockets [1]. It also fixes
unsafe use of unet.Socket, which could cause a panic if Socket.FD is called
when err != nil, and calls to Socket.FD with nothing to prevent the garbage
collector from destroying and closing the socket.

A set of tests is added to exercise host UDS access. This required extracting
most of the syscall test runner into a library that can be used by custom
tests.

Updates #235
Updates #1003

[1] N.B. SOCK_DGRAM sockets are likely not particularly useful, as a server can
only reply to a client that binds first. We don't allow bind, so these are
unlikely to be used.

PiperOrigin-RevId: 275558502
2019-10-18 15:33:03 -07:00
..
boot Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
cgroup Impose order on test scripts. 2019-09-03 22:02:43 -07:00
cmd Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
console Always set SysProcAttr.Ctty to an FD in the child's FD table. 2019-06-26 11:27:31 -07:00
container Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
criutil Add tests for $HOME 2019-10-07 15:55:39 -07:00
debian Impose order on test scripts. 2019-09-03 22:02:43 -07:00
dockerutil Prevent CAP_NET_RAW from appearing in exec 2019-10-01 11:49:49 -07:00
fsgofer Cleanup host UDS support 2019-10-18 15:33:03 -07:00
sandbox Fix runsc log collection in kokoro 2019-09-25 14:33:11 -07:00
specutils Update TODO for OCI seccomp support. 2019-10-10 14:43:03 -07:00
testutil Cleanup host UDS support 2019-10-18 15:33:03 -07:00
BUILD runsc: remove todo from the build file 2019-10-01 16:25:34 -07:00
main.go Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
version.go Fix `runsc --version` and add a test. 2019-09-10 15:41:47 -07:00
version_test.sh Merge pull request #843 from nlacasse:version 2019-09-12 14:55:24 -07:00