Lines Matching refs:cr_groups
177 memcpy(to->cr_groups, from->cr_groups, sizeof(to->cr_groups)); in kauth_cred_clone1()
395 if (cred->cr_groups[i] == gid) { in kauth_cred_ismember_gid()
443 return (cred->cr_groups[idx]); in kauth_cred_group()
458 if (len > __arraycount(cred->cr_groups)) in kauth_cred_setgroups()
463 memcpy(cred->cr_groups, grbuf, in kauth_cred_setgroups()
464 len * sizeof(cred->cr_groups[0])); in kauth_cred_setgroups()
466 error = copyin(grbuf, cred->cr_groups, in kauth_cred_setgroups()
467 len * sizeof(cred->cr_groups[0])); in kauth_cred_setgroups()
472 memset(cred->cr_groups + len, 0xff, in kauth_cred_setgroups()
473 sizeof(cred->cr_groups) - (len * sizeof(cred->cr_groups[0]))); in kauth_cred_setgroups()
520 return copyout(cred->cr_groups, grbuf, sizeof(*grbuf) * len); in kauth_cred_getgroups()
521 memcpy(grbuf, cred->cr_groups, sizeof(*grbuf) * len); in kauth_cred_getgroups()
634 kauth_cred_setgroups(cred, __UNCONST(uuc->cr_groups), in kauth_uucred_to_cred()
655 kauth_cred_getgroups(cred, uuc->cr_groups, ng, UIO_SYSSPACE); in kauth_cred_to_uucred()
680 if (kauth_cred_ismember_gid(cred, uuc->cr_groups[i], in kauth_cred_uucmp()
705 uc->cr_ngroups = uimin(cred->cr_ngroups, __arraycount(uc->cr_groups)); in kauth_cred_toucred()
706 memcpy(uc->cr_groups, cred->cr_groups, in kauth_cred_toucred()
707 uc->cr_ngroups * sizeof(uc->cr_groups[0])); in kauth_cred_toucred()