From 65a8e8f59ccc4c51c8a4581fa985f23550c1fa55 Mon Sep 17 00:00:00 2001 From: Kaming Chan Date: Wed, 6 Jul 2022 13:44:04 +0800 Subject: [PATCH] Fix: process rule type (#2206) --- rule/process.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rule/process.go b/rule/process.go index 52f0cec2..1c9f43bc 100644 --- a/rule/process.go +++ b/rule/process.go @@ -14,7 +14,11 @@ type Process struct { } func (ps *Process) RuleType() C.RuleType { - return C.Process + if ps.nameOnly { + return C.Process + } + + return C.ProcessPath } func (ps *Process) Match(metadata *C.Metadata) bool {