gvisor/pkg/sentry
Nicolas Lacasse 3ad17ff597 Force timestamps to update when set via InodeOperations.SetTimestamps.
The gofer's CachingInodeOperations implementation contains an optimization for
the common open-read-close pattern when we have a host FD.  In this case, the
host kernel will update the timestamp for us to a reasonably close time, so we
don't need an extra RPC to the gofer.

However, when the app explicitly sets the timestamps (via futimes or similar)
then we actually DO need to update the timestamps, because the host kernel
won't do it for us.

To fix this, a new boolean `forceSetTimestamps` was added to
CachineInodeOperations.SetMaskedAttributes. It is only set by
gofer.InodeOperations.SetTimestamps.

PiperOrigin-RevId: 272048146
2019-09-30 13:08:45 -07:00
..
arch internal BUILD file cleanup. 2019-09-23 08:25:13 -07:00
context Preallocate auth.NewAnonymousCredentials() in contexttest.TestContext. 2019-06-20 13:36:14 -07:00
control Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
device Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
fs Force timestamps to update when set via InodeOperations.SetTimestamps. 2019-09-30 13:08:45 -07:00
fsimpl Change vfs.Dirent.Off to NextOff. 2019-09-20 14:24:29 -07:00
hostcpu Enable pkg/sentry/hostcpu support on arm64. 2019-09-18 23:51:42 +00:00
hostmm Update canonical repository. 2019-06-13 16:50:15 -07:00
inet netstack: Don't start endpoint goroutines too soon on restore. 2019-08-08 12:33:11 -07:00
kernel internal BUILD file cleanup. 2019-09-23 08:25:13 -07:00
limits Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
loader Fix comment typo 2019-08-27 11:44:06 -07:00
memmap Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
mm Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
pgalloc Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
platform gvisor: change syscall.RawSyscall to syscall.RawSyscall6 where required 2019-09-24 23:47:42 -07:00
safemem Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
sighandling Update canonical repository. 2019-06-13 16:50:15 -07:00
socket Implement SO_BINDTODEVICE sockopt 2019-09-27 14:14:04 -07:00
state netstack: Don't start endpoint goroutines too soon on restore. 2019-08-08 12:33:11 -07:00
strace internal BUILD file cleanup. 2019-09-23 08:25:13 -07:00
syscalls Only copy out remaining time on nanosleep success 2019-09-30 13:07:32 -07:00
time Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
unimpl internal BUILD file cleanup. 2019-09-23 08:25:13 -07:00
uniqueid Update canonical repository. 2019-06-13 16:50:15 -07:00
usage Remove support for non-incremental mapped accounting. 2019-08-30 19:06:55 -07:00
usermem Accelerate byte lookup in string with `bytealg/indexbyte` 2019-09-19 22:16:52 +08:00
vfs Change vfs.Dirent.Off to NextOff. 2019-09-20 14:24:29 -07:00
watchdog Add list of stuck tasks to panic message 2019-06-21 12:46:53 -07:00
BUILD go_marshal: Implement automatic generation of ABI marshalling code. 2019-09-09 13:36:39 -07:00