🐞 fix(is_only_monitor): 修复判断仅命中Monitor条件
This commit is contained in:
@@ -349,7 +349,8 @@ static int is_only_monitor(struct maat_rule *result, int hit_cnt)
|
||||
|
||||
for(i=0; i<hit_cnt; i++)
|
||||
{
|
||||
if(result[i].action==TSG_ACTION_BYPASS || result[i].action==TSG_ACTION_INTERCEPT || result[i].action==TSG_ACTION_DENY)
|
||||
//if(result[i].action==TSG_ACTION_BYPASS || result[i].action==TSG_ACTION_INTERCEPT || result[i].action==TSG_ACTION_DENY)
|
||||
if(result[i].action>TSG_ACTION_MONITOR)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user