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

Function proc_set_cred_init

freebsd/kern/kern_prot.c:2162–2167  ·  view source on GitHub ↗

* Set initial process credentials. * Callers are responsible for providing the reference for provided credentials. */

Source from the content-addressed store, hash-verified

2160 * Callers are responsible for providing the reference for provided credentials.
2161 */
2162void
2163proc_set_cred_init(struct proc *p, struct ucred *newcred)
2164{
2165
2166 p->p_ucred = crcowget(newcred);
2167}
2168
2169/*
2170 * Change process credentials.

Callers 2

fork1Function · 0.85
proc0_initFunction · 0.85

Calls 1

crcowgetFunction · 0.85

Tested by

no test coverage detected