Lines Matching refs:cr
44 cred_t *cr, *newcr; in setgroups() local
94 cr = p->p_cred; in setgroups()
95 crhold(cr); in setgroups()
98 if ((error = secpolicy_allow_setid(cr, -1, B_FALSE)) != 0) { in setgroups()
104 crfree(cr); in setgroups()
108 crfree(cr); in setgroups()
109 if (cr != p->p_cred) in setgroups()
112 crdup_to(cr, newcr); in setgroups()
118 crfree(cr); /* free the old one */ in setgroups()
132 struct cred *cr; in getgroups() local
135 cr = curthread->t_cred; in getgroups()
136 n = crgetngroups(cr); in getgroups()
141 if (copyout(crgetgroups(cr), gidset, n * sizeof (gid_t))) in getgroups()