Searched refs:cr_groups (Results 1 – 12 of 12) sorted by relevance
/netbsd/sys/kern/ |
H A D | kern_auth.c | 176 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() [all …]
|
/netbsd/lib/libpuffs/ |
H A D | creds.c | 93 (void)memcpy(rgids, pkcr->pkcr_uuc.cr_groups, sizeof(gid_t) * ncopy); in puffs_cred_getgroups() 119 if (pkcr->pkcr_uuc.cr_groups[i] == gid) in puffs_cred_hasgroup()
|
/netbsd/sys/sys/ |
H A D | ucred.h | 53 gid_t cr_groups[NGROUPS_MAX]; /* groups */ member
|
H A D | kauth.h | 90 gid_t cr_groups[NGROUPS]; /* group memberships */ member
|
H A D | sysctl.h | 323 gid_t cr_groups[NGROUPS]; /* groups */ member
|
/netbsd/lib/libkvm/ |
H A D | kvm_proc.c | 174 gid_t cr_groups[NGROUPS]; /* group memberships */ member 318 sizeof(uc->cr_groups) / sizeof(uc->cr_groups[0])); in _kvm_convertcred() 319 memcpy(uc->cr_groups, kauthcred.cr_groups, in _kvm_convertcred() 320 uc->cr_ngroups * sizeof(uc->cr_groups[0])); in _kvm_convertcred() 596 memcpy(kp2p->p_groups, kp->kp_eproc.e_ucred.cr_groups, in kvm_getproc2() 598 sizeof(kp->kp_eproc.e_ucred.cr_groups))); in kvm_getproc2()
|
/netbsd/external/cddl/osnet/sys/sys/ |
H A D | cred.h | 65 #define crgetgroups(cr) ((cr)->cr_groups)
|
/netbsd/usr.sbin/mountd/ |
H A D | mountd.c | 2106 cr->cr_groups[cnt - 1] = usergroups[cnt]; in parsecred() 2125 cr->cr_groups[cr->cr_ngroups++] = atoi(username); in parsecred() 2131 cr->cr_groups[cr->cr_ngroups++] = gr->gr_gid; in parsecred()
|
/netbsd/sys/fs/nfs/common/ |
H A D | nfs_commonport.c | 368 cred->cr_groups[0] = 0; in newnfs_setroot()
|
H A D | nfs_commonsubs.c | 3319 cr->cr_rgid = cr->cr_svgid = cr->cr_groups[0]; in nfssvc_idname()
|
/netbsd/sys/fs/nfs/client/ |
H A D | nfs_clport.c | 1129 nfscr->nfsc_groups[i] = cr->cr_groups[i]; in newnfs_copyincred()
|
/netbsd/sys/fs/nfs/server/ |
H A D | nfs_nfsdport.c | 2681 credanon->cr_groups); in nfsd_excred()
|