Lines Matching defs:ucred
278 * 1 the kernel and ucred deal with a dev_t as a 64 bit value made
282 * 3 The various audit interfaces (except ucred) pass the 32 or
284 * application. If you get a port value from ucred and pass it
290 * dev_t, so adt converts data from ucred to fit. The import/export
1423 ucred_t *ucred = ucred_get(P_MYID);
1426 * Even if the ucred is NULL, the underlying
1434 if (ucred == NULL) {
1439 mask = ucred_getamask(ucred);
1443 ucred_free(ucred);
1446 tid = ucred_getatid(ucred);
1451 ucred_free(ucred);
1454 state->as_info.ai_asid = ucred_getasid(ucred);
1455 state->as_info.ai_auid = ucred_getauid(ucred);
1456 state->as_label = adt_ucred_label(ucred);
1457 ucred_free(ucred);
1550 ucred_t *ucred = ucred_get(P_MYID);
1552 state->as_label = adt_ucred_label(ucred);
1553 ucred_free(ucred);
1691 * a pointer to a ucred rather than a list of id's. If the ucred
1712 ucred_t *ucred = (ucred_t *)uc;
1721 if (ucred == NULL) {
1722 ucred = ucred_get(P_MYID);
1724 if (ucred == NULL)
1731 tid64 = ucred_getatid(ucred);
1738 if (ucred_getauid(ucred) == AU_NOAUDITID) {
1744 state->as_info.ai_auid = ucred_getauid(ucred);
1745 state->as_info.ai_asid = ucred_getasid(ucred);
1746 state->as_info.ai_mask = *ucred_getamask(ucred);
1757 if ((rc = adt_changeuser(state, ucred_getruid(ucred))) != 0)
1772 state->as_ruid = ucred_getruid(ucred);
1773 state->as_euid = ucred_geteuid(ucred);
1774 state->as_rgid = ucred_getrgid(ucred);
1775 state->as_egid = ucred_getegid(ucred);
1776 state->as_pid = ucred_getpid(ucred);
1777 state->as_label = adt_ucred_label(ucred);
1781 ucred_free(ucred);