summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/host/file.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-03-17 17:33:30 +0000
committergVisor bot <gvisor-bot@google.com>2020-03-17 17:33:30 +0000
commitcb87cbb7e46568c0bab786205369d11a7fc5b268 (patch)
tree91b7c82d77deba18e716211f9e5079225b7ab0c7 /pkg/sentry/fs/host/file.go
parent7c9c2e4e96037a5ff3b0afefaf0f08bb7aebcdf8 (diff)
parent42d78ba61bf93f927ee89099abf5ef27b394b0d9 (diff)
Merge release-20200219.0-187-g42d78ba (automated)
Diffstat (limited to 'pkg/sentry/fs/host/file.go')
-rw-r--r--pkg/sentry/fs/host/file.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fs/host/file.go b/pkg/sentry/fs/host/file.go
index e08f56d04..034862694 100644
--- a/pkg/sentry/fs/host/file.go
+++ b/pkg/sentry/fs/host/file.go
@@ -101,8 +101,8 @@ func newFileFromDonatedFD(ctx context.Context, donated int, mounter fs.FileOwner
})
return s, nil
default:
- msrc := newMountSource(ctx, "/", mounter, &Filesystem{}, fs.MountSourceFlags{}, false /* dontTranslateOwnership */)
- inode, err := newInode(ctx, msrc, donated, saveable, true /* donated */)
+ msrc := fs.NewNonCachingMountSource(ctx, &filesystem{}, fs.MountSourceFlags{})
+ inode, err := newInode(ctx, msrc, donated, saveable)
if err != nil {
return nil, err
}