Lines Matching defs:kcred
92 cred_t *kcred;
203 * kcred is used by anything that needs all privileges; it's
207 kcred = cralloc();
209 bzero(kcred, crsize);
210 kcred->cr_ref = 1;
212 /* kcred is never freed, so we don't need zone_cred_hold here */
213 kcred->cr_zone = &zone0;
215 priv_fillset(&CR_LPRIV(kcred));
216 CR_IPRIV(kcred) = *priv_basic;
218 priv_addset(&CR_IPRIV(kcred), PRIV_PROC_SECFLAGS);
222 priv_addset(&CR_IPRIV(kcred), PRIV_FILE_CHOWN_SELF);
226 priv_delset(&CR_IPRIV(kcred), PRIV_FILE_LINK_ANY);
228 CR_EPRIV(kcred) = CR_PPRIV(kcred) = CR_IPRIV(kcred);
230 CR_FLAGS(kcred) = NET_MAC_AWARE;
235 ttoproc(curthread)->p_cred = kcred;
236 curthread->t_cred = kcred;
291 bcopy(kcred, cr, crsize);
361 ASSERT(cr != kcred);
1094 ASSERT(cr != kcred);
1161 * This function returns a pointer to the kcred-equivalent in the current zone.
1171 return (kcred);
1401 * to be ALL, like either kcred or zcred.