Lines Matching defs:prpriv
167 priv_pr_spriv(proc_t *p, prpriv_t *prpriv, const cred_t *cr)
182 if (prpriv->pr_nsets != PRIV_NSET ||
183 prpriv->pr_setsize != PRIV_SETSIZE ||
184 (prpriv->pr_infosize & (sizeof (uint32_t) - 1)) != 0 ||
185 prpriv->pr_infosize > priv_info->priv_infosize ||
186 prpriv->pr_infosize < 0)
198 /* Copy the privilege sets from prpriv to newcred */
199 bcopy(prpriv->pr_sets, CR_PRIVSETS(newcred), PRIV_SETBYTES);
226 if (prpriv->pr_infosize > 0) {
227 char *x = (char *)prpriv + PRIV_PRPRIV_INFO_OFFSET(prpriv);
228 char *lastx = x + prpriv->pr_infosize;