Lines Matching refs:ruid
1525 adt_newuser(adt_internal_state_t *state, uid_t ruid, au_tid_addr_t *termid)
1530 if (ruid == ADT_NO_AUDIT) {
1537 state->as_info.ai_auid = ruid;
1538 state->as_info.ai_asid = adt_get_unique_id(ruid);
1542 if (adt_get_mask_from_user(ruid, &(state->as_info.ai_mask)))
1561 adt_changeuser(adt_internal_state_t *state, uid_t ruid)
1566 state->as_info.ai_auid = ruid;
1568 state->as_info.ai_asid = adt_get_unique_id(ruid);
1570 if (ruid <= MAXEPHUID) {
1571 if (adt_get_mask_from_user(ruid, &mask))
1577 DPRINTF(("changed mask to %08X/%08X for ruid=%d\n",
1580 ruid));
1588 * "unattributed." If ruid, change the model to session.
1608 uid_t ruid, gid_t rgid, const adt_termid_t *termid,
1622 if (ruid == ADT_NO_CHANGE || euid == ADT_NO_CHANGE ||
1627 if ((rc = adt_newuser(state, ruid,
1639 if (ruid != ADT_NO_CHANGE)
1640 if ((rc = adt_changeuser(state, ruid)) != 0)
1665 if (ruid == ADT_NO_AUDIT) {
1671 if (ruid != ADT_NO_CHANGE)
1672 state->as_ruid = ruid;
1681 if (ruid == ADT_NO_ATTRIB) {