Lines Matching refs:cr
251 #define HAS_ALLPRIVS(cr) priv_isfullset(&CR_OEPRIV(cr))
252 #define HAS_PRIVILEGE(cr, pr) ((pr) == PRIV_ALL ? \
253 HAS_ALLPRIVS(cr) : \
254 PRIV_ISASSERT(&CR_OEPRIV(cr), pr))
263 PRIV_POLICY_ONLY(void *cr, int priv, int boolean)
266 return kauth_cred_issuser(cr); /* XXX TODO: HAS_PRIVILEGE(cr, priv); */
270 crgetgid(const cred_t *cr) { return cr->cr_groups[0]; }
273 crgetuid(const cred_t *cr) { return cr->cr_uid; }