summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/gofer
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-08-19 02:03:15 +0000
committergVisor bot <gvisor-bot@google.com>2020-08-19 02:03:15 +0000
commit91407007c0df4813d06e22df1a43d2b0e413d938 (patch)
treed8b94f92ad434426c8162e4e1b453b6bed15bfa9 /pkg/sentry/fsimpl/gofer
parentd1ed73fafd02d394090850cac586d3ef4bf7b7ee (diff)
parent9da77d00fa682ff504c7ff549985f78b0574c79b (diff)
Merge release-20200810.0-56-g9da77d00f (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/gofer')
-rw-r--r--pkg/sentry/fsimpl/gofer/time.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/gofer/time.go b/pkg/sentry/fsimpl/gofer/time.go
index 2cb8191b9..e59d07e90 100644
--- a/pkg/sentry/fsimpl/gofer/time.go
+++ b/pkg/sentry/fsimpl/gofer/time.go
@@ -38,7 +38,7 @@ func statxTimestampFromDentry(ns int64) linux.StatxTimestamp {
// Preconditions: d.cachedMetadataAuthoritative() == true.
func (d *dentry) touchAtime(mnt *vfs.Mount) {
- if mnt.Flags.NoATime {
+ if mnt.Flags.NoATime || mnt.ReadOnly() {
return
}
if err := mnt.CheckBeginWrite(); err != nil {