Lines Matching refs:ki
2329 struct kauth_identity ki;
2348 ki.ki_valid = 0;
2351 error = kauth_identity_find_uid(*(uid_t *)src, &ki, namebuf);
2354 error = kauth_identity_find_gid(*(gid_t *)src, &ki, namebuf);
2357 error = kauth_identity_find_guid((guid_t *)src, &ki, namebuf);
2360 error = kauth_identity_find_ntsid((ntsid_t *)src, &ki, namebuf);
2365 error = kauth_identity_find_nam((char *)src, from, &ki);
2405 if (!expired(&ki)) {
2424 if (ki.ki_valid & to) {
2425 KAUTH_DEBUG("CACHE - found matching entry with valid 0x%08x", ki.ki_valid);
2441 if ((ki.ki_valid & KI_VALID_UID)) {
2442 KAUTH_DEBUG("CACHE - unexpected entry 0x%08x & %x", ki.ki_valid, KI_VALID_GID);
2447 if ((ki.ki_valid & KI_VALID_GID)) {
2448 KAUTH_DEBUG("CACHE - unexpected entry 0x%08x & %x", ki.ki_valid, KI_VALID_UID);
2548 kauth_identity_updatecache(&el, &ki, extend_data);
2554 if (!(ki.ki_valid & to)) {
2567 *(uid_t *)dst = ki.ki_uid;
2570 *(gid_t *)dst = ki.ki_gid;
2573 *(guid_t *)dst = ki.ki_guid;
2576 *(ntsid_t *)dst = ki.ki_ntsid;
2957 struct kauth_identity ki;
2973 ki.ki_valid = 0;
2974 if ((error = kauth_identity_find_guid(guidp, &ki, NULL)) == 0 &&
2975 !kauth_identity_guid_expired(&ki)) {
2976 if (ki.ki_valid & KI_VALID_GID) {
2978 gid = ki.ki_gid;
2981 if (ki.ki_valid & KI_VALID_UID) {