Lines Matching refs:target_proc
113 proc_t target_proc = PROC_NULL;
123 target_proc = proc_find(target_pid);
124 if (target_proc == PROC_NULL) {
131 target_cred = kauth_cred_proc_ref(target_proc);
155 error = mac_proc_check_sched(curp, target_proc);
166 error = handle_background(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
169 error = handle_hwaccess(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
172 error = handle_lowresrouce(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
175 error = handle_resourceuse(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
179 error = handle_applifecycle(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
183 error = handle_apptype(scope, action, policy, policy_subtype, attrp, target_proc, target_threadid);
191 proc_rele(target_proc);
487 /* bind the thread in target_thread in current process to target_proc */
504 handle_apptype(__unused int scope, int action, __unused int policy, int policy_subtype, __unused user_addr_t attrp, proc_t target_proc, __unused uint64_t target_threadid)
537 error = proc_enable_task_apptype(target_proc->task, policy_subtype);
541 error = proc_disable_task_apptype(target_proc->task, policy_subtype);