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

Function change_rgid

freebsd/kern/kern_prot.c:2456–2461  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2454 * duration of the call.
2455 */
2456void
2457change_rgid(struct ucred *newcred, gid_t rgid)
2458{
2459
2460 newcred->cr_rgid = rgid;
2461}
2462
2463/*-
2464 * Change a process's saved uid.

Callers 3

kern_prot.cFile · 0.85
sys_setregidFunction · 0.85
sys_setresgidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected