Home
last modified time | relevance | path

Searched refs:pw (Results 1 – 14 of 14) sorted by relevance

/systemd-251/src/basic/
Duser-util.c388 struct passwd pwbuf, *pw = NULL; in uid_to_name() local
395 r = getpwuid_r(uid, &pwbuf, buf, (size_t) bufsize, &pw); in uid_to_name()
396 if (r == 0 && pw) in uid_to_name()
397 return strdup(pw->pw_name); in uid_to_name()
962 int putpwent_sane(const struct passwd *pw, FILE *stream) { in putpwent_sane() argument
963 assert(pw); in putpwent_sane()
967 if (putpwent(pw, stream) != 0) in putpwent_sane()
1008 int fgetpwent_sane(FILE *stream, struct passwd **pw) { in fgetpwent_sane() argument
1011 assert(pw); in fgetpwent_sane()
1019 *pw = p; in fgetpwent_sane()
Duser-util.h121 int fgetpwent_sane(FILE *stream, struct passwd **pw);
124 int putpwent_sane(const struct passwd *pw, FILE *stream);
/systemd-251/src/tmpfiles/
Doffline-passwd.c51 struct passwd *pw; in populate_uid_cache() local
52 while ((r = fgetpwent_sane(f, &pw)) > 0) { in populate_uid_cache()
55 n = strdup(pw->pw_name); in populate_uid_cache()
59 r = hashmap_put(cache, n, UID_TO_PTR(pw->pw_uid)); in populate_uid_cache()
/systemd-251/src/sysusers/
Dsysusers.c156 struct passwd *pw; in load_user_database() local
176 while ((r = fgetpwent_sane(f, &pw)) > 0) { in load_user_database()
180 n = strdup(pw->pw_name); in load_user_database()
190 k = hashmap_put(database_by_username, n, UID_TO_PTR(pw->pw_uid)); in load_user_database()
194 q = hashmap_put(database_by_uid, UID_TO_PTR(pw->pw_uid), n); in load_user_database()
400 struct passwd *pw = NULL; in write_temporary_passwd() local
428 while ((r = fgetpwent_sane(original, &pw)) > 0) { in write_temporary_passwd()
429 i = ordered_hashmap_get(users, pw->pw_name); in write_temporary_passwd()
433 passwd_path, pw->pw_name); in write_temporary_passwd()
435 if (ordered_hashmap_contains(todo_uids, UID_TO_PTR(pw->pw_uid))) in write_temporary_passwd()
[all …]
/systemd-251/src/home/
Dhomework-cifs.c55 STRV_FOREACH(pw, h->password) { in home_setup_cifs()
70 *pw); in home_setup_cifs()
110 if (pw[1]) in home_setup_cifs()
111 …fo("CIFS mount failed with password #%zu, trying next password.", (size_t) (pw - h->password) + 1); in home_setup_cifs()
Dhomed-manager-bus.c307 struct passwd *pw; in validate_and_allocate_home() local
325 pw = getpwnam(hr->user_name); in validate_and_allocate_home()
326 if (pw) in validate_and_allocate_home()
366 pw = getpwuid(hr->uid); in validate_and_allocate_home()
367 if (pw) in validate_and_allocate_home()
368 …N_USE, "Specified UID " UID_FMT " already in use by NSS user %s, refusing.", hr->uid, pw->pw_name); in validate_and_allocate_home()
Dhomed-manager.c577 struct passwd *pw; in manager_acquire_uid() local
621 pw = getpwuid(candidate); in manager_acquire_uid()
622 if (pw) { in manager_acquire_uid()
624 candidate, pw->pw_name); in manager_acquire_uid()
/systemd-251/src/nspawn/
Dnspawn-bind-user.c31 struct passwd *pw; in check_etc_passwd_collisions() local
33 r = fgetpwent_sane(f, &pw); in check_etc_passwd_collisions()
39 if (name && streq_ptr(pw->pw_name, name)) in check_etc_passwd_collisions()
41 if (uid_is_valid(uid) && pw->pw_uid == uid) in check_etc_passwd_collisions()
/systemd-251/src/shared/
Duserdb.c773 struct passwd *pw; in userdb_iterator_get() local
778 pw = getpwent(); in userdb_iterator_get()
779 if (pw) { in userdb_iterator_get()
784 if (streq_ptr(pw->pw_name, "root")) in userdb_iterator_get()
786 if (pw->pw_uid == UID_NOBODY) in userdb_iterator_get()
790 r = nss_spwd_for_passwd(pw, &spwd, &buffer); in userdb_iterator_get()
792 … log_debug_errno(r, "Failed to acquire shadow entry for user %s, ignoring: %m", pw->pw_name); in userdb_iterator_get()
800 r = nss_passwd_to_user_record(pw, r >= 0 ? &spwd : NULL, ret); in userdb_iterator_get()
/systemd-251/src/login/
Dlogind-dbus.c1241 struct passwd *pw; in method_set_user_linger() local
1271 pw = getpwuid(uid); in method_set_user_linger()
1272 if (!pw) in method_set_user_linger()
1295 cc = cescape(pw->pw_name); in method_set_user_linger()
/systemd-251/
DTODO214 machine id, root pw, rootfs uuid, resume partition uuid, and place next to
616 - make systemd-cryptsetup acquire pw via creds logic
617 - make PAMName= acquire pw via creds logic
645 allow plymouth to abort the waiting and enter pw instead
1602 unlock the volume in order to create the first user and add the first pw.
/systemd-251/hwdb.d/
Dusb.ids20449 60b3 calc.pw password generator device (standard)
20450 60b4 calc.pw password generator device (enhanced)
D20-usb-vendor-model.hwdb61281 ID_MODEL_FROM_DATABASE=calc.pw password generator device (standard)
61284 ID_MODEL_FROM_DATABASE=calc.pw password generator device (enhanced)
/systemd-251/test/fuzz/fuzz-unit-file/
Doss-fuzz-69773pw%pours=%ps=%pw%pours=%ps=%pwaa[Unt=%p=��pours=%ps=%pAaa!Unt=%pourcePath=s=%pwa=%p=ou[waa[Unt=%p=…