Lines Matching refs:elp

222 static void     kauth_identity_updatecache(struct kauth_identity_extlookup *elp, struct kauth_ident…
1263 kauth_identity_updatecache(struct kauth_identity_extlookup *elp, struct kauth_identity *rkip, uint6… in kauth_identity_updatecache() argument
1277 if (elp->el_flags & (KAUTH_EXTLOOKUP_VALID_PWNAM | KAUTH_EXTLOOKUP_VALID_GRNAM)) { in kauth_identity_updatecache()
1283 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_UID) { in kauth_identity_updatecache()
1287 if ((kip->ki_valid & KI_VALID_UID) && (kip->ki_uid == elp->el_uid)) { in kauth_identity_updatecache()
1288 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_SUPGRPS) { in kauth_identity_updatecache()
1289 assert(elp->el_sup_grp_cnt <= NGROUPS); in kauth_identity_updatecache()
1290 if (elp->el_sup_grp_cnt > NGROUPS) { in kauth_identity_updatecache()
1292 elp->el_sup_grp_cnt, NGROUPS); in kauth_identity_updatecache()
1293 elp->el_sup_grp_cnt = NGROUPS; in kauth_identity_updatecache()
1295 kip->ki_supgrpcnt = elp->el_sup_grp_cnt; in kauth_identity_updatecache()
1296 memcpy(kip->ki_supgrps, elp->el_sup_groups, sizeof(elp->el_sup_groups[0]) * kip->ki_supgrpcnt); in kauth_identity_updatecache()
1298 kip->ki_groups_expiry = (elp->el_member_valid) ? tv.tv_sec + elp->el_member_valid : 0; in kauth_identity_updatecache()
1300 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_UGUID) { in kauth_identity_updatecache()
1301 kip->ki_guid = elp->el_uguid; in kauth_identity_updatecache()
1304 kip->ki_guid_expiry = (elp->el_uguid_valid) ? tv.tv_sec + elp->el_uguid_valid : 0; in kauth_identity_updatecache()
1305 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_USID) { in kauth_identity_updatecache()
1306 kip->ki_ntsid = elp->el_usid; in kauth_identity_updatecache()
1309 kip->ki_ntsid_expiry = (elp->el_usid_valid) ? tv.tv_sec + elp->el_usid_valid : 0; in kauth_identity_updatecache()
1310 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_PWNAM) { in kauth_identity_updatecache()
1334 kip = kauth_identity_alloc(elp->el_uid, KAUTH_GID_NONE, in kauth_identity_updatecache()
1335 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_UGUID) ? &elp->el_uguid : NULL, in kauth_identity_updatecache()
1336 (elp->el_uguid_valid) ? tv.tv_sec + elp->el_uguid_valid : 0, in kauth_identity_updatecache()
1337 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_USID) ? &elp->el_usid : NULL, in kauth_identity_updatecache()
1338 (elp->el_usid_valid) ? tv.tv_sec + elp->el_usid_valid : 0, in kauth_identity_updatecache()
1339 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_SUPGRPS) ? elp->el_sup_grp_cnt : 0, in kauth_identity_updatecache()
1340 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_SUPGRPS) ? elp->el_sup_groups : NULL, in kauth_identity_updatecache()
1341 (elp->el_member_valid) ? tv.tv_sec + elp->el_member_valid : 0, in kauth_identity_updatecache()
1342 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_PWNAM) ? speculative_name : NULL, in kauth_identity_updatecache()
1348 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_PWNAM) { in kauth_identity_updatecache()
1358 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_GID && !(elp->el_flags & KAUTH_EXTLOOKUP_VALID_UID)) { in kauth_identity_updatecache()
1362 if ((kip->ki_valid & KI_VALID_GID) && (kip->ki_gid == elp->el_gid)) { in kauth_identity_updatecache()
1363 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_GGUID) { in kauth_identity_updatecache()
1364 kip->ki_guid = elp->el_gguid; in kauth_identity_updatecache()
1367 kip->ki_guid_expiry = (elp->el_gguid_valid) ? tv.tv_sec + elp->el_gguid_valid : 0; in kauth_identity_updatecache()
1368 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_GSID) { in kauth_identity_updatecache()
1369 kip->ki_ntsid = elp->el_gsid; in kauth_identity_updatecache()
1372 kip->ki_ntsid_expiry = (elp->el_gsid_valid) ? tv.tv_sec + elp->el_gsid_valid : 0; in kauth_identity_updatecache()
1373 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_GRNAM) { in kauth_identity_updatecache()
1397 kip = kauth_identity_alloc(KAUTH_UID_NONE, elp->el_gid, in kauth_identity_updatecache()
1398 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_GGUID) ? &elp->el_gguid : NULL, in kauth_identity_updatecache()
1399 (elp->el_gguid_valid) ? tv.tv_sec + elp->el_gguid_valid : 0, in kauth_identity_updatecache()
1400 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_GSID) ? &elp->el_gsid : NULL, in kauth_identity_updatecache()
1401 (elp->el_gsid_valid) ? tv.tv_sec + elp->el_gsid_valid : 0, in kauth_identity_updatecache()
1402 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_SUPGRPS) ? elp->el_sup_grp_cnt : 0, in kauth_identity_updatecache()
1403 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_SUPGRPS) ? elp->el_sup_groups : NULL, in kauth_identity_updatecache()
1404 (elp->el_member_valid) ? tv.tv_sec + elp->el_member_valid : 0, in kauth_identity_updatecache()
1405 (elp->el_flags & KAUTH_EXTLOOKUP_VALID_GRNAM) ? speculative_name : NULL, in kauth_identity_updatecache()
1411 if (elp->el_flags & KAUTH_EXTLOOKUP_VALID_GRNAM) { in kauth_identity_updatecache()