summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/vfs.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-10-27 00:04:06 +0000
committergVisor bot <gvisor-bot@google.com>2021-10-27 00:04:06 +0000
commit4a42e7524518af56e34a922ddc717e963594f9a3 (patch)
tree3eeeb3418cae706f2d0989ecf5e09634f0781c74 /pkg/sentry/vfs/vfs.go
parent1295a9562a49567c519b5115afd836297a0a73f0 (diff)
parent7b8f19dc76a9fecbf4d2e5f43a47c6d47d53e100 (diff)
Merge release-20211019.0-44-g7b8f19dc7 (automated)
Diffstat (limited to 'pkg/sentry/vfs/vfs.go')
-rw-r--r--pkg/sentry/vfs/vfs.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/pkg/sentry/vfs/vfs.go b/pkg/sentry/vfs/vfs.go
index 1b2a668c0..9c1ee549a 100644
--- a/pkg/sentry/vfs/vfs.go
+++ b/pkg/sentry/vfs/vfs.go
@@ -150,12 +150,7 @@ func (vfs *VirtualFilesystem) Init(ctx context.Context) error {
}
anonfs.vfsfs.Init(vfs, &anonFilesystemType{}, &anonfs)
defer anonfs.vfsfs.DecRef(ctx)
- anonMount, err := vfs.NewDisconnectedMount(&anonfs.vfsfs, nil, &MountOptions{})
- if err != nil {
- // We should not be passing any MountOptions that would cause
- // construction of this mount to fail.
- panic(fmt.Sprintf("VirtualFilesystem.Init: anonfs mount failed: %v", err))
- }
+ anonMount := vfs.NewDisconnectedMount(&anonfs.vfsfs, nil, &MountOptions{})
vfs.anonMount = anonMount
return nil