Lines Matching refs:task
57 mac_task_get_proc(struct task *task) in mac_task_get_proc() argument
59 if (task == current_task()) { in mac_task_get_proc()
67 int pid = task_pid(task); in mac_task_get_proc()
71 if (proc_task(p) == task) { in mac_task_get_proc()
80 mac_task_check_expose_task(struct task *task, mach_task_flavor_t flavor) in mac_task_check_expose_task() argument
86 struct proc *p = mac_task_get_proc(task); in mac_task_check_expose_task()
101 mac_task_check_task_id_token_get_task(struct task *task, mach_task_flavor_t flavor) in mac_task_check_task_id_token_get_task() argument
110 if (!task_is_a_corpse(task)) { in mac_task_check_task_id_token_get_task()
112 target_proc = mac_task_get_proc(task); in mac_task_check_task_id_token_get_task()
140 mac_task_check_set_host_special_port(struct task *task, int id, struct ipc_port *port) in mac_task_check_set_host_special_port() argument
142 #pragma unused(task) in mac_task_check_set_host_special_port()
145 assert(task == current_task()); in mac_task_check_set_host_special_port()
153 mac_task_check_set_host_exception_port(struct task *task, unsigned int exception) in mac_task_check_set_host_exception_port() argument
155 #pragma unused(task) in mac_task_check_set_host_exception_port()
158 assert(task == current_task()); in mac_task_check_set_host_exception_port()
166 mac_task_check_get_task_special_port(struct task *task, struct task *target, int which) in mac_task_check_get_task_special_port() argument
168 #pragma unused(task) in mac_task_check_get_task_special_port()
174 assert(task == current_task()); in mac_task_check_get_task_special_port()
195 mac_task_check_set_task_special_port(struct task *task, struct task *target, int which, struct ipc_… in mac_task_check_set_task_special_port() argument
197 #pragma unused(task) in mac_task_check_set_task_special_port()
200 assert(task == current_task()); in mac_task_check_set_task_special_port()
222 mac_task_check_set_task_exception_ports(struct task *task, struct task *target, unsigned int except… in mac_task_check_set_task_exception_ports() argument
224 #pragma unused(task) in mac_task_check_set_task_exception_ports()
229 assert(task == current_task()); in mac_task_check_set_task_exception_ports()
258 mac_task_check_set_thread_exception_ports(struct task *task, struct task *target, unsigned int exce… in mac_task_check_set_thread_exception_ports() argument
260 #pragma unused(task) in mac_task_check_set_thread_exception_ports()
265 assert(task == current_task()); in mac_task_check_set_thread_exception_ports()
305 mac_task_check_set_host_exception_ports(struct task *task, unsigned int exception_mask) in mac_task_check_set_host_exception_ports() argument
307 #pragma unused(task) in mac_task_check_set_host_exception_ports()
312 assert(task == current_task()); in mac_task_check_set_host_exception_ports()
432 mac_exc_update_task_crash_label(struct task *task, struct label *label) in mac_exc_update_task_crash_label() argument
436 assert(task != kernel_task); in mac_exc_update_task_crash_label()
438 struct label *crash_label = get_task_crash_label(task); in mac_exc_update_task_crash_label()
464 mac_exc_action_check_exception_send(struct task *victim_task, struct exception_action *action) in mac_exc_action_check_exception_send()