Fix: process rule type (#2206)

This commit is contained in:
Kaming Chan 2022-07-06 13:44:04 +08:00 committed by GitHub
parent 5497adaba1
commit 65a8e8f59c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,11 @@ type Process struct {
}
func (ps *Process) RuleType() C.RuleType {
if ps.nameOnly {
return C.Process
}
return C.ProcessPath
}
func (ps *Process) Match(metadata *C.Metadata) bool {