Sandbox#
Run commands and agent-written programs inside an operating-system boundary.
Read the walkthrough before consulting individual signatures.
Interface |
Purpose |
|---|---|
Run a command inside a boundary described by a |
|
What one sandboxed run produced. |
|
A command rewritten to run inside a sandbox, ready for a process API. |
|
Confine commands with bubblewrap namespaces and read-only mounts (Linux). |
|
Render a resolved policy and a command as a |
|
The session was closed (or never opened), so it cannot run anything. |
|
A command run with |
|
Base error for sandbox failures. |
|
A policy is malformed or names something the sandbox cannot enforce. |
|
The requested sandbox cannot run on this machine. |
|
Which sandbox implementation to use. |
|
A sandbox was requested and this platform has none, so commands run unisolated. |
|
Create the sandbox for this machine, failing loudly rather than weakening it. |
|
Return the backend this platform uses when asked for |
|
Run commands with no isolation, behind the same interface as a real sandbox. |
|
How much of the network a sandboxed process can reach. |
|
A policy turned into concrete absolute paths that a backend can enforce. |
|
What a sandboxed process may use, and how much. |
|
The boundary a sandboxed process runs inside. |
|
Build the environment a sandboxed process starts with. |
|
Return the argument vector for a command given as a shell string or as arguments. |
|
Turn a policy into the concrete paths a backend enforces. |
|
One cgroup created for one run: it is created by the parent, joined by the child. |
|
What a cgroup reports after a run. |
|
The cgroup v2 hierarchy, and whether it can host a sandbox's own group. |
|
Which mechanism to use for |
|
What will be done about resources for one run. |
|
How each requested limit is enforced, and what a run measured. |
|
One |
|
Apply the steps. Runs in the child before |
|
Return the cgroup v2 mount point, or None when the machine has no unified hierarchy. |
|
Return the cgroup this process belongs to, below |
|
Decide how to enforce |
|
Turn the POSIX limits into |
|
Return the resident memory of |
|
Public constant or type alias; see its definition. |
|
Return how many processes (and, on Linux, threads) this user owns right now. |
|
Whether the parent can sample a process group here. |
|
Run commands inside a sandbox with the workspace and budget you configure. |
|
Turn |
|
Confine commands with a Seatbelt profile (macOS). |
|
Render a resolved policy as a Seatbelt profile and its parameters. |