gvisor/pkg/sentry/fs/gofer
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
..
BUILD Remove go_test from go_stateify and go_marshal 2019-09-12 15:10:17 -07:00
attr.go Update canonical repository. 2019-06-13 16:50:15 -07:00
cache_policy.go Update canonical repository. 2019-06-13 16:50:15 -07:00
context_file.go Update canonical repository. 2019-06-13 16:50:15 -07:00
device.go Update canonical repository. 2019-06-13 16:50:15 -07:00
file.go Cache directory entries in the overlay 2019-06-27 14:24:03 -07:00
file_state.go Update canonical repository. 2019-06-13 16:50:15 -07:00
fs.go Add limit_host_fd_translation Gofer mount option. 2019-08-29 14:01:03 -07:00
gofer_test.go Plumb context through more layers of filesytem. 2019-06-13 18:40:38 -07:00
handles.go Add finalizer on AtomicRefCount to check for leaks. 2019-06-28 20:07:52 -07:00
inode.go Force timestamps to update when set via InodeOperations.SetTimestamps. 2019-09-30 13:08:45 -07:00
inode_state.go Update canonical repository. 2019-06-13 16:50:15 -07:00
path.go Add finalizer on AtomicRefCount to check for leaks. 2019-06-28 20:07:52 -07:00
session.go Add limit_host_fd_translation Gofer mount option. 2019-08-29 14:01:03 -07:00
session_state.go Add finalizer on AtomicRefCount to check for leaks. 2019-06-28 20:07:52 -07:00
socket.go Plumb context through more layers of filesytem. 2019-06-13 18:40:38 -07:00
util.go Update canonical repository. 2019-06-13 16:50:15 -07:00