| /xnu-11215/bsd/sys/ |
| H A D | proc_internal.h | 271 struct proc { struct 306 LIST_ENTRY(proc) p_persona_list; argument 784 LIST_HEAD(proclist, proc); 837 extern int isinferior(struct proc *, struct proc *); 843 extern void pinsertchild(struct proc *parent, struct proc *child, bool in_exec); 880 extern void phash_replace_locked(struct proc *old_proc, struct proc *new_proc); 888 extern struct pgrp *pgrp_enter_locked(struct proc *parent, struct proc *p); 894 extern void session_replace_leader(struct proc *old_proc, struct proc *new_proc); 908 void proc_inherit_itimers(struct proc *old_proc, struct proc *new_proc); 916 struct proc *proc_ref(struct proc *p, int locked); [all …]
|
| H A D | codesign.h | 88 int cs_valid(struct proc *); 89 int cs_process_enforcement(struct proc *); 93 int cs_require_lv(struct proc *); 94 int csproc_forced_lv(struct proc* p); 96 uint32_t cs_entitlement_flags(struct proc *p); 103 int cs_restricted(struct proc *); 107 struct cs_blob * csproc_get_blob(struct proc *); 139 int csproc_hardened_runtime(struct proc* p); 166 int csproc_get_prod_signed(struct proc *); 203 int cs_allow_invalid(struct proc *); [all …]
|
| H A D | signalvar.h | 188 void execsigs(struct proc *p, thread_t thread); 190 int issignal_locked(struct proc *p); 191 int CURSIG(struct proc *p); 193 int set_procsigmask(struct proc *p, int bit); 195 void siginit(struct proc *p); 197 void pt_setrunnable(struct proc *p); 208 void psignal(struct proc *p, int sig); 210 void psignal_locked(struct proc *, int); 227 void sig_lock_to_exit(struct proc *p); 228 int sig_try_locked(struct proc *p); [all …]
|
| H A D | resourcevar.h | 124 struct proc; 126 void calcru(struct proc *p, struct timeval *up, struct timeval *sp, struct timeval *ip); 129 struct rlimit proc_limitget(struct proc *p, int which); 130 void proc_limitfork(struct proc *parent, struct proc *child); 131 void proc_limitdrop(struct proc *p); 132 rlim_t proc_limitgetcur(struct proc *p, int which); 133 void proc_limitsetcur_fsize(struct proc *p, rlim_t value); 134 int proc_limitgetcur_nofile(struct proc *p); 136 void gather_rusage_info(struct proc *p, rusage_info_current *ru, int flavor); 137 int proc_get_rusage(struct proc *proc, int flavor, user_addr_t buffer, int is_zombie); [all …]
|
| H A D | dtrace_ptss.h | 90 struct dtrace_ptss_page_entry* dtrace_ptss_claim_entry(struct proc* p); /* sprlock not held */ 91 struct dtrace_ptss_page_entry* dtrace_ptss_claim_entry_locked(struct proc* p); /* sprlock held */ 92 void dtrace_ptss_release_entry(struct proc* p, struct dtrace_ptss_page_e… 94 struct dtrace_ptss_page* dtrace_ptss_allocate_page(struct proc* p); 95 void dtrace_ptss_free_page(struct proc* p, struct dtrace_ptss_page* ptss… 97 void dtrace_ptss_enable(struct proc* p); 98 void dtrace_ptss_exec_exit(struct proc* p); 99 void dtrace_ptss_fork(struct proc* parent, struct proc* child);
|
| H A D | pthread_shims.h | 151 uint64_t (*proc_get_register)(struct proc *t); 152 void (*proc_set_register)(struct proc *t); 154 user_addr_t (*proc_get_threadstart)(struct proc *t); 156 user_addr_t (*proc_get_wqthread)(struct proc *t); 158 int (*proc_get_pthsize)(struct proc *t); 159 void (*proc_set_pthsize)(struct proc *t, int size); 163 bool (*proc_get_jit_entitled)(struct proc *t); 185 void* (*proc_get_pthhash)(struct proc *t); 186 void (*proc_set_pthhash)(struct proc *t, void* ptr); 252 int (*kevent_workq_internal)(struct proc *p, [all …]
|
| H A D | protosw.h | 144 struct proc; 153 struct proc; 298 (struct socket *so, struct proc *p, struct proc *ep); 468 struct proc *p); 470 struct proc *p); 482 struct proc *p); 513 struct proc *); 521 struct ifnet *, struct proc *); 566 struct proc *p); 568 struct proc *p); [all …]
|
| H A D | shm_internal.h | 139 struct proc; 143 void shmexit(struct proc *); 144 int shmfork(struct proc *, struct proc *); 145 __private_extern__ void shmexec(struct proc *);
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | kevent.py | 6 def IterateProcKqueues(proc): argument 21 def IterateProcKqfiles(proc): argument 47 def IterateProcKqworkloops(proc): argument 71 proc = GetProcFromTask(t) 72 if proc is None: 74 proc = kern.GetValueFromAddress(unsigned(proc), 'proc_t') 78 def IterateProcKnotes(proc): argument 155 proc = kq.kq_p 368 if proc is None: 370 proc = kern.GetValueFromAddress(unsigned(proc), 'proc_t') [all …]
|
| H A D | workqueue.py | 6 def GetProcWorkqueue(proc): argument 7 wq = proc.p_wqptr; 14 def GetWorkqueueSummary(proc, wq): argument 40 task = GetTaskFromProc(proc) 98 kq = proc.p_fd.fd_wqkqueue 156 proc = kern.GetValueFromAddress(cmd_args[0], "proc_t") 157 wq = Cast(proc.p_wqptr, "struct workqueue *") 162 print(GetWorkqueueSummary(proc, wq)) 201 proc = GetProcFromTask(t) 202 if proc is None: [all …]
|
| H A D | process.py | 36 def GetProcPID(proc): argument 43 return unsigned(proc.p_pid) if proc is not None else -1 45 def GetProcPlatform(proc): argument 52 if not proc: 56 def GetProcName(proc): argument 63 if proc is None: 114 def GetProcInfo(proc): argument 124 ).format(GetProcName(proc), GetProcPID(proc), task=GetTaskFromProc(proc), p=proc) 375 if unsigned(proc) and unsigned(proc.p_lflag) & P_LHASTASK: 1817 proc.p_ppid, GetProcName(proc.p_pptr), unsigned(proc.p_pptr)) [all …]
|
| /xnu-11215/tools/lldbmacros/tests/lldb_tests/ |
| H A D | test_valuemock.py | 47 proc = ValueMock.createFromType('proc') 49 proc.p_pid = 5 50 self.assertEqual(proc.p_pid, 5) 55 proc = ValueMock.createFromType('proc') 58 proc.foobar = 1 63 proc = ValueMock.createFromType('proc') 64 self.assertTrue(hasattr(proc, 'p_pid')) 69 proc = ValueMock.createFromType('proc') 72 proc.p_list.foobar = 1 78 proc.p_list.le_next = 5 [all …]
|
| H A D | test_process.py | 53 proc = ValueMock.createFromType('proc') 54 proc.p_pid = 12345 56 self.assertEqual(tst_process.GetProcPID(proc), 12345) 62 proc = ValueMock.createFromType('proc') 63 proc.p_name = "" 64 proc.p_comm = "short-proc" 71 proc = ValueMock.createFromType('proc') 72 proc.p_name = "long-proc" 73 proc.p_comm = "short-proc" 130 proc = self.create_mock('proc', PROC_ADDR).fromDict({ [all …]
|
| /xnu-11215/security/ |
| H A D | mac_process.c | 354 mac_proc_check_dump_core(struct proc *proc) in mac_proc_check_dump_core() argument 377 proc_t proc; in mac_proc_check_remote_thread_create() local 391 if (proc == PROC_NULL) { in mac_proc_check_remote_thread_create() 397 proc_rele(proc); in mac_proc_check_remote_thread_create() 455 struct proc *p, in mac_proc_check_inherit_ipc_ports() 563 mac_proc_check_sched(proc_t curp, struct proc *proc) in mac_proc_check_sched() argument 583 mac_proc_check_signal(proc_t curp, struct proc *proc, int signum) in mac_proc_check_signal() argument 642 mac_proc_check_wait(proc_t curp, struct proc *proc) in mac_proc_check_wait() argument 662 mac_proc_notify_exit(struct proc *proc) in mac_proc_notify_exit() argument 684 proc, sr); in mac_proc_check_suspend_resume() [all …]
|
| H A D | mac_necp.c | 36 mac_necp_check_open(proc_t proc, int flags) in mac_necp_check_open() argument 47 if (!mac_proc_check_enforce(proc)) { in mac_necp_check_open() 51 MAC_CHECK(necp_check_open, current_cached_proc_cred(proc), flags); in mac_necp_check_open() 56 mac_necp_check_client_action(proc_t proc, struct fileglob *fg, uint32_t action) in mac_necp_check_client_action() argument 67 if (!mac_proc_check_enforce(proc)) { in mac_necp_check_client_action() 71 MAC_CHECK(necp_check_client_action, current_cached_proc_cred(proc), fg, action); in mac_necp_check_client_action()
|
| H A D | mac_mach.c | 56 static struct proc * 68 struct proc *p = proc_find(pid); in mac_task_get_proc() 86 struct proc *p = mac_task_get_proc(task); in mac_task_check_expose_task() 104 struct proc *target_proc = NULL; in mac_task_check_task_id_token_get_task() 170 struct proc *target_proc = NULL; in mac_task_check_get_task_special_port() 207 struct proc *targetp = mac_task_get_proc(target); in mac_task_check_set_task_special_port() 236 struct proc *targetp = mac_task_get_proc(target); in mac_task_check_set_task_exception_ports() 340 mac_proc_notify_exec_complete(struct proc *proc) in mac_proc_notify_exec_complete() argument 350 MAC_PERFORM(proc_notify_exec_complete, proc); in mac_proc_notify_exec_complete() 448 mac_exc_create_label_for_proc(struct proc *proc) in mac_exc_create_label_for_proc() argument [all …]
|
| H A D | mac_mach_internal.h | 68 struct proc; 107 typedef int (*mac_task_mach_filter_cbfunc_t)(struct proc *bsdinfo, int num); 108 typedef int (*mac_task_kobj_filter_cbfunc_t)(struct proc *bsdinfo, int msgid, int index); 143 void mac_proc_notify_exec_complete(struct proc *proc); 147 struct label *mac_exc_create_label_for_proc(struct proc *proc);
|
| /xnu-11215/bsd/pthread/ |
| H A D | workqueue_internal.h | 269 struct proc *wq_proc; 300 void workq_exit(struct proc *p); 301 void workq_mark_exiting(struct proc *p); 303 bool workq_is_exiting(struct proc *p); 307 void workq_thread_terminate(struct proc *p, struct uthread *uth); 346 void workq_kern_threadreq_lock(struct proc *p); 347 void workq_kern_threadreq_unlock(struct proc *p); 351 void workq_kern_quantum_expiry_reevaluate(struct proc *p, thread_t thread); 364 void workq_proc_suspended(struct proc *p); 365 void workq_proc_resumed(struct proc *p); [all …]
|
| /xnu-11215/bsd/machine/ |
| H A D | cons.h | 67 int consopen(dev_t, int, int, struct proc *); 68 int consclose(dev_t, int, int, struct proc *); 71 int consioctl(dev_t, u_long, caddr_t, int, struct proc *); 72 int consselect(dev_t, int, void *, struct proc *); 79 int kmopen(dev_t, int, int, struct proc *); 80 int kmclose(dev_t, int, int, struct proc *); 83 int kmioctl(dev_t, u_long, caddr_t, int, struct proc *);
|
| /xnu-11215/bsd/skywalk/channel/ |
| H A D | channel_var.h | 881 struct proc *); 884 struct proc *); 897 struct proc *); 900 struct proc *); 903 struct proc *); 915 struct proc *p); 917 struct proc *p); 919 struct proc *p); 921 struct proc *p); 924 struct proc *); [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | process_policy.c | 255 error = proc_resetpcontrol(proc_pid(proc)); in handle_lowresource() 280 && curp != proc) { in handle_cpuuse() 294 if (!canEnable && curp != proc) { in handle_cpuuse() 299 error = mac_proc_check_sched(curp, proc); in handle_cpuuse() 308 error = proc_get_task_ruse_cpu(proc_task(proc), &cpuattr.ppattr_cpu_attr, in handle_cpuuse() 346 error = proc_clear_task_ruse_cpu(proc_task(proc), privileged); in handle_cpuuse() 351 error = task_resume_cpumon(proc_task(proc)); in handle_cpuuse() 371 proc_t proc, in handle_applifecycle() argument 390 error = mac_proc_check_suspend_resume(proc, MAC_PROC_CHECK_HIBERNATE); in handle_applifecycle() 399 memorystatus_on_inactivity(proc); in handle_applifecycle() [all …]
|
| /xnu-11215/bsd/security/audit/ |
| H A D | audit.h | 152 struct proc; 160 struct proc *proc, struct uthread *uthread); 167 struct proc *proc, struct uthread *uthread); 169 void audit_syscall_exit(int error, struct proc *proc, 176 struct proc *proc, struct uthread *uthread); 250 void audit_arg_file(struct kaudit_record *ar, struct proc *p, 262 void audit_proc_coredump(proc_t proc, const char *path, int errcode); 351 #define AUDIT_SYSCALL_EXIT(code, proc, uthread, error) do { \ argument 353 audit_syscall_exit(code, error, proc, uthread); \ 356 #define AUDIT_SUBCALL_ENTER(event, proc, uthread) do { \ argument [all …]
|
| H A D | audit.c | 643 cred = kauth_cred_proc_ref(proc); in audit_syscall_enter() 679 suser(cred, &proc->p_acflag) != 0) { in audit_syscall_enter() 765 cred = kauth_cred_proc_ref(proc); in audit_subcall_enter() 793 suser(cred, &proc->p_acflag) != 0) { in audit_subcall_enter() 826 proc_t proc; in audit_mach_syscall_enter() local 841 proc = current_proc(); in audit_mach_syscall_enter() 842 if (proc == NULL) { in audit_mach_syscall_enter() 849 cred = kauth_cred_proc_ref(proc); in audit_mach_syscall_enter() 919 my_cred = kauth_cred_proc_ref(proc); in audit_proc_coredump() 947 ar = audit_new(AUE_CORE, proc, uthread); in audit_proc_coredump() [all …]
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_sanitize_telemetry.c | 149 extern const char *proc_best_name(struct proc *proc); 193 vm_sanitize_populate_process_name(struct proc *proc, char buffer[static CA_VM_PROCESS_NAME_LEN]) in vm_sanitize_populate_process_name() argument 195 const char *proc_name = proc_best_name(proc); in vm_sanitize_populate_process_name() 200 vm_sanitize_populate_process_uuid(struct proc *proc, char buffer[static sizeof(uuid_string_t)]) in vm_sanitize_populate_process_uuid() argument 203 proc_getexecutableuuid(proc, parsed_uuid, sizeof(parsed_uuid)); in vm_sanitize_populate_process_uuid() 219 struct proc *proc = current_proc(); in vm_sanitize_send_telemetry_core_analytics() local 229 vm_sanitize_populate_process_name(proc, event_data->process_name); in vm_sanitize_send_telemetry_core_analytics() 231 vm_sanitize_populate_process_uuid(proc, event_data->process_uuid); in vm_sanitize_send_telemetry_core_analytics()
|
| /xnu-11215/bsd/dev/arm/ |
| H A D | systemcalls.c | 45 unix_syscall(struct arm_saved_state * regs, thread_t thread_act, struct proc * proc); 93 struct proc * proc) in unix_syscall() argument 151 pid = proc_pid(proc); in unix_syscall() 158 pid, proc->p_comm, thread_tid(current_thread())); in unix_syscall() 161 …if (__improbable(proc_syscall_filter_mask(proc) != NULL && !bitstr_test(proc_syscall_filter_mask(p… in unix_syscall() 162 error = mac_proc_check_syscall_unix(proc, syscode); in unix_syscall() 180 AUDIT_SYSCALL_ENTER(code, proc, uthread); in unix_syscall() 182 AUDIT_SYSCALL_EXIT(code, proc, uthread, error); in unix_syscall() 235 struct proc *proc; in unix_syscall_return() local 244 proc = current_proc(); in unix_syscall_return() [all …]
|