Home
last modified time | relevance | path

Searched refs:gids (Results 1 – 9 of 9) sorted by relevance

/systemd-251/src/nspawn/
Dnspawn-setuid.c94 _cleanup_free_ gid_t *gids = NULL; in change_uid_gid() local
221 if (!GREEDY_REALLOC(gids, n_gids+1)) in change_uid_gid()
224 r = parse_gid(word, &gids[n_gids++]); in change_uid_gid()
237 r = change_uid_gid_raw(uid, gid, gids, n_gids, chown_stdio); in change_uid_gid()
/systemd-251/src/basic/
Duser-util.c466 _cleanup_free_ gid_t *gids = NULL; in in_gid() local
478 ngroups = getgroups_alloc(&gids); in in_gid()
482 return gid_list_has(gids, ngroups, gid); in in_gid()
518 int getgroups_alloc(gid_t** gids) { in getgroups_alloc() argument
555 *gids = TAKE_PTR(p); in getgroups_alloc()
Duser-util.h55 int getgroups_alloc(gid_t** gids);
/systemd-251/src/test/
Dtest-condition.c672 gid_t *gids, max_gid; in TEST() local
696 gids = newa(gid_t, ngroups_max); in TEST()
698 ngroups = getgroups(ngroups_max, gids); in TEST()
703 assert_se(0 < asprintf(&gid, "%u", gids[i])); in TEST()
711 max_gid = gids[i] > max_gid ? gids[i] : max_gid; in TEST()
713 groupname = gid_to_name(gids[i]); in TEST()
722 max_gid = gids[i] > max_gid ? gids[i] : max_gid; in TEST()
Dtest-socket-util.c165 static const gid_t gids[] = { 3, 4, 5, 6, 7 }; in TEST() local
176 test_gids = (gid_t*) gids; in TEST()
177 n_test_gids = ELEMENTSOF(gids); in TEST()
Dtest-user-util.c408 _cleanup_free_ gid_t *gids = NULL; in TEST() local
431 nresult = getgroups_alloc(&gids); in TEST()
433 assert_se(gids); in TEST()
/systemd-251/src/libsystemd/sd-bus/
Dbus-creds.c261 _public_ int sd_bus_creds_get_supplementary_gids(sd_bus_creds *c, const gid_t **gids) { in sd_bus_creds_get_supplementary_gids() argument
263 assert_return(gids, -EINVAL); in sd_bus_creds_get_supplementary_gids()
268 *gids = c->supplementary_gids; in sd_bus_creds_get_supplementary_gids()
/systemd-251/src/systemd/
Dsd-bus.h416 int sd_bus_creds_get_supplementary_gids(sd_bus_creds *c, const gid_t **gids);
/systemd-251/
DTODO905 * sync dynamic uids/gids between host+portable srvice (i.e. if DynamicUser=1 is set for a service, …