TSG-14553 策略验证同条件下Deny高于Shunt
This commit is contained in:
@@ -223,6 +223,7 @@ void __policy_action_weight_init()
|
|||||||
policy_action_weight[PG_ACTION_MANIPULATE] = 3;
|
policy_action_weight[PG_ACTION_MANIPULATE] = 3;
|
||||||
policy_action_weight[PG_ACTION_REJECT] = 4;
|
policy_action_weight[PG_ACTION_REJECT] = 4;
|
||||||
policy_action_weight[PG_ACTION_WHITELIST] = 5;
|
policy_action_weight[PG_ACTION_WHITELIST] = 5;
|
||||||
|
policy_action_weight[PX_ACTION_SHUNT] = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int action_cmp(enum policy_action a1, enum policy_action a2)
|
static inline int action_cmp(enum policy_action a1, enum policy_action a2)
|
||||||
|
|||||||
@@ -395,6 +395,7 @@ cJSON *get_query_from_request(const char *data, int thread_id)
|
|||||||
{
|
{
|
||||||
verify_policy->vsys_id = item->valueint;
|
verify_policy->vsys_id = item->valueint;
|
||||||
}
|
}
|
||||||
|
mesa_runtime_log(RLOG_LV_DEBUG, "[I] vsysId= %d", verify_policy->vsys_id);
|
||||||
|
|
||||||
item = cJSON_GetObjectItem(subitem,"verifySession");
|
item = cJSON_GetObjectItem(subitem,"verifySession");
|
||||||
if(item == NULL || item->type!=cJSON_Object)
|
if(item == NULL || item->type!=cJSON_Object)
|
||||||
|
|||||||
Reference in New Issue
Block a user