chore: add IN-USER and IN-NAME rules

This commit is contained in:
wwqgtxx
2023-05-28 17:19:57 +08:00
parent 7aae781569
commit 9c2972afb0
9 changed files with 142 additions and 18 deletions

View File

@ -14,12 +14,14 @@ const (
SrcPort
DstPort
InPort
InUser
InName
InType
Process
ProcessPath
RuleSet
Network
Uid
INTYPE
SubRules
MATCH
AND
@ -55,6 +57,12 @@ func (rt RuleType) String() string {
return "DstPort"
case InPort:
return "InPort"
case InUser:
return "InUser"
case InName:
return "InName"
case InType:
return "InType"
case Process:
return "Process"
case ProcessPath:
@ -67,8 +75,6 @@ func (rt RuleType) String() string {
return "Network"
case Uid:
return "Uid"
case INTYPE:
return "InType"
case SubRules:
return "SubRules"
case AND: