Lines Matching refs:ki

2479 	struct kauth_identity ki;
2498 ki.ki_valid = 0;
2501 error = kauth_identity_find_uid(*(uid_t *)src, &ki, namebuf);
2504 error = kauth_identity_find_gid(*(gid_t *)src, &ki, namebuf);
2507 error = kauth_identity_find_guid((guid_t *)src, &ki, namebuf);
2510 error = kauth_identity_find_ntsid((ntsid_t *)src, &ki, namebuf);
2515 error = kauth_identity_find_nam((char *)src, from, &ki);
2558 if (!expired(&ki)) {
2577 if (ki.ki_valid & to) {
2578 KAUTH_DEBUG("CACHE - found matching entry with valid 0x%08x", ki.ki_valid);
2594 if ((ki.ki_valid & KI_VALID_UID)) {
2595 KAUTH_DEBUG("CACHE - unexpected entry 0x%08x & %x", ki.ki_valid, KI_VALID_GID);
2600 if ((ki.ki_valid & KI_VALID_GID)) {
2601 KAUTH_DEBUG("CACHE - unexpected entry 0x%08x & %x", ki.ki_valid, KI_VALID_UID);
2680 if (ki.ki_valid & KI_VALID_GROUPS) {
2689 el.el_sup_grp_cnt = ki.ki_supgrpcnt;
2691 memcpy(el.el_sup_groups, ki.ki_supgrps, sizeof (el.el_sup_groups[0]) * ki.ki_supgrpcnt);
2724 kauth_identity_updatecache(&el, &ki, extend_data);
2730 if (!(ki.ki_valid & to)) {
2743 *(uid_t *)dst = ki.ki_uid;
2746 *(gid_t *)dst = ki.ki_gid;
2749 *(guid_t *)dst = ki.ki_guid;
2752 *(ntsid_t *)dst = ki.ki_ntsid;
2756 u_int32_t limit = ki.ki_supgrpcnt;
2759 limit = MIN(ki.ki_supgrpcnt, *gp->count);
2763 memcpy(gp->groups, ki.ki_supgrps, sizeof(gid_t) * limit);
3145 struct kauth_identity ki;
3161 ki.ki_valid = 0;
3162 if ((error = kauth_identity_find_guid(guidp, &ki, NULL)) == 0 &&
3163 !kauth_identity_guid_expired(&ki)) {
3164 if (ki.ki_valid & KI_VALID_GID) {
3166 gid = ki.ki_gid;
3169 if (ki.ki_valid & KI_VALID_UID) {