Home
last modified time | relevance | path

Searched refs:sgrp (Results 1 – 11 of 11) sorted by relevance

/systemd-251/src/shared/
Duser-record-nss.c322 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 …]
Duser-record-nss.h20 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);
Duserdb.c1049 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/
Duserdb-glue.c414 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()
Duserdb-glue.h17 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…
Dnss-systemd.c73 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/
DGROUP_RECORD.md20 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/
Dnss-util.h140 struct sgrp *sgrp, \
195 struct sgrp *sgrp, \
Duser-util.h128 int fgetsgent_sane(FILE *stream, struct sgrp **sg);
129 int putsgent_sane(const struct sgrp *sg, FILE *stream);
Duser-util.c996 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/
Dsysusers.c349 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()