Lines Matching defs:ucred
248 * 1 the kernel and ucred deal with a dev_t as a 64 bit value made
252 * 3 The various audit interfaces (except ucred) pass the 32 or
254 * application. If you get a port value from ucred and pass it
260 * dev_t, so adt converts data from ucred to fit. The import/export
1425 ucred_t *ucred = ucred_get(P_MYID);
1428 * Even if the ucred is NULL, the underlying
1436 if (ucred == NULL) {
1441 mask = ucred_getamask(ucred);
1450 ucred_free(ucred);
1453 tid = ucred_getatid(ucred);
1458 ucred_free(ucred);
1461 state->as_info.ai_asid = ucred_getasid(ucred);
1462 state->as_info.ai_auid = ucred_getauid(ucred);
1463 state->as_label = adt_ucred_label(ucred);
1464 ucred_free(ucred);
1557 ucred_t *ucred = ucred_get(P_MYID);
1559 state->as_label = adt_ucred_label(ucred);
1560 ucred_free(ucred);
1698 * a pointer to a ucred rather than a list of id's. If the ucred
1719 ucred_t *ucred = (ucred_t *)uc;
1728 if (ucred == NULL) {
1729 ucred = ucred_get(P_MYID);
1731 if (ucred == NULL)
1738 tid64 = ucred_getatid(ucred);
1745 if (ucred_getauid(ucred) == AU_NOAUDITID) {
1753 state->as_info.ai_auid = ucred_getauid(ucred);
1754 state->as_info.ai_asid = ucred_getasid(ucred);
1755 m = *ucred_getamask(ucred);
1770 if ((rc = adt_changeuser(state, ucred_getruid(ucred))) != 0)
1785 state->as_ruid = ucred_getruid(ucred);
1786 state->as_euid = ucred_geteuid(ucred);
1787 state->as_rgid = ucred_getrgid(ucred);
1788 state->as_egid = ucred_getegid(ucred);
1789 state->as_pid = ucred_getpid(ucred);
1790 state->as_label = adt_ucred_label(ucred);
1794 ucred_free(ucred);