Home
last modified time | relevance | path

Searched refs:gr (Results 1 – 25 of 26) sorted by relevance

12

/systemd-251/src/shared/
Duser-record-show.c160 _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; in user_record_show()
162 r = groupdb_by_gid(hr->gid, 0, &gr); in user_record_show()
167 printf(" GID: " GID_FMT " (%s)\n", hr->gid, gr->group_name); in user_record_show()
512 void group_record_show(GroupRecord *gr, bool show_full_user_info) { in group_record_show() argument
516 group_record_group_name_and_realm(gr)); in group_record_show()
518 printf(" Disposition: %s\n", user_disposition_to_string(group_record_disposition(gr))); in group_record_show()
520 if (gr->last_change_usec != USEC_INFINITY) in group_record_show()
521 printf(" Last Change: %s\n", FORMAT_TIMESTAMP(gr->last_change_usec)); in group_record_show()
523 if (gid_is_valid(gr->gid)) in group_record_show()
524 printf(" GID: " GID_FMT "\n", gr->gid); in group_record_show()
[all …]
Duserdb.c1042 struct group *gr; in groupdb_iterator_get() local
1045 gr = getgrent(); in groupdb_iterator_get()
1046 if (gr) { in groupdb_iterator_get()
1051 if (streq_ptr(gr->gr_name, "root")) in groupdb_iterator_get()
1053 if (gr->gr_gid == GID_NOBODY) in groupdb_iterator_get()
1057 r = nss_sgrp_for_group(gr, &sgrp, &buffer); in groupdb_iterator_get()
1059 … log_debug_errno(r, "Failed to acquire shadow entry for group %s, ignoring: %m", gr->gr_name); in groupdb_iterator_get()
1067 r = nss_group_to_group_record(gr, r >= 0 ? &sgrp : NULL, ret); in groupdb_iterator_get()
1222 _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; in membershipdb_by_group()
1229 (void) nss_group_record_by_name(name, false, &gr); in membershipdb_by_group()
[all …]
Duser-record-show.h10 void group_record_show(GroupRecord *gr, bool show_full_user_info);
/systemd-251/src/test/
Dtest-nss-users.c35 static void print_struct_group(const struct group *gr) { in print_struct_group() argument
39 gr->gr_name, gr->gr_gid); in print_struct_group()
40 log_info(" passwd=\"%s\"", gr->gr_passwd); in print_struct_group()
42 assert_se(members = strv_join(gr->gr_mem, ", ")); in print_struct_group()
80 struct group gr; in test_getgrnam_r() local
90 status = f(name, &gr, buffer, sizeof buffer, &errno1); in test_getgrnam_r()
96 print_struct_group(&gr); in test_getgrnam_r()
132 struct group gr; in test_getgrgid_r() local
142 status = f(gid, &gr, buffer, sizeof buffer, &errno1); in test_getgrgid_r()
148 print_struct_group(&gr); in test_getgrgid_r()
/systemd-251/src/nss-systemd/
Dnss-systemd.c428 struct group *gr, in _nss_systemd_getgrnam_r() argument
439 assert(gr); in _nss_systemd_getgrnam_r()
449 return copy_synthesized_group(gr, &root_group, buffer, buflen, errnop); in _nss_systemd_getgrnam_r()
455 return copy_synthesized_group(gr, &nobody_group, buffer, buflen, errnop); in _nss_systemd_getgrnam_r()
461 status = userdb_getgrnam(name, gr, buffer, buflen, &e); in _nss_systemd_getgrnam_r()
473 struct group *gr, in _nss_systemd_getgrgid_r() argument
483 assert(gr); in _nss_systemd_getgrgid_r()
493 return copy_synthesized_group(gr, &root_group, buffer, buflen, errnop); in _nss_systemd_getgrgid_r()
499 return copy_synthesized_group(gr, &nobody_group, buffer, buflen, errnop); in _nss_systemd_getgrgid_r()
505 status = userdb_getgrgid(gid, gr, buffer, buflen, &e); in _nss_systemd_getgrgid_r()
[all …]
Duserdb-glue.c216 struct group *gr, in nss_pack_group_record() argument
224 assert(gr); in nss_pack_group_record()
266 *gr = (struct group) { in nss_pack_group_record()
278 struct group *gr, in userdb_getgrnam() argument
287 assert(gr); in userdb_getgrnam()
333 r = nss_pack_group_record(g, members, gr, buffer, buflen); in userdb_getgrnam()
344 struct group *gr, in userdb_getgrgid() argument
355 assert(gr); in userdb_getgrgid()
403 r = nss_pack_group_record(g, members, gr, buffer, buflen); in userdb_getgrgid()
Duserdb-glue.h14 int nss_pack_group_record(GroupRecord *g, char **extra_members, struct group *gr, char *buffer, siz…
24 enum nss_status userdb_getgrnam(const char *name, struct group *gr, char *buffer, size_t buflen, in…
25 enum nss_status userdb_getgrgid(gid_t gid, struct group *gr, char *buffer, size_t buflen, int *errn…
/systemd-251/src/userdb/
Duserdbctl.c468 static int show_group(GroupRecord *gr, Table *table) { in show_group() argument
471 assert(gr); in show_group()
478 if (!gid_is_valid(gr->gid)) in show_group()
481 m = strv_join(gr->members, ","); in show_group()
486 gr->group_name, in show_group()
487 gr->gid, in show_group()
493 json_variant_dump(gr->json, arg_json_format_flags, NULL, 0); in show_group()
497 group_record_show(gr, true); in show_group()
499 if (gr->incomplete) { in show_group()
501 … rights to acquire privileged fields of group record of '%s', output incomplete.", gr->group_name); in show_group()
[all …]
Duserwork.c224 static int build_group_json(Varlink *link, GroupRecord *gr, JsonVariant **ret) { in build_group_json() argument
232 assert(gr); in build_group_json()
248 r = group_record_clone(gr, flags, &stripped); in build_group_json()
253 gr->incomplete || in build_group_json()
254 (FLAGS_SET(gr->mask, USER_RECORD_PRIVILEGED) && in build_group_json()
257 v = json_variant_ref(gr->json); in build_group_json()
/systemd-251/src/sysusers/
Dsysusers.c204 struct group *gr; in load_group_database() local
224 while ((r = fgetgrent_sane(f, &gr)) > 0) { in load_group_database()
228 n = strdup(gr->gr_name); in load_group_database()
238 k = hashmap_put(database_by_groupname, n, GID_TO_PTR(gr->gr_gid)); in load_group_database()
242 q = hashmap_put(database_by_gid, GID_TO_PTR(gr->gr_gid), n); in load_group_database()
305 static int putgrent_with_members(const struct group *gr, FILE *group) { in putgrent_with_members() argument
308 assert(gr); in putgrent_with_members()
311 a = ordered_hashmap_get(members, gr->gr_name); in putgrent_with_members()
316 l = strv_copy(gr->gr_mem); in putgrent_with_members()
337 t = *gr; in putgrent_with_members()
[all …]
/systemd-251/src/basic/
Duser-util.c432 struct group grbuf, *gr = NULL; in gid_to_name() local
439 r = getgrgid_r(gid, &grbuf, buf, (size_t) bufsize, &gr); in gid_to_name()
440 if (r == 0 && gr) in gid_to_name()
441 return strdup(gr->gr_name); in gid_to_name()
984 int putgrent_sane(const struct group *gr, FILE *stream) { in putgrent_sane() argument
985 assert(gr); in putgrent_sane()
989 if (putgrent(gr, stream) != 0) in putgrent_sane()
1038 int fgetgrent_sane(FILE *stream, struct group **gr) { in fgetgrent_sane() argument
1041 assert(gr); in fgetgrent_sane()
1049 *gr = g; in fgetgrent_sane()
Dnss-util.h147 struct group *gr, \
152 struct group *gr, \
266 struct group *gr,
271 struct group *gr,
Duser-util.h123 int fgetgrent_sane(FILE *stream, struct group **gr);
126 int putgrent_sane(const struct group *gr, FILE *stream);
/systemd-251/src/tmpfiles/
Doffline-passwd.c89 struct group *gr; in populate_gid_cache() local
90 while ((r = fgetgrent_sane(f, &gr)) > 0) { in populate_gid_cache()
93 n = strdup(gr->gr_name); in populate_gid_cache()
97 r = hashmap_put(cache, n, GID_TO_PTR(gr->gr_gid)); in populate_gid_cache()
/systemd-251/src/nspawn/
Dnspawn-bind-user.c64 struct group *gr; in check_etc_group_collisions() local
66 r = fgetgrent_sane(f, &gr); in check_etc_group_collisions()
72 if (name && streq_ptr(gr->gr_name, name)) in check_etc_group_collisions()
74 if (gid_is_valid(gid) && gr->gr_gid == gid) in check_etc_group_collisions()
/systemd-251/src/home/
Dhomed-manager-bus.c308 struct group *gr; in validate_and_allocate_home() local
329 gr = getgrnam(hr->user_name); in validate_and_allocate_home()
330 if (gr) in validate_and_allocate_home()
370 gr = getgrgid(hr->uid); in validate_and_allocate_home()
371 if (gr) in validate_and_allocate_home()
372 …Specified UID " UID_FMT " already in use as GID by NSS group %s, refusing.", hr->uid, gr->gr_name); in validate_and_allocate_home()
Dhomed-manager.c578 struct group *gr; in manager_acquire_uid() local
628 gr = getgrgid((gid_t) candidate); in manager_acquire_uid()
629 if (gr) { in manager_acquire_uid()
631 candidate, gr->gr_name); in manager_acquire_uid()
/systemd-251/hwdb.d/
Dparse_hwdb.py224 gr = grammars.get(prefix)
225 if gr:
231 gr.parseString(rest)
Dusb.ids16696 beba serasidis.gr STM32 HID Bootloader
/systemd-251/src/locale/
Dkbd-model-map61 gr gr,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
/systemd-251/test/test-keymap-util/
Dkbd-model-map61 gr gr,us pc105 - terminate:ctrl_alt_bksp,grp:shifts_toggle,grp_led:scroll
/systemd-251/src/nss-mymachines/
Dnss-mymachines.c426 struct group *gr, in _nss_mymachines_getgrnam_r() argument
435 struct group *gr, in _nss_mymachines_getgrgid_r() argument
/systemd-251/docs/
Dstyle.css240 .highlight .gr {
/systemd-251/src/udev/
Dudev-rules.c2026 const char *gr = group; in udev_rule_apply_token_to_event() local
2041 r = get_group_creds(&gr, &event->gid, USER_CREDS_ALLOW_MISSING); in udev_rule_apply_token_to_event()
/systemd-251/po/
Del.po12 "Language-Team: team@lists.gnome.gr\n"

12