sys/kern/kern_prot.c
/*-
 * Change a process's effective uid.
 * Side effects: newcred->cr_uid and newcred->cr_uidinfo will be modified.
 * References: newcred must be an exclusive credential reference for the
 *             duration of the call.
 */
Change a process's effective uid.
Side effects: newcred->cr_uid and newcred->cr_uidinfo will be modified.
References: newcred must be an exclusive credential reference for the
duration of the call.
Change a process ' s effective uid . Side effects : newcred - > cr_uid and newcred - > cr_uidinfo will be modified . References : newcred must be an exclusive credential reference for the duration of the call .
void
change_euid(struct ucred *newcred, struct uidinfo *euip)
{
	newcred->cr_uid = euip->ui_uid;
	uihold(euip);
	uifree(newcred->cr_uidinfo);
	newcred->cr_uidinfo = euip;
}
void change_euid ( struct ucred * newcred , struct uidinfo * euip ) { newcred -> cr_uid = euip -> ui_uid ; uihold ( euip ) ; uifree ( newcred -> cr_uidinfo ) ; newcred -> cr_uidinfo = euip ; }
Change a process's effective uid.
Change a process ' s effective uid .