Home
last modified time | relevance | path

Searched refs:shadow_path (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/sysusers/
Dsysusers.c520 static int write_temporary_shadow(const char *shadow_path, FILE **tmpfile, char **tmpfile_path) { in write_temporary_shadow() argument
536 r = fopen_temporary_label("/etc/shadow", shadow_path, &shadow, &shadow_tmp); in write_temporary_shadow()
538 return log_debug_errno(r, "Failed to open temporary copy of %s: %m", shadow_path); in write_temporary_shadow()
542 original = fopen(shadow_path, "re"); in write_temporary_shadow()
548 shadow_path, shadow_tmp); in write_temporary_shadow()
573 return log_debug_errno(r, "Failed to read %s: %m", shadow_path); in write_temporary_shadow()
577 return log_debug_errno(errno, "Failed to open %s: %m", shadow_path); in write_temporary_shadow()
641 return log_debug_errno(r, "Failed to read %s: %m", shadow_path); in write_temporary_shadow()
847 const char *passwd_path, *shadow_path, *group_path, *gshadow_path; in write_files() local
851 shadow_path = prefix_roota(arg_root, "/etc/shadow"); in write_files()
[all …]
/systemd-251/src/firstboot/
Dfirstboot.c795 static int write_root_shadow(const char *shadow_path, const char *hashed_password) { in write_root_shadow() argument
802 r = fopen_temporary_label("/etc/shadow", shadow_path, &shadow, &shadow_tmp); in write_root_shadow()
806 original = fopen(shadow_path, "re"); in write_root_shadow()
857 r = rename_and_apply_smack_floor_label(shadow_tmp, shadow_path); in write_root_shadow()