gvisor/runsc/boot
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
..
filter Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
platforms Avoid importing platforms from many source files 2019-07-03 22:51:26 -07:00
BUILD Rename epsocket to netstack. 2019-10-07 13:57:59 -07:00
compat.go
compat_amd64.go Update canonical repository. 2019-06-13 16:50:15 -07:00
compat_test.go
config.go Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
controller.go Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
debug.go
events.go Update canonical repository. 2019-06-13 16:50:15 -07:00
fds.go Remove map from fd_map, change to fd_table. 2019-07-02 19:28:59 -07:00
fs.go Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
fs_test.go
limits.go
loader.go Implement IP_TTL. 2019-10-07 19:29:51 -07:00
loader_test.go Mount volumes as super user 2019-08-27 10:47:16 -07:00
network.go Remove reundant global tcpip.LinkEndpointID. 2019-09-06 18:01:14 -07:00
pprof.go gvisor/runsc: apply seccomp filters before parsing a state file 2019-06-12 11:55:24 -07:00
strace.go
user.go Always set HOME env var with `runsc exec`. 2019-09-23 17:06:02 -07:00
user_test.go Always set HOME env var with `runsc exec`. 2019-09-23 17:06:02 -07:00