Lines Matching refs:td_ucred
74 if (jailed(td->td_ucred)) in sys_audit()
121 error = mac_system_check_audit(td->td_ucred, rec, uap->length); in sys_audit()
168 if (jailed(td->td_ucred)) in sys_auditon()
173 error = mac_system_check_auditon(td->td_ucred, uap->cmd); in sys_auditon()
595 if (jailed(td->td_ucred)) in sys_getauid()
600 return (copyout(&td->td_ucred->cr_audit.ai_auid, uap->auid, in sys_getauid()
601 sizeof(td->td_ucred->cr_audit.ai_auid))); in sys_getauid()
612 if (jailed(td->td_ucred)) in sys_setauid()
652 cred = td->td_ucred; in sys_getaudit()
677 if (jailed(td->td_ucred)) in sys_setaudit()
718 if (jailed(td->td_ucred)) in sys_getaudit_addr()
725 return (copyout(&td->td_ucred->cr_audit, uap->auditinfo_addr, in sys_getaudit_addr()
737 if (jailed(td->td_ucred)) in sys_setaudit_addr()
782 if (jailed(td->td_ucred)) in sys_auditctl()
809 error = mac_system_check_auditctl(td->td_ucred, vp); in sys_auditctl()
812 vn_close(vp, AUDIT_CLOSE_FLAGS, td->td_ucred, td); in sys_auditctl()
820 vn_close(vp, AUDIT_CLOSE_FLAGS, td->td_ucred, td); in sys_auditctl()
823 cred = td->td_ucred; in sys_auditctl()