Workpen
Dest-deny and a per-child process jail. The parent is trusted. The child is not. This is not a VM.
Install
Library:
= { = "0.5", = ["gc", "nono"] }
CLI:
Git pin:
= { = "https://github.com/workpen/workpen", = "v0.5.0", = ["gc", "nono"] }
MSRV is 1.95.
CLI
After cargo install workpen-cli --locked, paste this in a terminal:
&& &&
.env is dest-deny. notes.txt is a hardlink of .env, so dest-deny
too. notes.md is ordinary: why prints allowed, run prints
hello notes. From this repo, bash examples/dest-deny.sh is the
same commands.

workpen run dest-denies argv first, then jails the child. Unix
--tty gives the child a PTY. Windows --tty refuses. A spawn-only
run is examples/run-echo.sh. On Linux, run
does not spawn when dest-deny remount is skipped.
Commands: why, run, gc. workpen --help prints usage.
Library
use Path;
use ;
let policy = default;
assert!;
Kernel jail (feature nono): process_jail then run_child. PathGuard
refuses / and $HOME as the workspace or extra-root. Leftover
worktree GC is feature gc.
Crate rustdoc is canonical: workpen::threat_model. The same contract
in one page is docs/threat-model.md.
Limits
- Linux remount skip:
workpen rundoes not spawn. Libraryrun_childstill starts the child (RemountSkipped) unless you opt intowith_require_dest_hide. - Nested Linux post-create (
mkdir x && touch x/.env) is a launch snapshot. Workspace-root missing dest-deny names are occupied when remount applies. - Windows WFP without admin is skipped (
WfpSkipped). AppContainer with no network capabilities is the unelevated net deny. - Do not vendor bubblewrap.
Contributing
See CONTRIBUTING.md. DCO sign-off required. Security: SECURITY.md.
License
MIT OR Apache-2.0.