Lines Matching defs:gid
44 setgid(gid_t gid)
54 if (!VALID_GID(gid, zone))
57 if (gid > MAXUID) {
58 if (ksid_lookupbygid(zone, gid, &ksid) != 0)
79 if ((gid == cr->cr_rgid || gid == cr->cr_sgid) &&
88 newcr->cr_gid = gid;
98 * set-gid process must be marked to produce no core dump.
100 if (cr->cr_gid != gid ||
101 cr->cr_rgid != gid ||
102 cr->cr_sgid != gid)
106 newcr->cr_gid = gid;
107 newcr->cr_rgid = gid;
108 newcr->cr_sgid = gid;
144 setegid(gid_t gid)
153 if (!VALID_GID(gid, zone))
156 if (gid > MAXUID) {
157 if (ksid_lookupbygid(zone, gid, &ksid) != 0)
174 if (gid == cr->cr_rgid || gid == cr->cr_gid || gid == cr->cr_sgid ||
182 * set-gid process must be marked to produce no core dump.
184 if (cr->cr_gid != gid && error == 0)
189 newcr->cr_gid = gid;
265 * "If the real gid is being changed, or the effective gid is
266 * being changed to a value not equal to the real gid, the
267 * saved gid is set to the new effective gid."
274 * set-gid process must be marked to produce no core dump.