From 52ea27e44381a1339d9ce3577478e0bb7dc10131 Mon Sep 17 00:00:00 2001 From: zhengchao Date: Wed, 5 Jun 2019 15:24:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A4=E6=96=AD=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BC=98=E5=85=88=E7=BA=A7=E5=87=BD=E6=95=B0=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E7=AC=94=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/kni_maat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/entry/src/kni_maat.cpp b/entry/src/kni_maat.cpp index 95c8599..8ab62f7 100644 --- a/entry/src/kni_maat.cpp +++ b/entry/src/kni_maat.cpp @@ -180,15 +180,15 @@ static int index_of_enforce_policy(struct Maat_rule_t* result, size_t size) int biggest_policy_id=0, ret_intercept_idx=0; for(i=0; iaction==KNI_ACTION_BYPASS) + if(result[i].action==KNI_ACTION_BYPASS) { return i; } else { - if(result->config_id>biggest_policy_id) + if(result[i].config_id>biggest_policy_id) { - biggest_policy_id=result->config_id; + biggest_policy_id=result[i].config_id; ret_intercept_idx=i; } }