Install
Apply a sandbox
Create a capability set, grant only the paths your process needs, choose a network mode, then callnono.Apply.
Apply is irreversible. After it succeeds, the current process and all child
processes are constrained by the capability set.
Check permissions first
UseQueryContext 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
UseSandboxState to persist or transmit a sandbox policy as JSON.