(executablePath string)
| 85 | } |
| 86 | |
| 87 | func (cfg *UserConfiguration) GetExecutablePolicy(executablePath string) datastore.Policy { |
| 88 | for _, rule := range cfg.Rules { |
| 89 | ok := rule.compiledGlob.MatchString(executablePath) |
| 90 | if ok { |
| 91 | return rule.Policy |
| 92 | } |
| 93 | } |
| 94 | return datastore.PolicyUnknown |
| 95 | } |
no test coverage detected