/systemd-251/src/test/ |
D | test-nss-users.c | 26 static void print_struct_passwd(const struct passwd *pwd) { in print_struct_passwd() argument 28 pwd->pw_name, pwd->pw_uid, pwd->pw_gid); in print_struct_passwd() 29 log_info(" passwd=\"%s\"", pwd->pw_passwd); in print_struct_passwd() 30 log_info(" gecos=\"%s\"", pwd->pw_gecos); in print_struct_passwd() 31 log_info(" dir=\"%s\"", pwd->pw_dir); in print_struct_passwd() 32 log_info(" shell=\"%s\"", pwd->pw_shell); in print_struct_passwd() 54 struct passwd pwd; in test_getpwnam_r() local 64 status = f(name, &pwd, buffer, sizeof buffer, &errno1); in test_getpwnam_r() 70 print_struct_passwd(&pwd); in test_getpwnam_r() 106 struct passwd pwd; in test_getpwuid_r() local [all …]
|
D | test-fs-util.c | 415 _cleanup_free_ char *r1 = NULL, *r2 = NULL, *pwd = NULL; in TEST() local 433 assert_se(safe_getcwd(&pwd) >= 0); in TEST() 441 assert_se(chdir(pwd) >= 0); in TEST()
|
/systemd-251/src/nss-systemd/ |
D | userdb-glue.c | 25 struct passwd *pwd, in nss_pack_user_record() argument 33 assert(pwd); in nss_pack_user_record() 52 *pwd = (struct passwd) { in nss_pack_user_record() 60 pwd->pw_passwd = stpcpy(pwd->pw_name, hr->user_name) + 1; in nss_pack_user_record() 61 pwd->pw_gecos = stpcpy(pwd->pw_passwd, PASSWORD_SEE_SHADOW) + 1; in nss_pack_user_record() 62 pwd->pw_dir = stpcpy(pwd->pw_gecos, rn) + 1; in nss_pack_user_record() 63 pwd->pw_shell = stpcpy(pwd->pw_dir, hd) + 1; in nss_pack_user_record() 64 strcpy(pwd->pw_shell, shell); in nss_pack_user_record() 71 struct passwd *pwd, in userdb_getpwnam() argument 78 assert(pwd); in userdb_getpwnam() [all …]
|
D | userdb-glue.h | 13 int nss_pack_user_record(UserRecord *hr, struct passwd *pwd, char *buffer, size_t buflen); 19 enum nss_status userdb_getpwnam(const char *name, struct passwd *pwd, char *buffer, size_t buflen, … 20 enum nss_status userdb_getpwuid(uid_t uid, struct passwd *pwd, char *buffer, size_t buflen, int *er…
|
D | nss-systemd.c | 289 struct passwd *pwd, in _nss_systemd_getpwnam_r() argument 300 assert(pwd); in _nss_systemd_getpwnam_r() 313 return copy_synthesized_passwd(pwd, &root_passwd, buffer, buflen, errnop); in _nss_systemd_getpwnam_r() 319 return copy_synthesized_passwd(pwd, &nobody_passwd, buffer, buflen, errnop); in _nss_systemd_getpwnam_r() 325 status = userdb_getpwnam(name, pwd, buffer, buflen, &e); in _nss_systemd_getpwnam_r() 337 struct passwd *pwd, in _nss_systemd_getpwuid_r() argument 347 assert(pwd); in _nss_systemd_getpwuid_r() 357 return copy_synthesized_passwd(pwd, &root_passwd, buffer, buflen, errnop); in _nss_systemd_getpwuid_r() 363 return copy_synthesized_passwd(pwd, &nobody_passwd, buffer, buflen, errnop); in _nss_systemd_getpwuid_r() 369 status = userdb_getpwuid(uid, pwd, buffer, buflen, &e); in _nss_systemd_getpwuid_r()
|
/systemd-251/src/shared/ |
D | user-record-nss.c | 39 const struct passwd *pwd, in nss_passwd_to_user_record() argument 46 assert(pwd); in nss_passwd_to_user_record() 49 if (isempty(pwd->pw_name)) in nss_passwd_to_user_record() 52 if (spwd && !streq_ptr(spwd->sp_namp, pwd->pw_name)) in nss_passwd_to_user_record() 59 r = free_and_strdup(&hr->user_name, pwd->pw_name); in nss_passwd_to_user_record() 67 if (isempty(pwd->pw_gecos) || streq_ptr(pwd->pw_gecos, hr->user_name)) in nss_passwd_to_user_record() 69 else if (valid_gecos(pwd->pw_gecos)) { in nss_passwd_to_user_record() 70 r = free_and_strdup(&hr->real_name, pwd->pw_gecos); in nss_passwd_to_user_record() 76 mangled = mangle_gecos(pwd->pw_gecos); in nss_passwd_to_user_record() 83 r = free_and_strdup(&hr->home_directory, utf8_only(empty_to_null(pwd->pw_dir))); in nss_passwd_to_user_record() [all …]
|
D | user-record-nss.h | 14 int nss_passwd_to_user_record(const struct passwd *pwd, const struct spwd *spwd, UserRecord **ret); 15 int nss_spwd_for_passwd(const struct passwd *pwd, struct spwd *ret_spwd, char **ret_buffer);
|
/systemd-251/src/basic/ |
D | nss-util.h | 121 struct passwd *pwd, \ 126 struct passwd *pwd, \ 255 struct passwd *pwd, 260 struct passwd *pwd,
|
/systemd-251/test/ |
D | test-systemd-tmpfiles.py | 14 import pwd 104 puser = pwd.getpwuid(os.getuid() if user else 0)
|
/systemd-251/src/nss-mymachines/ |
D | nss-mymachines.c | 408 struct passwd *pwd, in _nss_mymachines_getpwnam_r() argument 417 struct passwd *pwd, in _nss_mymachines_getpwuid_r() argument
|
/systemd-251/docs/ |
D | HACKING.md | 189 $(pwd)=/root/src,\\ 190 $(pwd)/mkosi.builddir=/root/build,\\ 191 $(pwd)/mkosi.includedir=/usr/include,\\ 192 $(pwd)/mkosi.installdir=/root/dest\\
|
D | CREDENTIALS.md | 199 systemd-run -P --wait -p LoadCredentialEncrypted=foobar:$(pwd)/ciphertext.cred systemd-creds cat fo…
|