mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 06:14:23 +00:00
test(sandbox): add root bind mount regression
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user