mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-02 09:47:28 +08:00
fix safety
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user