Documentation
¶
Overview ¶
-- internal/sandbox/manager.go --
-- internal/sandbox/types.go --
Index ¶
Constants ¶
View Source
const ( // Security Directives MemLimitBytes = 512 * 1024 * 1024 // 512MB PidsMax = 64 EnvSandboxID = "SFW_SANDBOX_ID" // EnvTypeCache is diff.TypeCacheEnvVar: "rw:DIR" or "ro:DIR" names the // persistent type cache. EnvTypeCache = "SFW_TYPE_CACHE" RuntimeBinary = "runsc" )
Variables ¶
This section is empty.
Functions ¶
func IsSandboxed ¶
func IsSandboxed() bool
Checks if the current process is already running inside the sandbox.
Types ¶
type Capabilities ¶
type Config ¶
type Config struct {
Args []string // Arguments for the internal worker
Mounts []string // List of host paths to bind mount (read only)
WorkDir string // Working directory inside the sandbox
}
Config defines the execution parameters for the sandboxed process.
Click to show internal directories.
Click to hide internal directories.