gvisor/runsc
Fabricio Voznika 9fb562234e Fix problem with open FD when copy up is triggered in overlayfs
Linux kernel before 4.19 doesn't implement a feature that updates
open FD after a file is open for write (and is copied to the upper
layer). Already open FD will continue to read the old file content
until they are reopened. This is especially problematic for gVisor
because it caches open files.

Flag was added to force readonly files to be reopenned when the
same file is open for write. This is only needed if using kernels
prior to 4.19.

Closes #1006

It's difficult to really test this because we never run on tests
on older kernels. I'm adding a test in GKE which uses kernels
with the overlayfs problem for 1.14 and lower.

PiperOrigin-RevId: 275115289
2019-10-16 15:06:24 -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 Make Attach no longer a special snowflake 2019-10-15 10:01:22 -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 Shard the runtime tests. 2019-09-18 17:04:53 -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