diff options
author | gVisor bot <gvisor-bot@google.com> | 2019-07-25 23:57:55 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-07-25 23:57:55 +0000 |
commit | d1ac010e93da039b4a046981845adf6f11273b3d (patch) | |
tree | 620634d4e99e7f03cced1b07f5784b7c2f8ca7f9 /pkg/sentry/fs/inode_overlay.go | |
parent | 3196ae04b801ad8ab44980e4f72ce57528fe89ea (diff) | |
parent | 7052d21dc45be8ba5ba82117aedc0cb6ecb7c1b7 (diff) |
Merge 7052d21d (automated)
Diffstat (limited to 'pkg/sentry/fs/inode_overlay.go')
-rw-r--r-- | pkg/sentry/fs/inode_overlay.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/pkg/sentry/fs/inode_overlay.go b/pkg/sentry/fs/inode_overlay.go index e0602da17..246b97161 100644 --- a/pkg/sentry/fs/inode_overlay.go +++ b/pkg/sentry/fs/inode_overlay.go @@ -571,12 +571,6 @@ func overlayCheck(ctx context.Context, o *overlayEntry, p PermMask) error { if o.upper != nil { err = o.upper.check(ctx, p) } else { - if p.Write { - // Since writes will be redirected to the upper filesystem, the lower - // filesystem need not be writable, but must be readable for copy-up. - p.Write = false - p.Read = true - } err = o.lower.check(ctx, p) } o.copyMu.RUnlock() |