Home
last modified time | relevance | path

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

/unit/src/
H A Dnxt_credential.c77 p = nxt_sprintf(p, end, "%d%c", uc->gids[i], in nxt_credential_get()
119 uc->gids = nxt_mp_alloc(mp, ngroups * sizeof(gid_t)); in nxt_credential_groups_get()
120 if (nxt_slow_path(uc->gids == NULL)) { in nxt_credential_groups_get()
138 uc->gids = nxt_mp_alloc(mp, ngroups * sizeof(gid_t)); in nxt_credential_groups_get()
139 if (nxt_slow_path(uc->gids == NULL)) { in nxt_credential_groups_get()
143 nxt_memcpy(uc->gids, groups, ngroups * sizeof(gid_t)); in nxt_credential_groups_get()
198 uc->gids = NULL; in nxt_credential_groups_get()
247 uc->gids = nxt_mp_alloc(mp, ngroups * sizeof(nxt_gid_t)); in nxt_credential_groups_get()
249 if (nxt_slow_path(uc->gids == NULL)) { in nxt_credential_groups_get()
253 ngroups = getgroups(ngroups, uc->gids); in nxt_credential_groups_get()
[all …]
H A Dnxt_credential.h18 nxt_gid_t *gids; member
H A Dnxt_clone.c323 && !(creds->ngroups == 1 && creds->gids[0] == creds->base_gid)) { in nxt_clone_vldt_credential_gidmap()
376 && !(creds->ngroups == 1 && creds->gids[0] == creds->base_gid)) in nxt_clone_vldt_credential_gidmap()
404 if (creds->gids[i] >= (nxt_gid_t) m.container in nxt_clone_vldt_credential_gidmap()
405 && creds->gids[i] < (nxt_gid_t) (m.container+m.size)) in nxt_clone_vldt_credential_gidmap()
/unit/src/test/
H A Dnxt_clone_test.c43 static nxt_gid_t gids[] = {1000, 10000, 60000}; variable
253 {"johndoe", 1000, 1000, 3, gids},
332 {"johndoe", 1000, 1000, 3, gids},
342 {"johndoe", 1000, 1000, 3, gids},
352 {"johndoe", 1000, 1000, 3, gids},
363 {"johndoe", 1000, 1000, 3, gids},
378 {"johndoe", 1000, 1000, 3, gids},