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

+1
View File
@@ -20,3 +20,4 @@ sh tests/m6_e2e.sh
python3 tests/tui_lspinstall.py | grep -q FAIL && { echo "tui lsp install FAIL"; exit 1; } || echo "tui lsp install ok"
sh tests/m7_e2e.sh
sh tests/m8_e2e.sh
sh tests/sandbox_e2e.sh
+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"