package sockfs

import "gvisor.dev/gvisor/pkg/sentry/fsimpl/sockfs"

Package sockfs provides a filesystem implementation for anonymous sockets.

Index

Functions

func NewDentry

func NewDentry(ctx context.Context, mnt *vfs.Mount) *vfs.Dentry

NewDentry constructs and returns a sockfs dentry.

Preconditions: mnt.Filesystem() must have been returned by NewFilesystem().

func NewFilesystem

func NewFilesystem(vfsObj *vfs.VirtualFilesystem) (*vfs.Filesystem, error)

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.

Source Files

sockfs.go

Version
v0.0.0-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Imports
8 packages
Last checked
4 hours ago

Tools for package owners.