Home | History | Annotate | Download | only in kern

Lines Matching refs:cr_groups

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