mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 03:59:34 +00:00
fix(exec): harden safe-bin trust and add explicit trusted dirs
This commit is contained in:
@@ -227,6 +227,8 @@ export type ExecToolConfig = {
|
||||
pathPrepend?: string[];
|
||||
/** Safe stdin-only binaries that can run without allowlist entries. */
|
||||
safeBins?: string[];
|
||||
/** Extra explicit directories trusted for safeBins path checks (never derived from PATH). */
|
||||
safeBinTrustedDirs?: string[];
|
||||
/** Optional custom safe-bin profiles for entries in tools.exec.safeBins. */
|
||||
safeBinProfiles?: Record<string, SafeBinProfileFixture>;
|
||||
/** Default time (ms) before an exec command auto-backgrounds. */
|
||||
|
||||
Reference in New Issue
Block a user