test(sandbox): add root bind mount regression
This commit is contained in:
parent
d68380bb7f
commit
8dfa33d373
@ -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"],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user