Lines Matching defs:ucred

279  * 1    the kernel and ucred deal with a dev_t as a 64 bit value made
283 * 3 The various audit interfaces (except ucred) pass the 32 or
285 * application. If you get a port value from ucred and pass it
291 * dev_t, so adt converts data from ucred to fit. The import/export
1424 ucred_t *ucred = ucred_get(P_MYID);
1427 * Even if the ucred is NULL, the underlying
1435 if (ucred == NULL) {
1440 mask = ucred_getamask(ucred);
1444 ucred_free(ucred);
1447 tid = ucred_getatid(ucred);
1452 ucred_free(ucred);
1455 state->as_info.ai_asid = ucred_getasid(ucred);
1456 state->as_info.ai_auid = ucred_getauid(ucred);
1457 state->as_label = adt_ucred_label(ucred);
1458 ucred_free(ucred);
1551 ucred_t *ucred = ucred_get(P_MYID);
1553 state->as_label = adt_ucred_label(ucred);
1554 ucred_free(ucred);
1692 * a pointer to a ucred rather than a list of id's. If the ucred
1713 ucred_t *ucred = (ucred_t *)uc;
1722 if (ucred == NULL) {
1723 ucred = ucred_get(P_MYID);
1725 if (ucred == NULL)
1732 tid64 = ucred_getatid(ucred);
1739 if (ucred_getauid(ucred) == AU_NOAUDITID) {
1745 state->as_info.ai_auid = ucred_getauid(ucred);
1746 state->as_info.ai_asid = ucred_getasid(ucred);
1747 state->as_info.ai_mask = *ucred_getamask(ucred);
1758 if ((rc = adt_changeuser(state, ucred_getruid(ucred))) != 0)
1773 state->as_ruid = ucred_getruid(ucred);
1774 state->as_euid = ucred_geteuid(ucred);
1775 state->as_rgid = ucred_getrgid(ucred);
1776 state->as_egid = ucred_getegid(ucred);
1777 state->as_pid = ucred_getpid(ucred);
1778 state->as_label = adt_ucred_label(ucred);
1782 ucred_free(ucred);