Optional sandbox for bash, LSP servers and lens/test runners (bwrap, seatbelt)

This commit is contained in:
hermes committed 2026-10-12 16:09:40 +00:00
1 parent d3390a823d
commit 8e7c0bb89a
11 files changed
+586 -17

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
#!/bin/sh
# Sandbox: no raw child spawns outside the chokepoint (real confinement is tested in hx-core sandbox::tests::confines).
cd "$(dirname "$0")/.."
bad=$(grep -rn "Command::new" crates/hx-lens/src crates/hx-tools/src --include=*.rs | grep -v "tests\?\.rs\|manager.rs\|cargo\|stty\|\"kill\"")
[ -z "$bad" ] || { echo "sandbox e2e FAIL: raw spawn: $bad"; exit 1; }
echo "sandbox e2e ok"