Lines Matching defs:cred
435 kauth_cred_t cred = p->p_ucred;
436 auditinfo_addr_t *aia_p = cred->cr_audit.as_aia_p;
973 audit_session_ref(kauth_cred_t cred)
977 KASSERT(IS_VALID_CRED(cred),
980 aia_p = cred->cr_audit.as_aia_p;
994 audit_session_unref(kauth_cred_t cred)
998 KASSERT(IS_VALID_CRED(cred),
1001 aia_p = cred->cr_audit.as_aia_p;
1007 * a reference on the process' cred.
1012 kauth_cred_t cred = p->p_ucred;
1015 KASSERT(IS_VALID_CRED(cred),
1018 aia_p = cred->cr_audit.as_aia_p;
1025 * a reference on the cred.
1030 kauth_cred_t cred = p->p_ucred;
1033 KASSERT(IS_VALID_CRED(cred),
1036 aia_p = cred->cr_audit.as_aia_p;
1068 audit_session_update_check(kauth_cred_t cred, auditinfo_addr_t *old,
1093 kauth_cred_issuser(cred)) ||
1104 kauth_cred_issuser(cred)) ||
1114 * Safely update kauth cred of the given process with new the given audit info.
1172 * again with the new cred.
1183 /* update cred on proc */
1215 * ESRCH Bad process, can't get valid cred for process.
1223 kauth_cred_t cred = NULL;
1228 cred = kauth_cred_proc_ref(p);
1229 if (!IS_VALID_CRED(cred)) {
1234 aia_p = cred->cr_audit.as_aia_p;
1248 bcopy(&cred->cr_audit.as_mask, &se->se_mask,
1259 if (cred != NULL)
1260 kauth_cred_unref(&cred);
1281 * ESRCH Bad process, can't get valid cred for process.
1292 kauth_cred_t cred = NULL;
1304 cred = kauth_cred_proc_ref(p);
1305 if (!IS_VALID_CRED(cred)) {
1309 aia_p = cred->cr_audit.as_aia_p;
1329 } else if (kauth_cred_issuser(cred)) {
1351 bcopy(&cred->cr_audit.as_mask, &se->se_mask,
1367 if (cred != NULL)
1368 kauth_cred_unref(&cred);
1450 * ESRCH Invalid calling process/cred.
1475 * ESRCH Invalid calling process/cred.