Lines Matching refs:proc
575 audit_syscall_enter(unsigned int code, proc_t proc, struct uthread *uthread)
608 cred = kauth_cred_proc_ref(proc);
625 if (audit_mac_syscall_enter(code, proc, uthread, cred, event) == 0)
642 suser(cred, &proc->p_acflag) != 0) {
647 uthread->uu_ar = audit_new(event, proc, uthread);
650 uthread->uu_ar = audit_new(event, proc, uthread);
667 audit_syscall_exit(unsigned int code, int error, __unused proc_t proc,
671 audit_syscall_exit(int error, __unsed proc_t proc, struct uthread *uthread)
706 proc_t proc;
719 proc = current_proc();
720 if (proc == NULL)
726 cred = kauth_cred_proc_ref(proc);
744 uthread->uu_ar = audit_new(event, proc, uthread);
746 uthread->uu_ar = audit_new(event, proc, uthread);
778 audit_proc_coredump(proc_t proc, char *path, int errcode)
794 my_cred = kauth_cred_proc_ref(proc);
819 ar = audit_new(AUE_CORE, proc, uthread);
829 ar->k_ar.ar_arg_signum = proc->p_sigacts->ps_sig;