gvisor/runsc
Jamie Liu f8ffadddb3 Add p9.OpenTruncate.
This is required to implement O_TRUNC correctly on filesystems backed by
gofers.

9P2000.L: "lopen prepares fid for file I/O. flags contains Linux open(2) flags
bits, e.g. O_RDONLY, O_RDWR, O_WRONLY."

open(2): "The argument flags must include one of the following access modes:
O_RDONLY, O_WRONLY, or O_RDWR. ... In addition, zero or more file creation
flags and file status flags can be bitwise-or'd in flags."

The reference 9P2000.L implementation also appears to expect arbitrary flags,
not just access modes, in Tlopen.flags:
https://github.com/chaos/diod/blob/master/diod/ops.c#L703

PiperOrigin-RevId: 278972683
2019-11-06 17:11:58 -08:00
..
boot Add NETLINK_KOBJECT_UEVENT socket support 2019-11-04 10:07:52 -08: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 container locking 2019-10-30 15:39:04 -07:00
criutil Add tests for $HOME 2019-10-07 15:55:39 -07:00
debian Fix repository build scripts. 2019-11-05 15:16:04 -08:00
dockerutil Prevent CAP_NET_RAW from appearing in exec 2019-10-01 11:49:49 -07:00
fsgofer Add p9.OpenTruncate. 2019-11-06 17:11:58 -08:00
sandbox netstack/tcp: software segmentation offload 2019-10-22 11:55:56 -07:00
specutils Merge pull request #1046 from tomlanyon:crio 2019-10-22 17:05:04 -07:00
testutil Fix early deletion of rootDir 2019-10-24 16:36:54 -07:00
BUILD Fix repository build scripts. 2019-11-05 15:16:04 -08:00
main.go Add systemd-cgroup flag option. 2019-10-31 17:39:06 -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