Searched defs:gids (Results 1 - 4 of 4) sorted by relevance

/systemd/src/basic/
H A Duser-util.c295 gid_t *gids; local
310 gids = alloca(sizeof(gid_t) * ngroups_max);
312 r = getgroups(ngroups_max, gids);
317 if (gids[i] == gid)
/systemd/src/libsystemd/sd-bus/
H A Dbus-creds.c280 _public_ int sd_bus_creds_get_supplementary_gids(sd_bus_creds *c, const gid_t **gids) { argument
282 assert_return(gids, -EINVAL);
287 *gids = c->supplementary_gids;
/systemd/src/core/
H A Dexecute.c693 /* Second step, set our gids */
700 gid_t *gids; local
706 if (!(gids = new(gid_t, ngroups_max)))
710 k = getgroups(ngroups_max, gids);
712 free(gids);
722 free(gids);
727 r = get_group_creds(&g, gids+k);
729 free(gids);
736 if (setgroups(k, gids) < 0) {
737 free(gids);
[all...]
/systemd/src/udev/
H A Dudev-rules.c81 struct uid_gid *gids; member in struct:udev_rules
530 off = rules->gids[i].name_off;
532 gid = rules->gids[i].gid;
546 struct uid_gid *gids; local
554 gids = realloc(rules->gids, (rules->gids_max + add ) * sizeof(struct uid_gid));
555 if (gids == NULL)
557 rules->gids = gids;
560 rules->gids[rule
[all...]

Completed in 1437 milliseconds