Lines Matching refs:prcred
159 static prcred_t *prcred = NULL; in look() local
164 if (prcred == NULL) { in look()
165 prcred = malloc(sizeof (prcred_t) + in look()
167 if (prcred == NULL) { in look()
181 if (Pcred(Pr, prcred, ngroups_max) == -1) { in look()
188 credupdate(prcred); in look()
189 if (Psetcred(Pr, prcred) != 0) { in look()
204 prcred->pr_euid == prcred->pr_ruid && in look()
205 prcred->pr_ruid == prcred->pr_suid) in look()
206 (void) printf("e/r/suid=%u ", prcred->pr_euid); in look()
209 prcred->pr_euid, prcred->pr_ruid, prcred->pr_suid); in look()
212 prcred->pr_egid == prcred->pr_rgid && in look()
213 prcred->pr_rgid == prcred->pr_sgid) in look()
214 (void) printf("e/r/sgid=%u\n", prcred->pr_egid); in look()
217 prcred->pr_egid, prcred->pr_rgid, prcred->pr_sgid); in look()
219 if (prcred->pr_ngroups != 0 && in look()
220 (all || prcred->pr_ngroups != 1 || in look()
221 prcred->pr_groups[0] != prcred->pr_rgid)) { in look()
225 for (i = 0; i < prcred->pr_ngroups; i++) in look()
226 (void) printf(" %u", prcred->pr_groups[i]); in look()