Home
last modified time | relevance | path

Searched refs:GroupRecord (Results 1 – 20 of 20) sorted by relevance

/systemd-251/src/shared/
Dgroup-record.c8 GroupRecord* group_record_new(void) { in group_record_new()
9 GroupRecord *h; in group_record_new()
11 h = new(GroupRecord, 1); in group_record_new()
15 *h = (GroupRecord) { in group_record_new()
25 static GroupRecord *group_record_free(GroupRecord *g) { in group_record_free()
44 DEFINE_TRIVIAL_REF_UNREF_FUNC(GroupRecord, group_record, group_record_free);
49 …hedPassword", _JSON_VARIANT_TYPE_INVALID, json_dispatch_strv, offsetof(GroupRecord, hashed_passwor… in dispatch_privileged()
59 … { "gid", JSON_VARIANT_UNSIGNED, json_dispatch_uid_gid, offsetof(GroupRecord, gid), 0 }, in dispatch_binding()
89 … JSON_VARIANT_UNSIGNED, json_dispatch_uid_gid, offsetof(GroupRecord, gid), … in dispatch_per_machine()
90 … JSON_VARIANT_ARRAY, json_dispatch_user_group_list, offsetof(GroupRecord, members), … in dispatch_per_machine()
[all …]
Dgroup-record.h7 typedef struct GroupRecord { struct
33 } GroupRecord; argument
35 GroupRecord* group_record_new(void);
36 GroupRecord* group_record_ref(GroupRecord *g);
37 GroupRecord* group_record_unref(GroupRecord *g);
39 DEFINE_TRIVIAL_CLEANUP_FUNC(GroupRecord*, group_record_unref);
41 int group_record_load(GroupRecord *h, JsonVariant *v, UserRecordLoadFlags flags);
42 int group_record_build(GroupRecord **ret, ...);
43 int group_record_clone(GroupRecord *g, UserRecordLoadFlags flags, GroupRecord **ret);
45 const char *group_record_group_name_and_realm(GroupRecord *h);
[all …]
Duser-record-nss.h20 int nss_group_to_group_record(const struct group *grp, const struct sgrp *sgrp, GroupRecord **ret);
23 int nss_group_record_by_name(const char *name, bool with_shadow, GroupRecord **ret);
24 int nss_group_record_by_gid(gid_t gid, bool with_shadow, GroupRecord **ret);
Duserdb.h47 int groupdb_by_name(const char *name, UserDBFlags flags, GroupRecord **ret);
48 int groupdb_by_gid(gid_t gid, UserDBFlags flags, GroupRecord **ret);
50 int groupdb_iterator_get(UserDBIterator *iterator, GroupRecord **ret);
Duserdb-dropin.h22 int dropin_group_record_by_name(const char *name, const char *path, UserDBFlags flags, GroupRecord
23 int dropin_group_record_by_gid(gid_t gid, const char *path, UserDBFlags flags, GroupRecord **ret);
Duserdb-dropin.c170 GroupRecord **ret) { in load_group()
173 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in load_group()
248 int dropin_group_record_by_name(const char *name, const char *path, UserDBFlags flags, GroupRecord in dropin_group_record_by_name()
278 int dropin_group_record_by_gid(gid_t gid, const char *path, UserDBFlags flags, GroupRecord **ret) { in dropin_group_record_by_gid()
Duserdb.c47 GroupRecord *found_group; /* when .what == LOOKUP_GROUP */
247 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in userdb_on_query_reply()
523 GroupRecord **ret_group_record, in userdb_process()
877 static int synthetic_root_group_build(GroupRecord **ret) { in synthetic_root_group_build()
885 static int synthetic_nobody_group_build(GroupRecord **ret) { in synthetic_nobody_group_build()
893 int groupdb_by_name(const char *name, UserDBFlags flags, GroupRecord **ret) { in groupdb_by_name()
944 int groupdb_by_gid(gid_t gid, UserDBFlags flags, GroupRecord **ret) { in groupdb_by_gid()
1035 int groupdb_iterator_get(UserDBIterator *iterator, GroupRecord **ret) { in groupdb_iterator_get()
1222 _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; in membershipdb_by_group()
Duser-record-nss.c323 GroupRecord **ret) { in nss_group_to_group_record()
325 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in nss_group_to_group_record()
424 GroupRecord **ret) { in nss_group_record_by_name()
481 GroupRecord **ret) { in nss_group_record_by_gid()
Duser-record-show.h10 void group_record_show(GroupRecord *gr, bool show_full_user_info);
Duser-record-show.c160 _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; in user_record_show()
512 void group_record_show(GroupRecord *gr, bool show_full_user_info) { in group_record_show()
/systemd-251/src/nspawn/
Dnspawn-bind-user.h11 GroupRecord *host_group;
15 GroupRecord *payload_group;
Dnspawn-bind-user.c82 GroupRecord *g, in convert_user()
85 GroupRecord **ret_converted_group) { in convert_user()
87 _cleanup_(group_record_unrefp) GroupRecord *converted_group = NULL; in convert_user()
227 _cleanup_(group_record_unrefp) GroupRecord *g = NULL, *cg = NULL; in bind_user_prepare()
404 … _cleanup_(group_record_unrefp) GroupRecord *stripped_group = NULL, *shadow_group = NULL; in bind_user_setup()
/systemd-251/src/nss-systemd/
Duserdb-glue.c214 GroupRecord *g, in nss_pack_group_record()
283 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in userdb_getgrnam()
350 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in userdb_getgrgid()
413 GroupRecord *hr, in nss_pack_group_record_shadow()
451 _cleanup_(group_record_unrefp) GroupRecord *hr = NULL; in userdb_getsgnam()
Duserdb-glue.h14 int nss_pack_group_record(GroupRecord *g, char **extra_members, struct group *gr, char *buffer, siz…
17 int nss_pack_group_record_shadow(GroupRecord *hr, struct sgrp *sgrp, char *buffer,size_t buflen);
Dnss-systemd.c725 _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; in _nss_systemd_getgrent_r()
904 _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; in _nss_systemd_getsgent_r()
991 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in _nss_systemd_initgroups_dyn()
/systemd-251/src/userdb/
Duserwork.c224 static int build_group_json(Varlink *link, GroupRecord *gr, JsonVariant **ret) { in build_group_json()
225 _cleanup_(group_record_unrefp) GroupRecord *stripped = NULL; in build_group_json()
277 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in vl_method_get_group_record()
309 _cleanup_(group_record_unrefp) GroupRecord *z = NULL; in vl_method_get_group_record()
Duserdbctl.c468 static int show_group(GroupRecord *gr, Table *table) { in show_group()
678 _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; in display_group()
718 _cleanup_(group_record_unrefp) GroupRecord *gr = NULL; in display_group()
/systemd-251/src/home/
Duser-record-util.h10 int group_record_synthesize(GroupRecord *g, UserRecord *u);
Dhomed-varlink.c154 _cleanup_(group_record_unrefp) GroupRecord *g = NULL; in build_group_json()
Duser-record-util.c109 int group_record_synthesize(GroupRecord *g, UserRecord *h) { in group_record_synthesize()