/freebsd/tools/regression/sockets/unix_cmsg/ |
H A D | t_peercred.c | 51 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 D | authunix_prot.c | 100 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 D | svc_auth_unix.c | 99 xcr->cr_ngroups = XU_NGROUPS; in _svcauth_unix() 101 xcr->cr_ngroups = gid_len + 1; in _svcauth_unix()
|
H A D | svc_auth.c | 205 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 D | linux_uid16.c | 125 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 D | linux_misc.c | 1064 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 D | linux_socket.c | 2191 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 D | ucred.h | 80 int cr_ngroups; /* number of groups */ member 110 short cr_ngroups; /* number of groups */ member
|
/freebsd/sys/kern/ |
H A D | kern_prot.c | 322 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 D | init_main.c | 550 newcred->cr_ngroups = 1; /* group 0 */ in proc0_init()
|
H A D | uipc_usrreq.c | 2661 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 D | kern_proc.c | 1113 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 D | imgact_elf.c | 2596 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 D | mountd.c | 110 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 D | cred.h | 63 #define crgetngroups(cr) ((cr)->cr_ngroups)
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | cred.h | 50 #define crgetngroups(cred) ((cred)->cr_ngroups)
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 145 /* 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 D | db_ps.c | 463 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 D | kvm_proc.c | 150 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 D | mac_bsdextended.c | 256 for (i = 0; i < cred->cr_ngroups; i++) { in ugidfw_rulecheck()
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | kern.c | 236 ngroups = xucred->cr_ngroups - 1; in set_auth()
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clport.c | 1089 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 D | nfs_commonport.c | 383 cred->cr_ngroups = 1; in newnfs_setroot()
|
/freebsd/lib/libprocstat/ |
H A D | libprocstat.c | 1988 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 D | ufs_vnops.c | 2079 ucred.cr_ngroups = 1; in ufs_mkdir() 2835 ucred.cr_ngroups = 1; in ufs_makeinode()
|