MCPcopy Create free account
hub / github.com/F-Stack/f-stack / change_egid

Function change_egid

freebsd/kern/kern_prot.c:2423–2428  ·  view source on GitHub ↗

- * Change a process's effective gid. * Side effects: newcred->cr_gid will be modified. * References: newcred must be an exclusive credential reference for the * duration of the call. */

Source from the content-addressed store, hash-verified

2421 * duration of the call.
2422 */
2423void
2424change_egid(struct ucred *newcred, gid_t egid)
2425{
2426
2427 newcred->cr_groups[0] = egid;
2428}
2429
2430/*-
2431 * Change a process's real uid.

Callers 5

kern_prot.cFile · 0.85
sys_setegidFunction · 0.85
sys_setregidFunction · 0.85
sys_setresgidFunction · 0.85
do_execveFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected