Skip to main content

Install

Apply a sandbox

Create a capability set, grant only the paths your process needs, choose a network mode, then call nono.Apply.
Apply is irreversible. After it succeeds, the current process and all child processes are constrained by the capability set.

Check permissions first

Use QueryContext when you want to inspect a policy before applying it.
QueryContext snapshots the capability set when it is created. Later changes to caps do not affect existing query contexts.

Serialize configuration

Use SandboxState to persist or transmit a sandbox policy as JSON.

Handle platform support