Lines Matching refs:ruid
102 * The ruid of the process is going to change. In order
104 * process-count associated with the newly given ruid,
155 * to match the increment above, even if the ruid of the process
264 setreuid(uid_t ruid, uid_t euid)
270 uid_t oldruid = ruid;
276 if ((ruid != -1 && !VALID_UID(ruid, zone)) ||
302 if (ruid != -1 && ruid != cr->cr_ruid && ruid != cr->cr_uid &&
303 secpolicy_allow_setid(cr, ruid, B_FALSE) != 0) {
322 if (!uidchge && ruid != -1 && cr->cr_ruid != ruid) {
324 * The ruid of the process is going to change. In order
326 * process-count associated with the newly given ruid,
335 upcount_inc(ruid, zoneid);
351 if (ruid != -1) {
357 newcr->cr_ruid = ruid;
358 ASSERT(ruid != oldruid ? uidchge : 1);
365 if (ruid != -1 ||
377 priv_reset_PA(newcr, ruid != -1 && euid != -1 && ruid == euid);
384 * to match the increment above, even if the ruid of the process
388 ASSERT(oldruid != -1 && ruid != -1);