summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2019-07-25 16:47:32 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-25 16:48:49 -0700
commit7052d21dc45be8ba5ba82117aedc0cb6ecb7c1b7 (patch)
treea6bc96ead7b986862bf3995312339c9435fcb5e7 /pkg
parent83767574951f8ab4727070741451991ba848f6a6 (diff)
Automated rollback of changelist 255679453
PiperOrigin-RevId: 260047477
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/fs/inode_overlay.go6
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()