Lines Matching refs:shadow_path
520 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()
867 r = write_temporary_shadow(shadow_path, &shadow, &shadow_tmp); in write_files()
889 r = make_backup("/etc/shadow", shadow_path); in write_files()
891 return log_debug_errno(r, "Failed to make backup %s: %m", shadow_path); in write_files()
926 r = rename_and_apply_smack_floor_label(shadow_tmp, shadow_path); in write_files()
929 shadow_tmp, shadow_path); in write_files()