/systemd-251/src/shared/ |
D | user-record-nss.c | 322 const struct sgrp *sgrp, in nss_group_to_group_record() argument 334 if (sgrp && !streq_ptr(sgrp->sg_namp, grp->gr_name)) in nss_group_to_group_record() 351 if (sgrp) { in nss_group_to_group_record() 352 if (looks_like_hashed_password(utf8_only(sgrp->sg_passwd))) { in nss_group_to_group_record() 353 g->hashed_password = strv_new(sgrp->sg_passwd); in nss_group_to_group_record() 358 r = strv_extend_strv_utf8_only(&g->members, sgrp->sg_mem, true); in nss_group_to_group_record() 362 r = strv_extend_strv_utf8_only(&g->administrators, sgrp->sg_adm, false); in nss_group_to_group_record() 383 int nss_sgrp_for_group(const struct group *grp, struct sgrp *ret_sgrp, char **ret_buffer) { in nss_sgrp_for_group() 393 struct sgrp sgrp, *result; in nss_sgrp_for_group() local 399 r = getsgnam_r(grp->gr_name, &sgrp, buf, buflen, &result); in nss_sgrp_for_group() [all …]
|
D | user-record-nss.h | 20 int nss_group_to_group_record(const struct group *grp, const struct sgrp *sgrp, GroupRecord **ret); 21 int nss_sgrp_for_group(const struct group *grp, struct sgrp *ret_sgrp, char **ret_buffer);
|
D | userdb.c | 1049 struct sgrp sgrp; in groupdb_iterator_get() local 1057 r = nss_sgrp_for_group(gr, &sgrp, &buffer); in groupdb_iterator_get() 1067 r = nss_group_to_group_record(gr, r >= 0 ? &sgrp : NULL, ret); in groupdb_iterator_get()
|
/systemd-251/src/nss-systemd/ |
D | userdb-glue.c | 414 struct sgrp *sgrp, in nss_pack_group_record_shadow() argument 422 assert(sgrp); in nss_pack_group_record_shadow() 433 *sgrp = (struct sgrp) { in nss_pack_group_record_shadow() 439 sgrp->sg_passwd = stpcpy(sgrp->sg_namp, hr->group_name) + 1; in nss_pack_group_record_shadow() 440 strcpy(sgrp->sg_passwd, hashed); in nss_pack_group_record_shadow() 447 struct sgrp *sgrp, in userdb_getsgnam() argument 454 assert(sgrp); in userdb_getsgnam() 471 r = nss_pack_group_record_shadow(hr, sgrp, buffer, buflen); in userdb_getsgnam()
|
D | userdb-glue.h | 17 int nss_pack_group_record_shadow(GroupRecord *hr, struct sgrp *sgrp, char *buffer,size_t buflen); 27 enum nss_status userdb_getsgnam(const char *name, struct sgrp *sgrp, char *buffer, size_t buflen, i…
|
D | nss-systemd.c | 73 static const struct sgrp root_sgrp = { 85 static const struct sgrp nobody_sgrp = { 255 struct sgrp *dest, in copy_synthesized_sgrp() 256 const struct sgrp *src, in copy_synthesized_sgrp() 517 struct sgrp *sgrp, in _nss_systemd_getsgnam_r() argument 528 assert(sgrp); in _nss_systemd_getsgnam_r() 538 return copy_synthesized_sgrp(sgrp, &root_sgrp, buffer, buflen, errnop); in _nss_systemd_getsgnam_r() 544 return copy_synthesized_sgrp(sgrp, &nobody_sgrp, buffer, buflen, errnop); in _nss_systemd_getsgnam_r() 550 status = userdb_getsgnam(name, sgrp, buffer, buflen, &e); in _nss_systemd_getsgnam_r() 900 struct sgrp *result, in _nss_systemd_getsgent_r()
|
/systemd-251/docs/ |
D | GROUP_RECORD.md | 20 UNIX/glibc NSS `struct group`, or the shadow structure `struct sgrp`'s 51 `struct sgrp`. 55 the `sg_adm` field of `struct sgrp`. 67 `sg_passwd` field of `struct sgrp` (and `gr_passwd` of `struct group` in a 106 ## Mapping to `struct group` and `struct sgrp` 108 When mapping classic UNIX group records (i.e. `struct group` and `struct sgrp`) 117 | `struct sgrp` | `sg_namp` | `regular` | `groupName` | | 118 | `struct sgrp` | `sg_passwd` | `privileged` | `password` | (See notes below) | 119 | `struct sgrp` | `sg_adm` | `regular` | `administrators` | | 120 | `struct sgrp` | `sg_mem` | `regular` | `members` | | [all …]
|
/systemd-251/src/basic/ |
D | nss-util.h | 140 struct sgrp *sgrp, \ 195 struct sgrp *sgrp, \
|
D | user-util.h | 128 int fgetsgent_sane(FILE *stream, struct sgrp **sg); 129 int putsgent_sane(const struct sgrp *sg, FILE *stream);
|
D | user-util.c | 996 int putsgent_sane(const struct sgrp *sg, FILE *stream) { in putsgent_sane() 1054 int fgetsgent_sane(FILE *stream, struct sgrp **sg) { in fgetsgent_sane() 1055 struct sgrp *s; in fgetsgent_sane()
|
/systemd-251/src/sysusers/ |
D | sysusers.c | 349 static int putsgent_with_members(const struct sgrp *sg, FILE *gshadow) { in putsgent_with_members() 375 struct sgrp t; in putsgent_with_members() 786 struct sgrp *sg; in write_temporary_gshadow() 819 struct sgrp n = { in write_temporary_gshadow()
|