Lines Matching refs:rgid
1058 gid_t rgid = KAUTH_GID_NONE;
1083 rgid = gid;
1096 my_new_cred = kauth_cred_setresgid(my_cred, rgid, gid, svgid);
1220 * Parameters: uap->rgid real gid to set
1255 gid_t rgid, egid;
1259 DEBUG_CRED_ENTER("setregid %d %d\n", uap->rgid, uap->egid);
1261 rgid = uap->rgid;
1264 if (rgid == (uid_t)-1)
1265 rgid = KAUTH_GID_NONE;
1268 AUDIT_ARG(gid, egid, rgid, 0, 0);
1272 if (((rgid != KAUTH_UID_NONE && /* allow no change of rgid */
1273 rgid != my_cred->cr_rgid && /* allow rgid = rgid */
1274 rgid != my_cred->cr_gid && /* allow rgid = egid */
1275 rgid != my_cred->cr_svgid) || /* allow rgid = svgid */
1279 egid != my_cred->cr_rgid && /* allow egid = rgid */
1305 if (rgid != KAUTH_UID_NONE && my_cred->cr_rgid != rgid) {
1307 new_rgid = rgid;
1316 if (my_cred->cr_svgid != uap->rgid &&
1322 my_new_cred = kauth_cred_setresgid(my_cred, rgid, egid, svgid);