mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 18:58:26 +00:00
refactor(security): tighten sandbox bind validation
This commit is contained in:
@@ -11,7 +11,7 @@ import {
|
||||
resolveSandboxConfigForAgent,
|
||||
resolveSandboxToolPolicyForAgent,
|
||||
} from "../agents/sandbox.js";
|
||||
import { getBlockedBindReasonStringOnly } from "../agents/sandbox/validate-sandbox-security.js";
|
||||
import { getBlockedBindReason } from "../agents/sandbox/validate-sandbox-security.js";
|
||||
import { resolveToolProfilePolicy } from "../agents/tool-policy.js";
|
||||
import { resolveBrowserConfig } from "../browser/config.js";
|
||||
import { formatCliCommand } from "../cli/command-format.js";
|
||||
@@ -616,7 +616,7 @@ export function collectSandboxDangerousConfigFindings(cfg: OpenClawConfig): Secu
|
||||
if (typeof bind !== "string") {
|
||||
continue;
|
||||
}
|
||||
const blocked = getBlockedBindReasonStringOnly(bind);
|
||||
const blocked = getBlockedBindReason(bind);
|
||||
if (!blocked) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user