Lines Matching refs:cred
119 int groupmember(gid_t gid, kauth_cred_t cred);
134 extern void kauth_cred_print(kauth_cred_t cred);
449 kauth_cred_t cred;
452 cred = kauth_cred_get_with_ref();
455 *retval = cred->cr_ngroups;
456 kauth_cred_unref(&cred);
459 if (ngrp < cred->cr_ngroups) {
460 kauth_cred_unref(&cred);
463 ngrp = cred->cr_ngroups;
464 if ((error = copyout((caddr_t)cred->cr_groups,
467 kauth_cred_unref(&cred);
470 kauth_cred_unref(&cred);
751 * Only set the gmuid if the current cred has not opt'ed out;
779 * restart this again with the new cred.
864 * should restart this again with the new cred.
1006 * restart this again with the new cred.
1106 * should restart this again with the new cred.
1192 * should restart this again with the new cred.
1331 * should restart this again with the new cred.
1595 * is dropped and we get back a different cred with a reference
1632 * with the new cred.
1759 groupmember(gid_t gid, kauth_cred_t cred)
1763 if (kauth_cred_ismember_gid(cred, gid, &is_member) == 0 && is_member)
1784 suser(kauth_cred_t cred, u_short *acflag)
1787 if (!IS_VALID_CRED(cred))
1790 if (kauth_cred_getuid(cred) == 0) {