Lines Matching refs:matched_policy
7267 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_application_find_policy_match_internal() local
7676 …matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_app_la… in necp_application_find_policy_match_internal()
7681 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_application_find_policy_match_internal()
7701 if (matched_policy) { in necp_application_find_policy_match_internal()
7702 returned_result->policy_id = matched_policy->id; in necp_application_find_policy_match_internal()
7704 returned_result->routing_result = matched_policy->result; in necp_application_find_policy_match_internal()
7705 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
7706 …if (returned_override_euuid != NULL && info.used_responsible_pid && !(matched_policy->condition_ma… in necp_application_find_policy_match_internal()
7809 …if (!(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS))… in necp_application_find_policy_match_internal()
9216 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match_with_info_locked() local
9453 matched_policy = policy_search_array[i]; in necp_socket_find_policy_match_with_info_locked()
9478 return matched_policy; in necp_socket_find_policy_match_with_info_locked()
9621 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match() local
9733 …matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_map[NE… in necp_socket_find_policy_match()
9738 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_find_policy_match()
9796 if (matched_policy) { in necp_socket_find_policy_match()
9798 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_PASS && in necp_socket_find_policy_match()
9806 matched_policy_id = matched_policy->id; in necp_socket_find_policy_match()
9807 inp->inp_policyresult.policy_id = matched_policy->id; in necp_socket_find_policy_match()
9814 inp->inp_policyresult.results.result = matched_policy->result; in necp_socket_find_policy_match()
9815 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
9817 …if (info.used_responsible_pid && (matched_policy->condition_mask & NECP_KERNEL_CONDITION_REAL_APP_… in necp_socket_find_policy_match()
9822 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_find_policy_match()
9823 …(matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && !necp_socket_uses_interface(inp,… in necp_socket_find_policy_match()
9827 matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && in necp_socket_find_policy_match()
9834 ….bound_interface_index, info.protocol, matched_policy->id, skip_policy_id, matched_policy->result,… in necp_socket_find_policy_match()
9837 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_find_policy_match()
9838 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_find_policy_match()
9839 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_find_policy_match()
10166 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match_locked() local
10246 matched_policy = policy_search_array[i]; in necp_ip_output_find_policy_match_locked()
10259 return matched_policy; in necp_ip_output_find_policy_match_locked()
10286 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match() local
10398 …matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip_output_find_policy_match()
10399 if (matched_policy) { in necp_ip_output_find_policy_match()
10400 matched_policy_id = matched_policy->id; in necp_ip_output_find_policy_match()
10402 *result = matched_policy->result; in necp_ip_output_find_policy_match()
10406 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
10415 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip_output_find_policy_match()
10461 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip6_output_find_policy_match() local
10571 …matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip6_output_find_policy_match()
10572 if (matched_policy) { in necp_ip6_output_find_policy_match()
10573 matched_policy_id = matched_policy->id; in necp_ip6_output_find_policy_match()
10575 *result = matched_policy->result; in necp_ip6_output_find_policy_match()
10579 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
10588 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip6_output_find_policy_match()
11884 …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
11889 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_is_allowed_to_send_recv_internal()
11940 if (matched_policy != NULL) { in necp_socket_is_allowed_to_send_recv_internal()
11941 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_is_allowed_to_send_recv_internal()
11942 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK && in necp_socket_is_allowed_to_send_recv_internal()
11943 … !(matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_SUPPRESS_ALERTS)) { in necp_socket_is_allowed_to_send_recv_internal()
11948 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_is_allowed_to_send_recv_internal()
11949 matched_policy->result == NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT || in necp_socket_is_allowed_to_send_recv_internal()
11950 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && input_interface && in necp_socket_is_allowed_to_send_recv_internal()
11951 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
11959 *return_policy_id = matched_policy->id; in necp_socket_is_allowed_to_send_recv_internal()
11964 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_PASS) { in necp_socket_is_allowed_to_send_recv_internal()
11965 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
11979 …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()
11981 …et, info.bound_interface_index, info.protocol, matched_policy->id, matched_policy->result, matched… in necp_socket_is_allowed_to_send_recv_internal()