Lines Matching refs:matched_policy

6862 	struct necp_kernel_socket_policy *matched_policy = NULL;  in necp_application_find_policy_match_internal()  local
7263matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_app_la… in necp_application_find_policy_match_internal()
7268 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_application_find_policy_match_internal()
7287 if (matched_policy) { in necp_application_find_policy_match_internal()
7288 returned_result->policy_id = matched_policy->id; in necp_application_find_policy_match_internal()
7289 returned_result->routing_result = matched_policy->result; in necp_application_find_policy_match_internal()
7290 …memcpy(&returned_result->routing_result_parameter, &matched_policy->result_parameter, sizeof(retur… in necp_application_find_policy_match_internal()
7291 …if (returned_override_euuid != NULL && info.used_responsible_pid && !(matched_policy->condition_ma… in necp_application_find_policy_match_internal()
8685 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match_with_info_locked() local
8893 matched_policy = policy_search_array[i]; in necp_socket_find_policy_match_with_info_locked()
8918 return matched_policy; in necp_socket_find_policy_match_with_info_locked()
9019 struct necp_kernel_socket_policy *matched_policy = NULL; in necp_socket_find_policy_match() local
9124matched_policy = necp_socket_find_policy_match_with_info_locked(necp_kernel_socket_policies_map[NE… in necp_socket_find_policy_match()
9129 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_find_policy_match()
9211 if (matched_policy) { in necp_socket_find_policy_match()
9212 matched_policy_id = matched_policy->id; in necp_socket_find_policy_match()
9213 inp->inp_policyresult.policy_id = matched_policy->id; in necp_socket_find_policy_match()
9220 inp->inp_policyresult.results.result = matched_policy->result; in necp_socket_find_policy_match()
9221 …inp->inp_policyresult.results.result_parameter, &matched_policy->result_parameter, sizeof(matched_… in necp_socket_find_policy_match()
9223 …if (info.used_responsible_pid && (matched_policy->condition_mask & NECP_KERNEL_CONDITION_REAL_APP_… in necp_socket_find_policy_match()
9228 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_find_policy_match()
9229 …(matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && !necp_socket_uses_interface(inp,… in necp_socket_find_policy_match()
9233 matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && in necp_socket_find_policy_match()
9240 …et, info.bound_interface_index, info.protocol, matched_policy->id, matched_policy->result, matched… in necp_socket_find_policy_match()
9243 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_find_policy_match()
9244 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK) { in necp_socket_find_policy_match()
9525 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match_locked() local
9598 matched_policy = policy_search_array[i]; in necp_ip_output_find_policy_match_locked()
9611 return matched_policy; in necp_ip_output_find_policy_match_locked()
9638 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip_output_find_policy_match() local
9750matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip_output_find_policy_match()
9751 if (matched_policy) { in necp_ip_output_find_policy_match()
9752 matched_policy_id = matched_policy->id; in necp_ip_output_find_policy_match()
9754 *result = matched_policy->result; in necp_ip_output_find_policy_match()
9758 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip_output_find_policy_match()
9767 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip_output_find_policy_match()
9810 struct necp_kernel_ip_output_policy *matched_policy = NULL; in necp_ip6_output_find_policy_match() local
9919matched_policy = necp_ip_output_find_policy_match_locked(socket_policy_id, socket_skip_policy_id, … in necp_ip6_output_find_policy_match()
9920 if (matched_policy) { in necp_ip6_output_find_policy_match()
9921 matched_policy_id = matched_policy->id; in necp_ip6_output_find_policy_match()
9923 *result = matched_policy->result; in necp_ip6_output_find_policy_match()
9927 …memcpy(result_parameter, &matched_policy->result_parameter, sizeof(matched_policy->result_paramete… in necp_ip6_output_find_policy_match()
9936 …terface_index, last_interface_index, protocol, matched_policy->id, matched_policy->result, matched… in necp_ip6_output_find_policy_match()
11064 …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
11069 … (matched_policy == NULL || matched_policy->result != NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT)) { in necp_socket_is_allowed_to_send_recv_internal()
11092 if (matched_policy != NULL) { in necp_socket_is_allowed_to_send_recv_internal()
11093 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP && in necp_socket_is_allowed_to_send_recv_internal()
11094 matched_policy->result_parameter.drop_flags & NECP_KERNEL_POLICY_DROP_FLAG_LOCAL_NETWORK) { in necp_socket_is_allowed_to_send_recv_internal()
11099 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_DROP || in necp_socket_is_allowed_to_send_recv_internal()
11100 matched_policy->result == NECP_KERNEL_POLICY_RESULT_SOCKET_DIVERT || in necp_socket_is_allowed_to_send_recv_internal()
11101 (matched_policy->result == NECP_KERNEL_POLICY_RESULT_IP_TUNNEL && input_interface && in necp_socket_is_allowed_to_send_recv_internal()
11102 matched_policy->result_parameter.tunnel_interface_index != verifyifindex) || in necp_socket_is_allowed_to_send_recv_internal()
11109 *return_policy_id = matched_policy->id; in necp_socket_is_allowed_to_send_recv_internal()
11114 if (matched_policy->result == NECP_KERNEL_POLICY_RESULT_PASS) { in necp_socket_is_allowed_to_send_recv_internal()
11115 pass_flags = matched_policy->result_parameter.pass_flags; in necp_socket_is_allowed_to_send_recv_internal()
11129 …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()