Lines Matching refs:matched_policy

7967 	struct necp_kernel_socket_policy *matched_policy = NULL;  in necp_application_find_policy_match_internal()  local
8409matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_app_la… in necp_application_find_policy_match_internal()
8434 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_application_find_policy_match_internal()
8455 if (matched_policy) { in necp_application_find_policy_match_internal()
8456 returned_result->policy_id = matched_policy->id; in necp_application_find_policy_match_internal()
8458 returned_result->routing_result = matched_policy->result; in necp_application_find_policy_match_internal()
8459 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
8460 …if (returned_override_euuid != NULL && info.used_responsible_pid && !(matched_policy->condition_ma… in necp_application_find_policy_match_internal()
8551 …if (!(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS))… in necp_application_find_policy_match_internal()
10125 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match_with_info_locked() local
10418 matched_policy = policy_search_array[i]; in necp_socket_find_policy_match_with_info_locked()
10443 return matched_policy; in necp_socket_find_policy_match_with_info_locked()
10604 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match() local
10735matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_map[NE… in necp_socket_find_policy_match()
10760 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_find_policy_match()
10830 if (matched_policy) { in necp_socket_find_policy_match()
10832 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_PASS && in necp_socket_find_policy_match()
10840 matched_policy_id = matched_policy->id; in necp_socket_find_policy_match()
10841 inp->inp_policyresult.policy_id = matched_policy->id; in necp_socket_find_policy_match()
10848 inp->inp_policyresult.results.result = matched_policy->result; in necp_socket_find_policy_match()
10849 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
10855 …if (info.used_responsible_pid && (matched_policy->condition_mask & NECP_KERNEL_CONDITION_REAL_APP_… in necp_socket_find_policy_match()
10860 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_find_policy_match()
10861 …(matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && !necp_socket_uses_interface(inp,… in necp_socket_find_policy_match()
10865 matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && in necp_socket_find_policy_match()
10872 ….bound_interface_index, info.protocol, matched_policy->id, skip_policy_id, matched_policy->result,… in necp_socket_find_policy_match()
10875 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_find_policy_match()
10876 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_find_policy_match()
10877 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_find_policy_match()
11243 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match_locked() local
11323 matched_policy = policy_search_array[i]; in necp_ip_output_find_policy_match_locked()
11336 return matched_policy; in necp_ip_output_find_policy_match_locked()
11363 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match() local
11475matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip_output_find_policy_match()
11476 if (matched_policy) { in necp_ip_output_find_policy_match()
11477 matched_policy_id = matched_policy->id; in necp_ip_output_find_policy_match()
11479 *result = matched_policy->result; in necp_ip_output_find_policy_match()
11483 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
11492 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip_output_find_policy_match()
11538 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip6_output_find_policy_match() local
11648matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip6_output_find_policy_match()
11649 if (matched_policy) { in necp_ip6_output_find_policy_match()
11650 matched_policy_id = matched_policy->id; in necp_ip6_output_find_policy_match()
11652 *result = matched_policy->result; in necp_ip6_output_find_policy_match()
11656 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
11665 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip6_output_find_policy_match()
13047 struct necp_kernel_socket_policy *matched_policy = in necp_socket_is_allowed_to_send_recv_internal() local
13073 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_is_allowed_to_send_recv_internal()
13144 if (matched_policy != NULL) { in necp_socket_is_allowed_to_send_recv_internal()
13145 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_is_allowed_to_send_recv_internal()
13146 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_is_allowed_to_send_recv_internal()
13147 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_is_allowed_to_send_recv_internal()
13152 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_is_allowed_to_send_recv_internal()
13153 matched_policy->result == NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT || in necp_socket_is_allowed_to_send_recv_internal()
13154 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && input_interface && in necp_socket_is_allowed_to_send_recv_internal()
13155 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
13163 *return_policy_id = matched_policy->id; in necp_socket_is_allowed_to_send_recv_internal()
13168 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_PASS) { in necp_socket_is_allowed_to_send_recv_internal()
13169 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
13194 …if ((necp_debug > 1 && matched_policy->id != inp->inp_policyresult.policy_id) || NECP_DATA_TRACE_P… in necp_socket_is_allowed_to_send_recv_internal()
13196 …et, info.bound_interface_index, info.protocol, matched_policy->id, matched_policy->result, matched… in necp_socket_is_allowed_to_send_recv_internal()