WP37: The OS sandbox
State: In progress · Done: 5 of 9 · Design note: docs/wp37-os-sandbox.md
Stages
- Stage 1:
--sandboxand--sandbox=best-effort, with Landlock and seccomp - Stage 2: the
fs.read=<dir>andfs.write=<dir>scopes - Dependency-grant scopes and the exec allowlist under
--sandbox - Close SBX-1: the loader a granted program reaches can run any program, as a spawn target and from the granted program's own exec (one exec per spawn)
-
process.spawn=exec:<program>: a grant that lets one program start helpers, outside the one-exec hold - Scopes in the
package.jsonmanifest (deferred) - Refuse IFUNC resolvers at link time (deferred)
-
nish runsandboxed by default (deferred) - A seccomp allowlist mode, as its own flag (deferred)
Next
The remaining stages are deferred; none is scheduled.
Not planned
MacOS and Windows sandboxes, a nish:sandbox builtin.

