Lines Matching refs:matched_policy

6614 	struct necp_kernel_socket_policy *matched_policy = NULL;  in necp_application_find_policy_match_internal()  local
6964matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_app_la… in necp_application_find_policy_match_internal()
6969 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_application_find_policy_match_internal()
6988 if (matched_policy) { in necp_application_find_policy_match_internal()
6989 returned_result->policy_id = matched_policy->id; in necp_application_find_policy_match_internal()
6990 returned_result->routing_result = matched_policy->result; in necp_application_find_policy_match_internal()
6991 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
6992 …if (returned_override_euuid != NULL && info.used_responsible_pid && !(matched_policy->condition_ma… in necp_application_find_policy_match_internal()
8275 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match_with_info_locked() local
8498 matched_policy = policy_search_array[i]; in necp_socket_find_policy_match_with_info_locked()
8523 return matched_policy; in necp_socket_find_policy_match_with_info_locked()
8613 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match() local
8722matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_map[NE… in necp_socket_find_policy_match()
8727 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_find_policy_match()
8852 if (matched_policy) { in necp_socket_find_policy_match()
8853 matched_policy_id = matched_policy->id; in necp_socket_find_policy_match()
8854 inp->inp_policyresult.policy_id = matched_policy->id; in necp_socket_find_policy_match()
8861 inp->inp_policyresult.results.result = matched_policy->result; in necp_socket_find_policy_match()
8862 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
8864 …if (info.used_responsible_pid && (matched_policy->condition_mask & NECP_KERNEL_CONDITION_REAL_APP_… in necp_socket_find_policy_match()
8869 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_find_policy_match()
8870 …(matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && !necp_socket_uses_interface(inp,… in necp_socket_find_policy_match()
8874 matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && in necp_socket_find_policy_match()
8881 …et, info.bound_interface_index, info.protocol, matched_policy->id, matched_policy->result, matched… in necp_socket_find_policy_match()
8884 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_find_policy_match()
8885 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK) { in necp_socket_find_policy_match()
9164 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match_locked() local
9237 matched_policy = policy_search_array[i]; in necp_ip_output_find_policy_match_locked()
9250 return matched_policy; in necp_ip_output_find_policy_match_locked()
9277 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match() local
9389matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip_output_find_policy_match()
9390 if (matched_policy) { in necp_ip_output_find_policy_match()
9391 matched_policy_id = matched_policy->id; in necp_ip_output_find_policy_match()
9393 *result = matched_policy->result; in necp_ip_output_find_policy_match()
9397 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
9406 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip_output_find_policy_match()
9449 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip6_output_find_policy_match() local
9558matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip6_output_find_policy_match()
9559 if (matched_policy) { in necp_ip6_output_find_policy_match()
9560 matched_policy_id = matched_policy->id; in necp_ip6_output_find_policy_match()
9562 *result = matched_policy->result; in necp_ip6_output_find_policy_match()
9566 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
9575 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip6_output_find_policy_match()
10692 …struct necp_kernel_socket_policy *matched_policy = necp_socket_find_policy_match_with_info_locked(… in necp_socket_is_allowed_to_send_recv_internal() local
10697 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_is_allowed_to_send_recv_internal()
10720 if (matched_policy != NULL) { in necp_socket_is_allowed_to_send_recv_internal()
10721 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_is_allowed_to_send_recv_internal()
10722 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK) { in necp_socket_is_allowed_to_send_recv_internal()
10727 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_is_allowed_to_send_recv_internal()
10728 matched_policy->result == NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT || in necp_socket_is_allowed_to_send_recv_internal()
10729 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && input_interface && in necp_socket_is_allowed_to_send_recv_internal()
10730 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
10740 *return_policy_id = matched_policy->id; in necp_socket_is_allowed_to_send_recv_internal()
10745 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_PASS) { in necp_socket_is_allowed_to_send_recv_internal()
10746 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
10760 …if ((necp_debug > 1 || NECP_DATA_TRACE_POLICY_ON(debug)) && matched_policy->id != inp->inp_policyr… in necp_socket_is_allowed_to_send_recv_internal()