Lines Matching refs:cred
1034 kauth_cred_t cred, struct nfsreq *req, mbuf_t mrest, u_int64_t *xidp, mbuf_t *mreqp)
1051 if (!cred)
1054 (void)kauth_cred_getgroups(cred, grouplist, &groupcount);
1066 if (!req || !cred)
1139 nfsm_chain_add_32(error, &nmreq, kauth_cred_getuid(cred)); /* UID */
1140 nfsm_chain_add_32(error, &nmreq, kauth_cred_getgid(cred)); /* GID */
1145 (void)kauth_cred_getgroups(cred, grouplist, &groupcount);
1171 (void)kauth_cred_getgroups(cred, grouplist, &groupcount);
2425 kauth_cred_t cred;
2440 cred = posix_cred_create(&temp_pcred);
2441 if (!IS_VALID_CRED(cred))
2444 cred = NOCRED;
2450 if (IS_VALID_CRED(cred))
2451 kauth_cred_unref(&cred);
2456 nx->nx_defopt.nxo_cred = cred;
2466 if (IS_VALID_CRED(cred))
2467 kauth_cred_unref(&cred);
2472 no->no_opt.nxo_cred = cred;
2496 if (IS_VALID_CRED(cred))
2497 kauth_cred_unref(&cred);
2519 if (cred == cred2) {
2522 } else if (cred && cred2 && (kauth_cred_getuid(cred) == kauth_cred_getuid(cred2))) {
2541 if (!kauth_cred_getgroups(cred, groups, &groupcount) &&
2552 if (IS_VALID_CRED(cred))
2553 kauth_cred_unref(&cred);