We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3ef8bd9 + 37daf23 commit 27b7cc4Copy full SHA for 27b7cc4
1 file changed
internal/policy/engine.go
@@ -93,13 +93,13 @@ func (e *Engine) EvaluateSandbox(spec api.SandboxSpec) error {
93
return nil
94
}
95
96
-func (e *Engine) EvaluateExec (req api.ExecRequest) error {
+func (e *Engine) EvaluateExec(req api.ExecRequest) error {
97
if len(req.Command) == 0 {
98
return errors.New("no command provided")
99
100
101
binary := req.Command[0]
102
- allowed := false
+ allowed := false
103
for _, command := range e.AllowedCommands {
104
if binary == command {
105
allowed = true
0 commit comments