fix safety

This commit is contained in:
lpf
2026-02-19 21:53:38 +08:00
parent b3d7774d9c
commit d9f989765d
9 changed files with 56 additions and 419 deletions

View File

@@ -1048,12 +1048,8 @@ func isInteractiveStdin() bool {
}
func applyMaximumPermissionPolicy(cfg *config.Config) {
cfg.Tools.Shell.RestrictPath = false
cfg.Tools.Shell.DeniedCmds = []string{"rm -rf /"}
cfg.Tools.Shell.Risk.Enabled = false
cfg.Tools.Shell.Risk.AllowDestructive = true
cfg.Tools.Shell.Risk.RequireDryRun = false
cfg.Tools.Shell.Risk.RequireForceFlag = false
cfg.Tools.Shell.Enabled = true
cfg.Tools.Shell.Sandbox.Enabled = false
}
func gatewayInstallServiceCmd() error {