Sandbox: degrade gracefully when the namespace jail is denied (unblocks ward#108) #153
Labels
No labels
burndown-2026-06
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/cli-guard#153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Sandbox: degrade gracefully when the namespace jail is denied
cli/sandbox's user+mount namespace jail needs privileges some environments deny, so every sandboxed verb dies there. Two field failure modes (downstream ward#108):fork/exec <bin>: operation not permittedsandbox: make-rprivate: permission deniedFix
sandbox.SetupDenied),shell.Runnerretries the command unsandboxed and warns once. Side-effect-safe (the child never ran); a started-then-failed run is a real error and is never degraded.CLIGUARD_NO_SANDBOX=1makesWrapno-op up front (covers both modes), for environments that are already the isolation boundary.Unblocks
ward container's in-container reaper (re-execs ward, denied by the container's restricted namespace). Downstream: ward#108, and the ward container entrypoint will exportCLIGUARD_NO_SANDBOX.Docs: docs/sandbox.md. Tests: NoSandbox, Wrap opt-out, SetupDenied.