gvisor: gvisor.dev/gvisor/pkg

Directories

PathSynopsis
abiPackage abi describes the interface between a kernel and userspace.
abi/linuxPackage linux contains the constants and types needed to interface with a Linux kernel.
amutexPackage amutex provides the implementation of an abortable mutex.
atomicbitopsPackage atomicbitops provides extensions to the sync/atomic package.
binaryPackage binary translates between select fixed-sized types and a binary representation.
bitsPackage bits includes all bit related types and operations.
bpfPackage bpf provides tools for working with Berkeley Packet Filter (BPF) programs.
bufferPackage buffer provides the implementation of a buffer view.
cleanupPackage cleanup provides utilities to clean "stuff" on defers.
compressioPackage compressio provides parallel compression and decompression, as well as optional SHA-256 hashing.
contextPackage context defines an internal context type.
control/clientPackage client provides a basic control client interface.
control/serverPackage server provides a basic control server interface.
coveragePackage coverage provides an interface through which Go coverage data can be collected, converted to kcov format, and exposed to userspace.
cpuidPackage cpuid provides basic functionality for creating and adjusting CPU feature sets.
eventchannelPackage eventchannel contains functionality for sending any protobuf message on a socketpair.
fdPackage fd provides types for working with file descriptors.
fdchannelPackage fdchannel implements passing file descriptors between processes over Unix domain sockets.
fdnotifierPackage fdnotifier contains an adapter that translates IO events (e.g., a file became readable/writable) from native FDs to the notifications in the waiter package.
flipcallPackage flipcall implements a protocol providing Fast Local Interprocess Procedure Calls between mutually-distrusting processes.
fspathPackage fspath provides efficient tools for working with file paths in Linux-compatible filesystem implementations.
gatePackage gate provides a usage Gate synchronization primitive.
gohacksPackage gohacks contains utilities for subverting the Go compiler.
goidPackage goid provides access to the ID of the current goroutine in race/gotsan builds.
ilistPackage ilist provides the implementation of intrusive linked lists.
iovecPackage iovec provides helpers to interact with vectorized I/O on host system.
linewriterPackage linewriter provides an io.Writer which calls an emitter on each line.
logPackage log implements a library for logging.
marshalPackage marshal defines the Marshallable interface for serialize/deserializing go data structures to/from memory, according to the Linux ABI.
marshal/primitivePackage primitive defines marshal.Marshallable implementations for primitive types.
memutilPackage memutil provides a wrapper for the memfd_create() system call.
merkletreePackage merkletree implements Merkle tree generating and verification.
metricPackage metric provides primitives for collecting metrics.
p9Package p9 is a 9P2000.L implementation.
p9/p9testPackage p9test provides standard mocks for p9.
pool
procidPackage procid provides a way to get the current system thread identifier.
randPackage rand implements a cryptographically secure pseudorandom number generator.
refsPackage refs defines an interface for reference counted objects.
safecopyPackage safecopy provides an efficient implementation of functions to access memory that may result in SIGSEGV or SIGBUS being sent to the accessor.
safememPackage safemem provides the Block and BlockSeq types.
secioPackage secio provides support for sectioned I/O.
segmentPackage segment provides tools for working with collections of segments.
segment/test
sentry/archPackage arch provides abstractions around architecture-dependent details, such as syscall calling conventions, native types, etc.
sentry/contexttestPackage contexttest builds a test context.Context.
sentry/controlPackage control contains types that expose control server methods, and can be used to configure and interact with a running sandbox process.
sentry/devicePackage device defines reserved virtual kernel devices and structures for managing them.
sentry/devices/memdevPackage memdev implements "mem" character devices, as implemented in Linux by drivers/char/mem.c and drivers/char/random.c.
sentry/devices/ttydevPackage ttydev implements an unopenable vfs.Device for /dev/tty.
sentry/devices/tundevPackage tundev implements the /dev/net/tun device.
sentry/fdimport
sentry/fsPackage fs implements a virtual filesystem layer.
sentry/fs/anonPackage anon implements an anonymous inode, useful for implementing inodes for pseudo filesystems.
sentry/fsbridgePackage fsbridge provides common interfaces to bridge between VFS1 and VFS2 files.
sentry/fs/devPackage dev provides a filesystem with simple devices.
sentry/fs/fdpipePackage fdpipe implements common namedpipe opening and accessing logic.
sentry/fs/filetestPackage filetest provides a test implementation of an fs.File.
sentry/fs/fsutilPackage fsutil provides utilities for implementing fs.InodeOperations and fs.FileOperations:
sentry/fs/goferPackage gofer implements a remote 9p filesystem.
sentry/fs/hostPackage host supports file descriptors imported directly.
sentry/fsimpl/devptsPackage devpts provides a filesystem implementation that behaves like devpts.
sentry/fsimpl/devtmpfsPackage devtmpfs provides an implementation of /dev based on tmpfs, analogous to Linux's devtmpfs.
sentry/fsimpl/eventfdPackage eventfd implements event fds.
sentry/fsimpl/extPackage ext implements readonly ext(2/3/4) filesystems.
sentry/fsimpl/ext/disklayoutPackage disklayout provides Linux ext file system's disk level structures which can be directly read into from the underlying device.
sentry/fsimpl/fusePackage fuse implements fusefs.
sentry/fsimpl/goferPackage gofer provides a filesystem implementation that is backed by a 9p server, interchangably referred to as "gofers" throughout this package.
sentry/fsimpl/hostPackage host provides a filesystem implementation for host files imported as file descriptors.
sentry/fsimpl/kernfsPackage kernfs provides the tools to implement inode-based filesystems.
sentry/fsimpl/overlayPackage overlay provides an overlay filesystem implementation, which synthesizes a filesystem by composing one or more immutable filesystems ("lower layers") with an optional mutable filesystem ("upper layer").
sentry/fsimpl/pipefsPackage pipefs provides the filesystem implementation backing Kernel.PipeMount.
sentry/fsimpl/procPackage proc implements a partial in-memory file system for procfs.
sentry/fsimpl/signalfd
sentry/fsimpl/sockfsPackage sockfs provides a filesystem implementation for anonymous sockets.
sentry/fsimpl/sysPackage sys implements sysfs.
sentry/fsimpl/testutilPackage testutil provides common test utilities for kernfs-based filesystems.
sentry/fsimpl/timerfdPackage timerfd implements timer fds.
sentry/fsimpl/verityPackage verity provides a filesystem implementation that is a wrapper of another file system.
sentry/fs/lockPackage lock is the API for POSIX-style advisory regional file locks and BSD-style full file locks.
sentry/fs/procPackage proc implements a partial in-memory file system for profs.
sentry/fs/proc/devicePackage device contains the proc device to avoid dependency loops.
sentry/fs/proc/seqfilePackage seqfile provides dynamic ordered files.
sentry/fs/ramfsPackage ramfs provides the fundamentals for a simple in-memory filesystem.
sentry/fs/sysPackage sys implements a sysfs filesystem.
sentry/fs/timerfdPackage timerfd implements the semantics of Linux timerfd objects as described by timerfd_create(2).
sentry/fs/tmpfsPackage tmpfs is a filesystem implementation backed by memory.
sentry/fs/ttyPackage tty provide pseudoterminals via a devpts filesystem.
sentry/fs/userPackage user contains methods for resolving filesystem paths based on the user and their environment.
sentry/hostcpuPackage hostcpu provides utilities for working with CPU information provided by a host Linux kernel.
sentry/hostfdPackage hostfd provides efficient I/O with host file descriptors.
sentry/hostmmPackage hostmm provides tools for interacting with the host Linux kernel's virtual memory management subsystem.
sentry/inetPackage inet defines semantics for IP stacks.
sentry/kernelPackage kernel provides an emulation of the Linux kernel.
sentry/kernel/authPackage auth implements an access control model that is a subset of Linux's.
sentry/kernel/contexttestPackage contexttest provides a test context.Context which includes a dummy kernel pointing to a valid platform.
sentry/kernel/epollPackage epoll provides an implementation of Linux's IO event notification facility.
sentry/kernel/eventfdPackage eventfd provides an implementation of Linux's file-based event notification.
sentry/kernel/fasyncPackage fasync provides FIOASYNC related functionality.
sentry/kernel/futexPackage futex provides an implementation of the futex interface as found in the Linux kernel.
sentry/kernel/memeventPackage memevent implements the memory usage events controller, which periodically emits events via the eventchannel.
sentry/kernel/pipePackage pipe provides a pipe implementation.
sentry/kernel/schedPackage sched implements scheduler related features.
sentry/kernel/semaphorePackage semaphore implements System V semaphores.
sentry/kernel/shmPackage shm implements sysv shared memory segments.
sentry/kernel/signalfdPackage signalfd provides an implementation of signal file descriptors.
sentry/kernel/timePackage time defines the Timer type, which provides a periodic timer that works by sampling a user-provided clock.
sentry/limitsPackage limits provides resource limits.
sentry/loaderPackage loader loads an executable file into a MemoryManager.
sentry/memmapPackage memmap defines semantics for memory mappings.
sentry/mmPackage mm provides a memory management subsystem.
sentry/pgallocPackage pgalloc contains the page allocator subsystem, which manages memory that may be mapped into application address spaces.
sentry/platformPackage platform provides a Platform abstraction.
sentry/platform/interruptPackage interrupt provides an interrupt helper.
sentry/platform/kvmPackage kvm provides a kvm-based implementation of the platform interface.
sentry/platform/kvm/testutilPackage testutil provides common assembly stubs for testing.
sentry/platform/ptracePackage ptrace provides a ptrace-based implementation of the platform interface.
sentry/platform/ring0Package ring0 provides basic operating system-level stubs.
sentry/platform/ring0/gen_offsetsBinary gen_offsets is a helper for generating offset headers.
sentry/platform/ring0/pagetablesPackage pagetables provides a generic implementation of pagetables.
sentry/sighandlingPackage sighandling contains helpers for handling signals to applications.
sentry/socketPackage socket provides the interfaces that need to be provided by socket implementations and providers, as well as per family demultiplexing of socket creation.
sentry/socket/controlPackage control provides internal representations of socket control messages.
sentry/socket/hostinetPackage hostinet implements AF_INET and AF_INET6 sockets using the host's network stack.
sentry/socket/netfilterPackage netfilter helps the sentry interact with netstack's netfilter capabilities.
sentry/socket/netlink/portPackage port provides port ID allocation for netlink sockets.
sentry/socket/netlink/routePackage route provides a NETLINK_ROUTE socket protocol.
sentry/socket/netlink/ueventPackage uevent provides a NETLINK_KOBJECT_UEVENT socket protocol.
sentry/socket/netstackPackage netstack provides an implementation of the socket.Socket interface that is backed by a tcpip.Endpoint.
sentry/socket/unixPackage unix provides an implementation of the socket.Socket interface for the AF_UNIX protocol family.
sentry/socket/unix/transportPackage transport contains the implementation of Unix endpoints.
sentry/statePackage state provides high-level state wrappers.
sentry/stracePackage strace implements the logic to print out the input and the return value of each traced syscall.
sentry/syscallsPackage syscalls is the interface from the application to the kernel.
sentry/syscalls/linuxPackage linux provides syscall tables for amd64 Linux.
sentry/syscalls/linux/vfs2Package vfs2 provides syscall implementations that use VFS2.
sentry/timePackage time provides a calibrated clock synchronized to a system reference clock.
sentry/unimplPackage unimpl contains interface to emit events about unimplemented features.
sentry/uniqueidPackage uniqueid defines context.Context keys for obtaining system-wide unique identifiers.
sentry/usagePackage usage provides representations of resource usage.
sentry/vfsPackage lock provides POSIX and BSD style file locking for VFS2 file implementations.
sentry/vfs/genericfstreePackage genericfstree provides tools for implementing vfs.FilesystemImpls where a single statically-determined lock or set of locks is sufficient to ensure that a Dentry's name and parent are contextually immutable.
sentry/vfs/lockPackage lock provides POSIX and BSD style file locking for VFS2 file implementations.
sentry/vfs/memxattrPackage memxattr provides a default, in-memory extended attribute implementation.
sentry/watchdogPackage watchdog is responsible for monitoring the sentry for tasks that may potentially be stuck or looping inderterminally causing hard to debug hungs in the untrusted app.
shim/runsc
shim/v1/proc
shim/v1/shim
shim/v1/utils
shim/v2
shim/v2/options
shim/v2/runtimeoptions
sleepPackage sleep allows goroutines to efficiently sleep on multiple sources of notifications (wakers).
statePackage state provides functionality related to saving and loading object graphs.
state/prettyPackage pretty is a pretty-printer for state streams.
state/statefilePackage statefile defines the state file data stream.
state/testsPackage tests tests the state packages.
state/wirePackage wire contains a few basic types that can be composed to serialize graph information for the state package.
synceventPackage syncevent provides efficient primitives for goroutine synchronization based on event bitmasks.
syserrPackage syserr contains sandbox-internal errors.
syserrorPackage syserror contains syscall error codes exported as error interface instead of Errno.
tcpipPackage tcpip provides the interfaces and related types that users of the tcpip stack will use in order to create endpoints used to send and receive data over the network stack.
tcpip/adapters/gonetPackage gonet provides a Go net package compatible wrapper for a tcpip stack.
tcpip/bufferPackage buffer provides the implementation of a buffer view.
tcpip/checkerPackage checker provides helper functions to check networking packets for validity.
tcpip/faketimePackage faketime provides a fake clock that implements tcpip.Clock interface.
tcpip/hash/jenkinsPackage jenkins implements Jenkins's one_at_a_time, non-cryptographic hash functions created by by Bob Jenkins.
tcpip/headerPackage header provides the implementation of the encoding and decoding of network protocol headers.
tcpip/header/parsePackage parse provides utilities to parse packets.
tcpip/link/channelPackage channel provides the implemention of channel-based data-link layer endpoints.
tcpip/link/fdbasedPackage fdbased provides the implemention of data-link layer endpoints backed by boundary-preserving file descriptors (e.g., TUN devices, seqpacket/datagram sockets).
tcpip/link/loopbackPackage loopback provides the implemention of loopback data-link layer endpoints.
tcpip/link/muxedPackage muxed provides a muxed link endpoints.
tcpip/link/nestedPackage nested provides helpers to implement the pattern of nested stack.LinkEndpoints.
tcpip/link/packetsocketPackage packetsocket provides a link layer endpoint that provides the ability to loop outbound packets to any AF_PACKET sockets that may be interested in the outgoing packet.
tcpip/link/qdisc/fifoPackage fifo provides the implementation of data-link layer endpoints that wrap another endpoint and queues all outbound packets and asynchronously dispatches them to the lower endpoint.
tcpip/link/rawfilePackage rawfile contains utilities for using the netstack with raw host files on Linux hosts.
tcpip/link/sharedmemPackage sharedmem provides the implemention of data-link layer endpoints backed by shared memory.
tcpip/link/sharedmem/pipePackage pipe implements a shared memory ring buffer on which a single reader and a single writer can operate (read/write) concurrently.
tcpip/link/sharedmem/queuePackage queue provides the implementation of transmit and receive queues based on shared memory ring buffers.
tcpip/link/snifferPackage sniffer provides the implementation of data-link layer endpoints that wrap another endpoint and logs inbound and outbound packets.
tcpip/link/tunPackage tun contains methods to open TAP and TUN devices.
tcpip/link/waitablePackage waitable provides the implementation of data-link layer endpoints that wrap other endpoints, and can wait for inflight calls to WritePacket or DeliverNetworkPacket to finish (and new ones to be prevented).
tcpip/network/arpPackage arp implements the ARP network protocol.
tcpip/network/fragmentationPackage fragmentation contains the implementation of IP fragmentation.
tcpip/network/hashPackage hash contains utility functions for hashing.
tcpip/network/ipv4Package ipv4 contains the implementation of the ipv4 network protocol.
tcpip/network/ipv6Package ipv6 contains the implementation of the ipv6 network protocol.
tcpip/network/testutilPackage testutil defines types and functions used to test Network Layer functionality such as IP fragmentation.
tcpip/portsPackage ports provides PortManager that manages allocating, reserving and releasing ports.
tcpip/seqnumPackage seqnum defines the types and methods for TCP sequence numbers such that they fit in 32-bit words and work properly when overflows occur.
tcpip/stackPackage stack provides the glue between networking protocols and the consumers of the networking stack.
tcpip/transport/icmpPackage icmp contains the implementation of the ICMP and IPv6-ICMP transport protocols for use in ping.
tcpip/transport/packetPackage packet provides the implementation of packet sockets (see packet(7)).
tcpip/transport/rawPackage raw provides the implementation of raw sockets (see raw(7)).
tcpip/transport/tcpconntrackPackage tcpconntrack implements a TCP connection tracking object.
tcpip/transport/tcp/testing/contextPackage context provides a test context for use in tcp tests.
tcpip/transport/udpPackage udp contains the implementation of the UDP transport protocol.
test/criutilPackage criutil contains utility functions for interacting with the Container Runtime Interface (CRI), principally via the crictl command line tool.
test/dockerutilPackage dockerutil is a collection of utility functions.
test/testutilPackage testutil contains utility functions for runsc tests.
unetPackage unet provides a minimal net package based on Unix Domain Sockets.
urpcPackage urpc provides a minimal RPC package based on unet.
usermemPackage usermem governs access to user memory.
waiterPackage waiter provides the implementation of a wait queue, where waiters can be enqueued to be notified when an event of interest happens.

Updated 2020-09-25. Refresh now. Tools for package owners.