Searched refs:candidate (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/core/ |
D | dynamic-user.c | 215 uid_t candidate; in pick_uid() local 235 candidate = st.st_uid; in pick_uid() 242 candidate = UID_CLAMP_INTO_RANGE(siphash24(name, strlen(name), hash_key)); in pick_uid() 251 random_bytes(&candidate, sizeof(candidate)); in pick_uid() 252 candidate = UID_CLAMP_INTO_RANGE(candidate); in pick_uid() 260 if (!uid_is_dynamic(candidate)) in pick_uid() 263 xsprintf(lock_path, "/run/systemd/dynamic-uid/" UID_FMT, candidate); in pick_uid() 291 if (getpwuid(candidate) || in pick_uid() 292 getgrgid((gid_t) candidate) || in pick_uid() 293 search_ipc(candidate, (gid_t) candidate) != 0) { in pick_uid() [all …]
|
D | service.c | 1447 Unit *candidate = NULL, *other; in service_get_triggering_service() local 1459 if (candidate) in service_get_triggering_service() 1461 candidate = other; in service_get_triggering_service() 1465 if (candidate) in service_get_triggering_service() 1467 candidate = other; in service_get_triggering_service() 1470 return SERVICE(candidate); in service_get_triggering_service() 1474 candidate->id, other->id); in service_get_triggering_service()
|
/systemd-251/src/shared/ |
D | uid-range.c | 150 uid_t closest = UID_INVALID, candidate; in uid_range_next_lower() local 158 candidate = *uid - 1; in uid_range_next_lower() 166 if (candidate >= begin && candidate <= end) { in uid_range_next_lower() 167 *uid = candidate; in uid_range_next_lower() 171 if (end < candidate) in uid_range_next_lower()
|
/systemd-251/src/home/ |
D | homed-manager.c | 579 uid_t candidate; in manager_acquire_uid() local 593 candidate = start_uid; in manager_acquire_uid() 602 … candidate = UID_CLAMP_INTO_HOME_RANGE(siphash24(user_name, strlen(user_name), hash_key)); in manager_acquire_uid() 606 random_bytes(&candidate, sizeof(candidate)); in manager_acquire_uid() 607 candidate = UID_CLAMP_INTO_HOME_RANGE(candidate); in manager_acquire_uid() 614 other = hashmap_get(m->homes_by_uid, UID_TO_PTR(candidate)); in manager_acquire_uid() 617 candidate, other->user_name); in manager_acquire_uid() 621 pw = getpwuid(candidate); in manager_acquire_uid() 624 candidate, pw->pw_name); in manager_acquire_uid() 628 gr = getgrgid((gid_t) candidate); in manager_acquire_uid() [all …]
|
/systemd-251/src/sysupdate/ |
D | sysupdate.c | 61 UpdateSet *newest_installed, *candidate; member 334 c->candidate = us; in context_discover_update_sets_by_flag() 338 …if (c->newest_installed && c->candidate && strverscmp_improved(c->newest_installed->version, c->ca… in context_discover_update_sets_by_flag() 339 c->candidate = NULL; in context_discover_update_sets_by_flag() 759 if (!c->candidate) { in context_apply() 768 us = c->candidate; in context_apply() 944 if (!context->candidate) { in verb_check_new() 949 puts(context->candidate->version); in verb_check_new()
|
/systemd-251/src/nspawn/ |
D | nspawn.c | 4045 uid_t candidate; in uid_shift_pick() local 4053 candidate = *shift; in uid_shift_pick() 4064 if (candidate < CONTAINER_UID_BASE_MIN || candidate > CONTAINER_UID_BASE_MAX) in uid_shift_pick() 4066 if ((candidate & UINT32_C(0xFFFF)) != 0) in uid_shift_pick() 4069 xsprintf(lock_path, "/run/systemd/nspawn-uid/" UID_FMT, candidate); in uid_shift_pick() 4077 if (getpwuid(candidate)) in uid_shift_pick() 4079 if (getpwuid(candidate + UINT32_C(0xFFFE))) in uid_shift_pick() 4081 if (getgrgid(candidate)) in uid_shift_pick() 4083 if (getgrgid(candidate + UINT32_C(0xFFFE))) in uid_shift_pick() 4088 *shift = candidate; in uid_shift_pick() [all …]
|
/systemd-251/ |
D | TODO | 92 container managers find it. the ~/.identity file is also a candidate for a
|