gvisor/runsc/cmd
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
..
BUILD Impose order on test scripts. 2019-09-03 22:02:43 -07:00
boot.go Avoid importing platforms from many source files 2019-07-03 22:51:26 -07:00
capability.go Update canonical repository. 2019-06-13 16:50:15 -07:00
capability_test.go Impose order on test scripts. 2019-09-03 22:02:43 -07:00
checkpoint.go Add Container/Sandbox args struct for creation 2019-06-18 14:46:49 -07:00
chroot.go Update canonical repository. 2019-06-13 16:50:15 -07:00
cmd.go Update canonical repository. 2019-06-13 16:50:15 -07:00
create.go Add Container/Sandbox args struct for creation 2019-06-18 14:46:49 -07:00
debug.go Allow to change logging options using 'runsc debug' 2019-06-24 15:03:02 -07:00
delete.go Update canonical repository. 2019-06-13 16:50:15 -07:00
delete_test.go Update canonical repository. 2019-06-13 16:50:15 -07:00
do.go Kill sandbox process when 'runsc do' exits 2019-06-18 15:36:17 -07:00
error.go Update canonical repository. 2019-06-13 16:50:15 -07:00
events.go Update canonical repository. 2019-06-13 16:50:15 -07:00
exec.go Prevent CAP_NET_RAW from appearing in exec 2019-10-01 11:49:49 -07:00
exec_test.go Prevent CAP_NET_RAW from appearing in exec 2019-10-01 11:49:49 -07:00
gofer.go Fix problem with open FD when copy up is triggered in overlayfs 2019-10-16 15:06:24 -07:00
gofer_test.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
help.go Add introspection for Linux/AMD64 syscalls 2019-06-10 23:38:36 -07:00
install.go Impose order on test scripts. 2019-09-03 22:02:43 -07:00
kill.go Update canonical repository. 2019-06-13 16:50:15 -07:00
list.go Update canonical repository. 2019-06-13 16:50:15 -07:00
path.go Change copyright notice to "The gVisor Authors" 2019-04-29 14:26:23 -07:00
pause.go Update canonical repository. 2019-06-13 16:50:15 -07:00
ps.go Update canonical repository. 2019-06-13 16:50:15 -07:00
restore.go Kill sandbox process when 'runsc do' exits 2019-06-18 15:36:17 -07:00
resume.go Update canonical repository. 2019-06-13 16:50:15 -07:00
run.go Kill sandbox process when 'runsc do' exits 2019-06-18 15:36:17 -07:00
spec.go
start.go Update canonical repository. 2019-06-13 16:50:15 -07:00
state.go Update canonical repository. 2019-06-13 16:50:15 -07:00
syscalls.go Fix various spelling issues in the documentation 2019-06-27 14:25:50 -07:00
wait.go Update canonical repository. 2019-06-13 16:50:15 -07:00