Home
last modified time | relevance | path

Searched refs:base_gid (Results 1 – 3 of 3) sorted by last modified time

/unit/src/
H A Dnxt_clone.c222 default_host_gid = app_creds->base_gid; in nxt_clone_credential_map()
244 ret = nxt_clone_credential_map_set(task, "gid_map", pid, app_creds->base_gid, in nxt_clone_credential_map()
323 && !(creds->ngroups == 1 && creds->gids[0] == creds->base_gid)) { in nxt_clone_vldt_credential_gidmap()
363 if (nxt_slow_path((nxt_gid_t) m.container != creds->base_gid)) { in nxt_clone_vldt_credential_gidmap()
366 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()
398 if (!base_ok && creds->base_gid >= (nxt_gid_t) m.container in nxt_clone_vldt_credential_gidmap()
399 && creds->base_gid < (nxt_gid_t) (m.container+m.size)) in nxt_clone_vldt_credential_gidmap()
421 if (creds->base_gid >= (nxt_gid_t) m.container in nxt_clone_vldt_credential_gidmap()
422 && creds->base_gid < (nxt_gid_t) (m.container+m.size)) in nxt_clone_vldt_credential_gidmap()
[all …]
H A Dnxt_credential.h16 nxt_gid_t base_gid; member
H A Dnxt_credential.c37 uc->base_gid = pwd->pw_gid; in nxt_credential_get()
57 uc->base_gid = grp->gr_gid; in nxt_credential_get()
61 uc->user, uc->uid, uc->base_gid); in nxt_credential_get()
106 uc->base_gid, nxt_errno); in nxt_credential_groups_get()
128 uc->base_gid, nxt_errno); in nxt_credential_groups_get()
221 if (initgroups(uc->user, uc->base_gid) != 0) { in nxt_credential_groups_get()
225 uc->user, uc->base_gid, nxt_errno); in nxt_credential_groups_get()
233 uc->user, uc->base_gid, nxt_errno); in nxt_credential_groups_get()
311 uc->base_gid, uc->ngroups); in nxt_credential_setgids()
315 if (setgid(uc->base_gid) != 0) { in nxt_credential_setgids()
[all …]