summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl/sockfs
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-05-05 16:29:35 +0000
committergVisor bot <gvisor-bot@google.com>2020-05-05 16:29:35 +0000
commit0d55bbfaf332c52ca6edc547947e7c05dfbd5fa2 (patch)
tree0e9539157207cf408412a83e1ae3a460da1ba868 /pkg/sentry/fsimpl/sockfs
parent6097d1091481ded24605786697cf5943de8bc498 (diff)
parentb3bd41434c17a95a87d67490f2b9bfd71e1ad705 (diff)
Merge release-20200422.0-27-gb3bd414 (automated)
Diffstat (limited to 'pkg/sentry/fsimpl/sockfs')
-rwxr-xr-xpkg/sentry/fsimpl/sockfs/sockfs.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/pkg/sentry/fsimpl/sockfs/sockfs.go b/pkg/sentry/fsimpl/sockfs/sockfs.go
index dac2389fc..3f085d3ca 100755
--- a/pkg/sentry/fsimpl/sockfs/sockfs.go
+++ b/pkg/sentry/fsimpl/sockfs/sockfs.go
@@ -41,18 +41,13 @@ func (filesystemType) Name() string {
return "sockfs"
}
-// filesystem implements vfs.FilesystemImpl.
-type filesystem struct {
- kernfs.Filesystem
-}
-
// NewFilesystem sets up and returns a new sockfs filesystem.
//
// Note that there should only ever be one instance of sockfs.Filesystem,
// backing a global socket mount.
func NewFilesystem(vfsObj *vfs.VirtualFilesystem) *vfs.Filesystem {
- fs := &filesystem{}
- fs.Init(vfsObj, filesystemType{})
+ fs := &kernfs.Filesystem{}
+ fs.VFSFilesystem().Init(vfsObj, filesystemType{}, fs)
return fs.VFSFilesystem()
}