Home
last modified time | relevance | path

Searched refs:cr_ngroups (Results 1 – 25 of 30) sorted by relevance

12

/freebsd/tools/regression/sockets/unix_cmsg/
H A Dt_peercred.c51 uc_dbgmsg("xucred.cr_ngroups %d", xucred->cr_ngroups); in check_xucred()
65 if (xucred->cr_ngroups == 0) { in check_xucred()
69 if (xucred->cr_ngroups < 0) { in check_xucred()
73 if (xucred->cr_ngroups > XU_NGROUPS) { in check_xucred()
75 xucred->cr_ngroups, XU_NGROUPS); in check_xucred()
84 "xucred.cr_ngroups", xucred->cr_ngroups, false) < 0) in check_xucred()
/freebsd/sys/rpc/
H A Dauthunix_prot.c100 ngroups = cred->cr_ngroups - 1; in xdr_authunix_parms()
119 cred->cr_ngroups = ngroups_max + 1; in xdr_authunix_parms()
121 cred->cr_ngroups = ngroups + 1; in xdr_authunix_parms()
H A Dsvc_auth_unix.c99 xcr->cr_ngroups = XU_NGROUPS; in _svcauth_unix()
101 xcr->cr_ngroups = gid_len + 1; in _svcauth_unix()
H A Dsvc_auth.c205 if (xcr->cr_ngroups <= 0) in svc_getcred()
209 crsetgroups(cr, xcr->cr_ngroups, xcr->cr_groups); in svc_getcred()
/freebsd/sys/compat/linux/
H A Dlinux_uid16.c125 newcred->cr_ngroups = ngrp + 1; in linux_setgroups16()
135 newcred->cr_ngroups = 1; in linux_setgroups16()
158 bsd_gidsetsz = cred->cr_ngroups - 1; in linux_getgroups16()
H A Dlinux_misc.c1064 newcred->cr_ngroups = ngrp + 1; in linux_setgroups()
1073 newcred->cr_ngroups = 1; in linux_setgroups()
1095 bsd_gidsetsz = cred->cr_ngroups - 1; in linux_getgroups()
H A Dlinux_socket.c2191 len = xu.cr_ngroups * sizeof(l_gid_t); in linux_getsockopt_so_peergroups()
2202 for (i = 0; i < xu.cr_ngroups - 1; i++) { in linux_getsockopt_so_peergroups()
/freebsd/sys/sys/
H A Ducred.h80 int cr_ngroups; /* number of groups */ member
110 short cr_ngroups; /* number of groups */ member
/freebsd/sys/kern/
H A Dkern_prot.c322 ngrp = cred->cr_ngroups; in sys_getgroups()
916 newcred->cr_ngroups = 1; in kern_setgroups()
1362 groups_check_normalized(cred->cr_ngroups, cred->cr_groups); in group_is_supplementary()
1368 return (bsearch(&gid, cred->cr_groups + 1, cred->cr_ngroups - 1, in group_is_supplementary()
1380 groups_check_positive_len(cred->cr_ngroups); in groupmember()
1401 groups_check_positive_len(cred->cr_ngroups); in realgroupmember()
1492 for (int i = 1; i < u1->cr_ngroups; i++) in cr_canseeothergids()
1828 for (i = 0; i < p->p_ucred->cr_ngroups; i++) { in p_candebug()
2229 crsetgroups(dest, src->cr_ngroups, src->cr_groups); in crcopy()
2267 ngroups = MIN(cr->cr_ngroups, XU_NGROUPS); in cru2x()
[all …]
H A Dinit_main.c550 newcred->cr_ngroups = 1; /* group 0 */ in proc0_init()
H A Duipc_usrreq.c2661 cmcred->cmcred_ngroups = MIN(td->td_ucred->cr_ngroups, in unp_internalize()
2805 ngroups = MIN(td->td_ucred->cr_ngroups, CMGROUP_MAX); in unp_addsockcred()
3536 xu->cr_version, xu->cr_uid, xu->cr_pid, xu->cr_ngroups); in db_print_xucred()
3540 for (i = 0; i < xu->cr_ngroups; i++) { in db_print_xucred()
H A Dkern_proc.c1113 if (cred->cr_ngroups > KI_NGROUPS) { in fill_kinfo_proc_only()
1117 kp->ki_ngroups = cred->cr_ngroups; in fill_kinfo_proc_only()
2954 cred->cr_ngroups * sizeof(gid_t)); in sysctl_kern_proc_groups()
H A Dimgact_elf.c2596 size = sizeof(structsize) + p->p_ucred->cr_ngroups * sizeof(gid_t); in note_procstat_groups()
2601 sbuf_bcat(sb, p->p_ucred->cr_groups, p->p_ucred->cr_ngroups * in note_procstat_groups()
/freebsd/usr.sbin/mountd/
H A Dmountd.c110 int cr_ngroups; member
1589 anon.cr_ngroups = 1; in get_exportlist_one()
2388 if (cr0->cr_uid != cr1->cr_uid || cr0->cr_ngroups != cr1->cr_ngroups) in compare_cred()
2391 COMPARE_ARRAYS(cr0->cr_groups, cr1->cr_groups, cr0->cr_ngroups); in compare_cred()
3187 eap->ex_ngroups = anoncrp->cr_ngroups; in do_mount()
3628 cr->cr_ngroups = 1; in parsecred()
3668 cr->cr_ngroups = ngroups; in parsecred()
3686 cr->cr_ngroups = 0; in parsecred()
3687 while (names != NULL && *names != '\0' && cr->cr_ngroups < NGROUPS_MAX) { in parsecred()
3695 groups[cr->cr_ngroups++] = gr->gr_gid; in parsecred()
[all …]
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h63 #define crgetngroups(cr) ((cr)->cr_ngroups)
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dcred.h50 #define crgetngroups(cred) ((cred)->cr_ngroups)
/freebsd/sys/fs/procfs/
H A Dprocfs_status.c145 /* egid (cr->cr_svgid) is equal to cr_ngroups[0] in procfs_doprocstatus()
148 for (i = 0; i < cr->cr_ngroups; i++) { in procfs_doprocstatus()
/freebsd/sys/ddb/
H A Ddb_ps.c463 for (i = 0; i < p->p_ucred->cr_ngroups; i++) { in DB_SHOW_COMMAND()
465 if (i < (p->p_ucred->cr_ngroups - 1)) in DB_SHOW_COMMAND()
/freebsd/lib/libkvm/
H A Dkvm_proc.c150 if (ucred.cr_ngroups > KI_NGROUPS) { in kvm_proclist()
154 kp->ki_ngroups = ucred.cr_ngroups; in kvm_proclist()
/freebsd/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c256 for (i = 0; i < cred->cr_ngroups; i++) { in ugidfw_rulecheck()
/freebsd/usr.sbin/rpc.lockd/
H A Dkern.c236 ngroups = xucred->cr_ngroups - 1; in set_auth()
/freebsd/sys/fs/nfsclient/
H A Dnfs_clport.c1089 KASSERT(cr->cr_ngroups >= 0, in newnfs_copyincred()
1092 nfscr->nfsc_ngroups = MIN(cr->cr_ngroups, NFS_MAXGRPS + 1); in newnfs_copyincred()
/freebsd/sys/fs/nfs/
H A Dnfs_commonport.c383 cred->cr_ngroups = 1; in newnfs_setroot()
/freebsd/lib/libprocstat/
H A Dlibprocstat.c1988 len = ucred.cr_ngroups * sizeof(gid_t); in procstat_getgroups_kvm()
2000 *cntp = ucred.cr_ngroups; in procstat_getgroups_kvm()
/freebsd/sys/ufs/ufs/
H A Dufs_vnops.c2079 ucred.cr_ngroups = 1; in ufs_mkdir()
2835 ucred.cr_ngroups = 1; in ufs_makeinode()

12