Files
hx/tests/sandbox_e2e.sh
T

7 lines
391 B
Bash

#!/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"