Home
last modified time | relevance | path

Searched refs:PROC_NULL (Results 1 – 25 of 51) sorted by relevance

123

/xnu-12377.1.9/security/
H A Dmac_mach.c123 current_cached_proc_cred(PROC_NULL), pidentp, flavor); in mac_task_check_task_id_token_get_task()
134 current_cached_proc_cred(PROC_NULL)); in mac_task_check_get_movable_control_port()
147 current_cached_proc_cred(PROC_NULL), id, port); in mac_task_check_set_host_special_port()
160 current_cached_proc_cred(PROC_NULL), exception); in mac_task_check_set_host_exception_port()
189 current_cached_proc_cred(PROC_NULL), pidentp, which); in mac_task_check_get_task_special_port()
216 current_cached_proc_cred(PROC_NULL), &pident, which, port); in mac_task_check_set_task_special_port()
227 kauth_cred_t cred = current_cached_proc_cred(PROC_NULL); in mac_task_check_set_task_exception_ports()
263 kauth_cred_t cred = current_cached_proc_cred(PROC_NULL); in mac_task_check_set_thread_exception_ports()
299 current_cached_proc_cred(PROC_NULL)); in mac_task_check_dyld_process_info_notify_register()
310 kauth_cred_t cred = current_cached_proc_cred(PROC_NULL); in mac_task_check_set_host_exception_ports()
H A Dmac_process.c339 if ((tracingp = proc_find_ident(tracing_ident)) == PROC_NULL) { in mac_proc_check_debug()
391 if (proc == PROC_NULL) { in mac_proc_check_remote_thread_create()
406 current_cached_proc_cred(PROC_NULL), sp_info); in mac_proc_notify_service_port_derive()
/xnu-12377.1.9/bsd/kern/
H A Dkern_proc.c402 proc_t p = PROC_NULL; in proc_isinferior()
403 proc_t t = PROC_NULL; in proc_isinferior()
410 if (p != PROC_NULL) { in proc_isinferior()
413 if (t != PROC_NULL) { in proc_isinferior()
447 proc_t proc = PROC_NULL; in proc_find_audit_token()
451 return PROC_NULL; in proc_find_audit_token()
454 if ((proc = proc_find(pid)) == PROC_NULL) { in proc_find_audit_token()
455 return PROC_NULL; in proc_find_audit_token()
462 return PROC_NULL; in proc_find_audit_token()
492 if (proc == PROC_NULL) { in proc_find_ident_validated()
[all …]
H A Dkern_memorystatus_policy.c698 if (leader_proc == PROC_NULL || leader_proc == p) { in memorystatus_is_process_eligible_for_freeze()
820 proc_t p = PROC_NULL, next_p = PROC_NULL; in memorystatus_freeze_pick_refreeze_process()
822 if (last_p == PROC_NULL) { in memorystatus_freeze_pick_refreeze_process()
866 return PROC_NULL; in memorystatus_freeze_pick_refreeze_process()
872 proc_t p = PROC_NULL, next_p = PROC_NULL; in memorystatus_freeze_pick_process()
885 iterator->last_p = PROC_NULL; in memorystatus_freeze_pick_process()
902 if (p != PROC_NULL && memorystatus_is_process_eligible_for_freeze(p)) { in memorystatus_freeze_pick_process()
920 if (iterator->last_p == PROC_NULL) { in memorystatus_freeze_pick_process()
943 iterator->last_p = memorystatus_freeze_pick_refreeze_process(PROC_NULL); in memorystatus_freeze_pick_process()
946 return PROC_NULL; in memorystatus_freeze_pick_process()
H A Dproc_info.c375 if ((error = proc_security_policy(PROC_NULL, PROC_INFO_CALL_LISTPIDS, type, NO_CHECK_SAME_USER))) { in proc_listpids()
1522 struct proc * p = PROC_NULL; in proc_piduuidinfo()
1529 if ((p = proc_find(pid)) == PROC_NULL) { in proc_piduuidinfo()
1533 if (p == PROC_NULL) { in proc_piduuidinfo()
1782 proc_t p = PROC_NULL; in proc_can_use_foreground_hw()
1800 if (p == PROC_NULL) { in proc_can_use_foreground_hw()
1940 if (p != PROC_NULL) { in proc_can_use_foreground_hw()
1996 struct proc * p = PROC_NULL; in proc_pidinfo()
2174 if ((p = proc_find(pid)) == PROC_NULL) { in proc_pidinfo()
2178 if (p == PROC_NULL) { in proc_pidinfo()
[all …]
H A Dkern_memorystatus_freeze.c877 if (p != PROC_NULL) { in memorystatus_freezer_get_status()
928 if (leader_proc == PROC_NULL) { in memorystatus_freezer_get_status()
1031 p = PROC_NULL; in memorystatus_freezer_get_status()
1037 if (p != PROC_NULL) { in memorystatus_freezer_get_status()
1197 proc_t next_p = PROC_NULL; in memorystatus_freezer_reset_state()
1271 proc_t p = PROC_NULL, next_p = PROC_NULL; in kill_all_frozen_processes()
1279 p = PROC_NULL; in kill_all_frozen_processes()
1280 next_p = PROC_NULL; in kill_all_frozen_processes()
1608 proc_t leader_proc = PROC_NULL; in memorystatus_get_coalition_leader_and_role()
1624 return PROC_NULL; in memorystatus_get_coalition_leader_and_role()
[all …]
H A Dprocess_policy.c118 proc_t target_proc = PROC_NULL; in process_policy()
137 if (target_proc == PROC_NULL) { in process_policy()
639 proc_t target_proc = PROC_NULL; in proc_pidbackgrounded()
647 if (target_proc == PROC_NULL) { in proc_pidbackgrounded()
H A Dmach_process.c196 if (proc_find_ident(&pproc_ident) == PROC_NULL) { in ptrace()
370 if (pp != PROC_NULL) { in ptrace()
586 if (proc_find_ident(&traced_ident) == PROC_NULL) { in cantrace()
H A Dkern_memorystatus_notify.c967 proc_t p = PROC_NULL; in memorystatus_pressure_proc_telemetry_send()
1119 proc_t p = PROC_NULL; in vm_pressure_select_optimal_candidate_to_notify()
1127 if (p == PROC_NULL) { in vm_pressure_select_optimal_candidate_to_notify()
1439 proc_t p = PROC_NULL; in update_footprints_for_telemetry()
1444 if (p == PROC_NULL) { in update_footprints_for_telemetry()
1449 p = PROC_NULL; in update_footprints_for_telemetry()
1469 proc_t target_proc = PROC_NULL; in memorystatus_update_vm_pressure()
1665 if (target_proc == PROC_NULL) { in memorystatus_update_vm_pressure()
H A Dkern_resource.c283 if (p == PROC_NULL) { in getpriority()
304 if (p == PROC_NULL) { in getpriority()
325 if (p == PROC_NULL) { in getpriority()
347 if (p == PROC_NULL) { in getpriority()
369 if (p == PROC_NULL) { in getpriority()
391 if (p == PROC_NULL) { in getpriority()
580 if (p == PROC_NULL) { in setpriority()
596 if (p == PROC_NULL) { in setpriority()
616 if (p == PROC_NULL) { in setpriority()
637 if (p == PROC_NULL) { in setpriority()
[all …]
H A Dkern_sig.c1566 proc_t target_proc = PROC_NULL; in terminate_with_payload_internal()
1577 if (target_proc == PROC_NULL) { in terminate_with_payload_internal()
2074 if (rdebug_proc && (p != PROC_NULL) && (p == rdebug_proc)) { in psignal_internal()
2384 if ((pp != PROC_NULL) && ((pp->p_flag & P_NOCLDSTOP) == 0)) { in psignal_internal()
2407 if (pp != PROC_NULL) { in psignal_internal()
2622 psignal_internal(PROC_NULL, TASK_NULL, thread, PSIG_THREAD, signum, NULL); in psignal_uthread()
2760 if (pp != PROC_NULL) { in issignal_locked()
2863 if ((pp != PROC_NULL) && ((pp->p_flag & P_NOCLDSTOP) == 0)) { in issignal_locked()
2877 if (pp != PROC_NULL) { in issignal_locked()
3046 if ((parent != PROC_NULL) && (parent->p_stat != SSTOP)) { in stop()
[all …]
H A Duipc_socket.c407 if (self == PROC_NULL) { in so_update_last_owner_locked()
567 if (ep != PROC_NULL && ep != p) { in socreate_internal()
696 PROC_NULL); in socreate()
703 struct proc *ep = PROC_NULL; in socreate_delegate()
705 if ((proc_selfpid() != epid) && ((ep = proc_find(epid)) == PROC_NULL)) { in socreate_delegate()
717 if (ep != PROC_NULL) { in socreate_delegate()
1399 so_update_last_owner_locked(so, PROC_NULL); in soacceptlock()
4686 proc_t ep = PROC_NULL; in soopt_cred_check()
4706 if (ep != PROC_NULL) { in soopt_cred_check()
6435 so_update_last_owner_locked(so, PROC_NULL); in sopoll()
[all …]
H A Dkern_prot.c266 if ((pt = proc_find(uap->pid)) != PROC_NULL) { in getsid()
573 proc_t targp = PROC_NULL; /* target process */ in setpgid()
584 if (targp != PROC_NULL) { in setpgid()
H A Dbsd_stubs.c80 if (__improbable(p == PROC_NULL)) { in current_proc()
H A Dkern_memorystatus.c2653 proc_t oldest_proc = PROC_NULL; in _memstat_find_earliest_idle_deadline()
3960 proc_t p = PROC_NULL; in memstat_kill_idle_process()
6502 proc_t p = PROC_NULL, next_p = PROC_NULL; in memstat_kill_top_process()
6717 proc_t p = PROC_NULL, next_p = PROC_NULL; in _memstat_refresh_oldest_reapable_proc_info()
6853 proc_t p = PROC_NULL, next_p = PROC_NULL; in memorystatus_kill_processes_aggressive()
7098 proc_t p = PROC_NULL, next_p = PROC_NULL; in memorystatus_kill_hiwat_proc()
7243 proc_t p = PROC_NULL, next_p = PROC_NULL; in memorystatus_kill_elevated_process()
8725 proc_t p = PROC_NULL;
8752 proc_t p = PROC_NULL;
9572 p != PROC_NULL;
[all …]
/xnu-12377.1.9/bsd/vfs/
H A Dvfs_fslog.c64 if ((caller != PROC_NULL) && (target != PROC_NULL)) { in fslog_extmod_msgtracer()
/xnu-12377.1.9/bsd/dev/dtrace/
H A Dfasttrap.c417 proc_t *p = PROC_NULL; in fasttrap_tracepoint_cleanup()
425 if (p != PROC_NULL) { in fasttrap_tracepoint_cleanup()
428 if ((p = sprlock(pid)) == PROC_NULL) { in fasttrap_tracepoint_cleanup()
451 if (p != PROC_NULL) { in fasttrap_tracepoint_cleanup()
597 p = PROC_NULL; in fasttrap_setdebug()
602 if (p == PROC_NULL) { in fasttrap_setdebug()
1194 if ((p = sprlock(probe->ftp_pid)) == PROC_NULL) { in fasttrap_pid_enable()
1903 if (p == PROC_NULL) in fasttrap_add_probe()
2438 if (proc_find_ident(&p_ident) == PROC_NULL) { in fasttrap_check_cred_priv()
2516 if ((p = proc_find(pid)) == PROC_NULL || p->p_stat == SIDL) { in fasttrap_ioctl()
[all …]
H A Ddtrace_glue.c79 if ((p = proc_find(pid)) == PROC_NULL) { in sprlock()
80 return PROC_NULL; in sprlock()
94 if (p != PROC_NULL) { in sprunlock()
114 ASSERT(p != PROC_NULL); in uread()
/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/
H A Dfsw_flow.c90 if (p == PROC_NULL) { in fsw_flow_add()
373 p = PROC_NULL; in fsw_flow_add()
/xnu-12377.1.9/bsd/security/audit/
H A Daudit.c236 if (PROC_NULL != p) { in audit_record_ctor()
420 if (PROC_NULL != p) { in audit_new()
H A Daudit_syscalls.c372 proc_t tp = PROC_NULL; in auditon()
794 tp = PROC_NULL; in auditon()
/xnu-12377.1.9/bsd/netinet/
H A Dflow_divert.c1027 info.found_proc = PROC_NULL; in flow_divert_find_proc_by_uuid()
1130 proc_t effective_proc = PROC_NULL; in flow_divert_add_all_proc_info()
1131 proc_t responsible_proc = PROC_NULL; in flow_divert_add_all_proc_info()
1135 proc_t src_proc = PROC_NULL; in flow_divert_add_all_proc_info()
1136 proc_t real_src_proc = PROC_NULL; in flow_divert_add_all_proc_info()
1138 if (real_proc == PROC_NULL) { in flow_divert_add_all_proc_info()
1142 if (real_proc == PROC_NULL) { in flow_divert_add_all_proc_info()
1170 if (responsible_proc != PROC_NULL) { in flow_divert_add_all_proc_info()
1175 } else if (effective_proc != PROC_NULL) { in flow_divert_add_all_proc_info()
1194 if (responsible_proc != PROC_NULL) { in flow_divert_add_all_proc_info()
[all …]
H A Dmptcp_subr.c1469 if (p == PROC_NULL) { in mptcp_subflow_socreate()
1492 SOCF_MPTCP, PROC_NULL); in mptcp_subflow_socreate()
1877 if (p == PROC_NULL) { in mptcp_subflow_soconnectx()
2415 if (p == PROC_NULL) { in mptcp_subflow_sosend()
6444 info.found_proc = PROC_NULL; in mptcp_find_proc()
6458 struct proc *p = PROC_NULL; in mptcp_ask_symptoms()
6472 if (p != PROC_NULL) { in mptcp_ask_symptoms()
6477 p = PROC_NULL; in mptcp_ask_symptoms()
6482 if (p == PROC_NULL) { in mptcp_ask_symptoms()
6484 if (p == PROC_NULL) { in mptcp_ask_symptoms()
[all …]
/xnu-12377.1.9/bsd/net/
H A Drtsock.c648 cred = current_cached_proc_cred(PROC_NULL); in route_output()
1788 cred = current_cached_proc_cred(PROC_NULL); in sysctl_dumpentry()
1873 cred = current_cached_proc_cred(PROC_NULL); in sysctl_dumpentry_ext()
1961 cred = current_cached_proc_cred(PROC_NULL); in sysctl_iflist()
2142 cred = current_cached_proc_cred(PROC_NULL); in sysctl_iflist2()
H A Dnecp_client.c2023 if (proc != PROC_NULL) { in necp_process_defunct_list()
3807 if (proc == PROC_NULL) { in necp_client_add_multipath_interface_flows()
3815 proc = PROC_NULL; in necp_client_add_multipath_interface_flows()
3880 if (proc == PROC_NULL) { in necp_client_lookup_bb_radio_manager()
3888 proc = PROC_NULL; in necp_client_lookup_bb_radio_manager()
4099 if (proc == PROC_NULL) { in necp_client_assign_from_socket()
4183 proc = PROC_NULL; in necp_client_assign_from_socket()
4265 if (proc == PROC_NULL) { in necp_update_flow_protoctl_event()
4303 proc = PROC_NULL; in necp_update_flow_protoctl_event()
4392 if (proc == PROC_NULL) { in necp_assign_client_result()
[all …]

123