Lines Matching refs:group_path
203 const char *group_path; in load_group_database() local
207 group_path = prefix_roota(arg_root, "/etc/group"); in load_group_database()
208 f = fopen(group_path, "re"); in load_group_database()
658 static int write_temporary_group(const char *group_path, FILE **tmpfile, char **tmpfile_path) { in write_temporary_group() argument
674 r = fopen_temporary_label("/etc/group", group_path, &group, &group_tmp); in write_temporary_group()
676 return log_debug_errno(r, "Failed to open temporary copy of %s: %m", group_path); in write_temporary_group()
678 original = fopen(group_path, "re"); in write_temporary_group()
684 group_path, group_tmp); in write_temporary_group()
696 group_path, gr->gr_name); in write_temporary_group()
701 group_path, gr->gr_gid); in write_temporary_group()
715 return log_debug_errno(r, "Failed to read %s: %m", group_path); in write_temporary_group()
719 return log_debug_errno(errno, "Failed to open %s: %m", group_path); in write_temporary_group()
748 return log_debug_errno(r, "Failed to read %s: %m", group_path); in write_temporary_group()
847 const char *passwd_path, *shadow_path, *group_path, *gshadow_path; in write_files() local
852 group_path = prefix_roota(arg_root, "/etc/group"); in write_files()
855 r = write_temporary_group(group_path, &group, &group_tmp); in write_files()
873 r = make_backup("/etc/group", group_path); in write_files()
875 return log_debug_errno(r, "Failed to make backup %s: %m", group_path); in write_files()
896 r = rename_and_apply_smack_floor_label(group_tmp, group_path); in write_files()
899 group_tmp, group_path); in write_files()