summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs/host/file.go
diff options
context:
space:
mode:
authorZach Koopmans <zkoopmans@google.com>2020-03-17 10:29:12 -0700
committergVisor bot <gvisor-bot@google.com>2020-03-17 10:30:32 -0700
commit42d78ba61bf93f927ee89099abf5ef27b394b0d9 (patch)
treed37b629f457498704f09910000f6df6c4e06fc41 /pkg/sentry/fs/host/file.go
parent3192e55ffe04b583ca4261ec0b04a6e566a6038b (diff)
Remove HostFS from Sentry.
PiperOrigin-RevId: 301402181
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
}