Lines Matching refs:result

400 	sid2pid_t	*result;  in kidmap_cache_lookup_uidbysid()  local
412 result = avl_find(&sid2pid_hb->tree, &entry, &where); in kidmap_cache_lookup_uidbysid()
413 if (result != NULL) { in kidmap_cache_lookup_uidbysid()
414 list_move(&sid2pid_hb->head, result); in kidmap_cache_lookup_uidbysid()
415 if (result->uid != UNDEF_UID && result->uid_ttl > now) { in kidmap_cache_lookup_uidbysid()
416 *uid = result->uid; in kidmap_cache_lookup_uidbysid()
432 sid2pid_t *result; in kidmap_cache_lookup_gidbysid() local
444 result = avl_find(&sid2pid_hb->tree, &entry, &where); in kidmap_cache_lookup_gidbysid()
445 if (result != NULL) { in kidmap_cache_lookup_gidbysid()
446 list_move(&sid2pid_hb->head, result); in kidmap_cache_lookup_gidbysid()
447 if (result->gid != UNDEF_GID && result->gid_ttl > now) { in kidmap_cache_lookup_gidbysid()
448 *gid = result->gid; in kidmap_cache_lookup_gidbysid()
464 sid2pid_t *result; in kidmap_cache_lookup_pidbysid() local
476 result = avl_find(&sid2pid_hb->tree, &entry, &where); in kidmap_cache_lookup_pidbysid()
477 if (result != NULL) { in kidmap_cache_lookup_pidbysid()
478 list_move(&sid2pid_hb->head, result); in kidmap_cache_lookup_pidbysid()
479 if (result->is_user != UNDEF_ISUSER) { in kidmap_cache_lookup_pidbysid()
480 if (result->is_user && result->uid_ttl > now) { in kidmap_cache_lookup_pidbysid()
481 *pid = result->uid; in kidmap_cache_lookup_pidbysid()
482 *is_user = result->is_user; in kidmap_cache_lookup_pidbysid()
484 } else if (!result->is_user && result->gid_ttl > now) { in kidmap_cache_lookup_pidbysid()
485 *pid = result->gid; in kidmap_cache_lookup_pidbysid()
486 *is_user = result->is_user; in kidmap_cache_lookup_pidbysid()
504 pid2sid_t *result; in kidmap_cache_lookup_sidbyuid() local
515 result = avl_find(&uid2sid_hb->tree, &entry, &where); in kidmap_cache_lookup_sidbyuid()
516 if (result != NULL) { in kidmap_cache_lookup_sidbyuid()
517 list_move(&uid2sid_hb->head, result); in kidmap_cache_lookup_sidbyuid()
518 if (result->ttl > now) { in kidmap_cache_lookup_sidbyuid()
519 *sid_prefix = result->sid_prefix; in kidmap_cache_lookup_sidbyuid()
520 *rid = result->rid; in kidmap_cache_lookup_sidbyuid()
536 pid2sid_t *result; in kidmap_cache_lookup_sidbygid() local
547 result = avl_find(&gid2sid_hb->tree, &entry, &where); in kidmap_cache_lookup_sidbygid()
548 if (result != NULL) { in kidmap_cache_lookup_sidbygid()
549 list_move(&gid2sid_hb->head, result); in kidmap_cache_lookup_sidbygid()
550 if (result->ttl > now) { in kidmap_cache_lookup_sidbygid()
551 *sid_prefix = result->sid_prefix; in kidmap_cache_lookup_sidbygid()
552 *rid = result->rid; in kidmap_cache_lookup_sidbygid()
575 sid2pid_t *result; in kidmap_cache_add_sid2uid() local
585 result = avl_find(&sid2pid_hb->tree, &find, &where); in kidmap_cache_add_sid2uid()
586 if (result) { in kidmap_cache_add_sid2uid()
587 if (result->uid == UNDEF_UID) in kidmap_cache_add_sid2uid()
589 result->uid = uid; in kidmap_cache_add_sid2uid()
590 result->uid_ttl = ttl; in kidmap_cache_add_sid2uid()
619 pid2sid_t *result; in kidmap_cache_add_sid2uid() local
628 result = avl_find(&uid2sid_hb->tree, &find, &where); in kidmap_cache_add_sid2uid()
629 if (result) { in kidmap_cache_add_sid2uid()
630 result->sid_prefix = sid_prefix; in kidmap_cache_add_sid2uid()
631 result->rid = rid; in kidmap_cache_add_sid2uid()
632 result->ttl = ttl; in kidmap_cache_add_sid2uid()
668 sid2pid_t *result; in kidmap_cache_add_sid2gid() local
678 result = avl_find(&sid2pid_hb->tree, &find, &where); in kidmap_cache_add_sid2gid()
679 if (result) { in kidmap_cache_add_sid2gid()
680 if (result->gid == UNDEF_GID) in kidmap_cache_add_sid2gid()
682 result->gid = gid; in kidmap_cache_add_sid2gid()
683 result->gid_ttl = ttl; in kidmap_cache_add_sid2gid()
712 pid2sid_t *result; in kidmap_cache_add_sid2gid() local
721 result = avl_find(&gid2sid_hb->tree, &find, &where); in kidmap_cache_add_sid2gid()
722 if (result) { in kidmap_cache_add_sid2gid()
723 result->sid_prefix = sid_prefix; in kidmap_cache_add_sid2gid()
724 result->rid = rid; in kidmap_cache_add_sid2gid()
725 result->ttl = ttl; in kidmap_cache_add_sid2gid()
760 sid2pid_t *result; in kidmap_cache_add_sid2pid() local
770 result = avl_find(&sid2pid_hb->tree, &find, &where); in kidmap_cache_add_sid2pid()
771 if (result) { in kidmap_cache_add_sid2pid()
772 if (result->is_user == UNDEF_ISUSER) in kidmap_cache_add_sid2pid()
774 result->is_user = is_user; in kidmap_cache_add_sid2pid()
776 if (result->uid == UNDEF_UID) in kidmap_cache_add_sid2pid()
778 result->uid = pid; in kidmap_cache_add_sid2pid()
779 result->uid_ttl = ttl; in kidmap_cache_add_sid2pid()
781 if (result->gid == UNDEF_GID) in kidmap_cache_add_sid2pid()
783 result->gid = pid; in kidmap_cache_add_sid2pid()
784 result->gid_ttl = ttl; in kidmap_cache_add_sid2pid()
823 pid2sid_t *result; in kidmap_cache_add_sid2pid() local
834 result = avl_find(&uid2sid_hb->tree, &find, &where); in kidmap_cache_add_sid2pid()
835 if (result) { in kidmap_cache_add_sid2pid()
836 result->sid_prefix = sid_prefix; in kidmap_cache_add_sid2pid()
837 result->rid = rid; in kidmap_cache_add_sid2pid()
838 result->ttl = ttl; in kidmap_cache_add_sid2pid()
865 result = avl_find(&gid2sid_hb->tree, &find, &where); in kidmap_cache_add_sid2pid()
866 if (result) { in kidmap_cache_add_sid2pid()
867 result->sid_prefix = sid_prefix; in kidmap_cache_add_sid2pid()
868 result->rid = rid; in kidmap_cache_add_sid2pid()
869 result->ttl = ttl; in kidmap_cache_add_sid2pid()
967 sid_prefix_node_t *result; in kidmap_find_sid_prefix() local
978 result = avl_find(&kidmap_sid_prefix_store->tree, &find, &where); in kidmap_find_sid_prefix()
980 if (result) { in kidmap_find_sid_prefix()
982 return (result->sid_prefix); in kidmap_find_sid_prefix()
993 result = avl_find(&kidmap_sid_prefix_store->tree, in kidmap_find_sid_prefix()
995 if (result) { in kidmap_find_sid_prefix()
997 return (result->sid_prefix); in kidmap_find_sid_prefix()