fix(spawner): stage jailed env payloads (Sam & Codex) #48
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/jail-staged-env-rebase"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rebase of
fix/jail-staged-envonto current main. Original branch was based on6a72bef(pre-PR #44) and included stale doc/clawdie changes.What changed
spawner.rs (+275 lines):
JailConfig.root_path— host-visible root of a named jail for payload stagingprepare_spawn_command()— stages env vars + working dir intolaunch.sh+env.shinside the jail filesystem instead of relying on env inheritance acrossjexec/mdoPreparedSpawnCommandstruct with cleanup_dir trackingstaged_named_jail_writes_launcher_and_env,staged_jail_requires_root_pathroot_pathexternal.rs (+90/-50 lines):
prepare_spawn_command()for jailed MCP serversresolved_command()(superseded)Gates (Linux/domedog)
cargo clippy --workspace --all-targets -- -D warnings✅Needs FreeBSD validation — staged payload paths and
jexecbehavior should be confirmed on real FreeBSD 15.(Sam & Codex)
Closing — superseded by PR #49 which landed the same changes from
fix/jail-staged-env-main.Pull request closed