Lines Matching refs:matched_policy

7978 	struct necp_kernel_socket_policy *matched_policy = NULL;  in necp_application_find_policy_match_internal()  local
8420matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_app_la… in necp_application_find_policy_match_internal()
8445 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_application_find_policy_match_internal()
8466 if (matched_policy) { in necp_application_find_policy_match_internal()
8467 returned_result->policy_id = matched_policy->id; in necp_application_find_policy_match_internal()
8469 returned_result->routing_result = matched_policy->result; in necp_application_find_policy_match_internal()
8470 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
8471 …if (returned_override_euuid != NULL && info.used_responsible_pid && !(matched_policy->condition_ma… in necp_application_find_policy_match_internal()
8562 …if (!(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS))… in necp_application_find_policy_match_internal()
10136 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match_with_info_locked() local
10429 matched_policy = policy_search_array[i]; in necp_socket_find_policy_match_with_info_locked()
10454 return matched_policy; in necp_socket_find_policy_match_with_info_locked()
10615 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match() local
10746matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_map[NE… in necp_socket_find_policy_match()
10771 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_find_policy_match()
10841 if (matched_policy) { in necp_socket_find_policy_match()
10843 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_PASS && in necp_socket_find_policy_match()
10851 matched_policy_id = matched_policy->id; in necp_socket_find_policy_match()
10852 inp->inp_policyresult.policy_id = matched_policy->id; in necp_socket_find_policy_match()
10859 inp->inp_policyresult.results.result = matched_policy->result; in necp_socket_find_policy_match()
10860 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
10866 …if (info.used_responsible_pid && (matched_policy->condition_mask & NECP_KERNEL_CONDITION_REAL_APP_… in necp_socket_find_policy_match()
10871 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_find_policy_match()
10872 …(matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && !necp_socket_uses_interface(inp,… in necp_socket_find_policy_match()
10876 matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && in necp_socket_find_policy_match()
10883 ….bound_interface_index, info.protocol, matched_policy->id, skip_policy_id, matched_policy->result,… in necp_socket_find_policy_match()
10886 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_find_policy_match()
10887 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_find_policy_match()
10888 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_find_policy_match()
11254 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match_locked() local
11334 matched_policy = policy_search_array[i]; in necp_ip_output_find_policy_match_locked()
11347 return matched_policy; in necp_ip_output_find_policy_match_locked()
11374 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match() local
11486matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip_output_find_policy_match()
11487 if (matched_policy) { in necp_ip_output_find_policy_match()
11488 matched_policy_id = matched_policy->id; in necp_ip_output_find_policy_match()
11490 *result = matched_policy->result; in necp_ip_output_find_policy_match()
11494 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
11503 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip_output_find_policy_match()
11549 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip6_output_find_policy_match() local
11659matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip6_output_find_policy_match()
11660 if (matched_policy) { in necp_ip6_output_find_policy_match()
11661 matched_policy_id = matched_policy->id; in necp_ip6_output_find_policy_match()
11663 *result = matched_policy->result; in necp_ip6_output_find_policy_match()
11667 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
11676 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip6_output_find_policy_match()
13058 struct necp_kernel_socket_policy *matched_policy = in necp_socket_is_allowed_to_send_recv_internal() local
13084 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_is_allowed_to_send_recv_internal()
13155 if (matched_policy != NULL) { in necp_socket_is_allowed_to_send_recv_internal()
13156 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_is_allowed_to_send_recv_internal()
13157 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_is_allowed_to_send_recv_internal()
13158 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_is_allowed_to_send_recv_internal()
13163 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_is_allowed_to_send_recv_internal()
13164 matched_policy->result == NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT || in necp_socket_is_allowed_to_send_recv_internal()
13165 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && input_interface && in necp_socket_is_allowed_to_send_recv_internal()
13166 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
13174 *return_policy_id = matched_policy->id; in necp_socket_is_allowed_to_send_recv_internal()
13179 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_PASS) { in necp_socket_is_allowed_to_send_recv_internal()
13180 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
13205 …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()
13207 …et, info.bound_interface_index, info.protocol, matched_policy->id, matched_policy->result, matched… in necp_socket_is_allowed_to_send_recv_internal()