test(sandbox): add root bind mount regression

This commit is contained in:
Peter Steinberger
2026-02-24 00:17:03 +00:00
parent d68380bb7f
commit 8dfa33d373

View File

@@ -47,6 +47,11 @@ describe("validateBindMounts", () => {
it("blocks dangerous bind source paths", () => {
const cases = [
{
name: "host root mount",
binds: ["/:/mnt/host"],
expected: /blocked path "\/"/,
},
{
name: "etc mount",
binds: ["/etc/passwd:/mnt/passwd:ro"],