| /src/tools/regression/sockets/unix_cmsg/ |
| H A D | t_peercred.c | 78 if (xucred->cr_groups[0] != uc_cfg.proc_cred.egid) { in check_xucred() 80 (u_long)xucred->cr_groups[0], (u_long)uc_cfg.proc_cred.egid); in check_xucred() 83 if (uc_check_groups("xucred.cr_groups", xucred->cr_groups, in check_xucred()
|
| /src/sys/sys/ |
| H A D | ucred.h | 95 gid_t *cr_groups; /* groups */ member 130 gid_t cr_groups[XU_NGROUPS]; /* groups */ member 259 return (gid == cred->cr_groups[0] || gid == cred->cr_rgid || in group_is_primary()
|
| /src/sys/kern/ |
| H A D | kern_prot.c | 331 error = copyout(cred->cr_groups, uap->gidset + 1, in freebsd14_getgroups() 363 error = copyout(cred->cr_groups, uap->gidset, ngrp * sizeof(gid_t)); in sys_getgroups() 1778 groups_check_normalized(cred->cr_ngroups, cred->cr_groups); in group_is_supplementary() 1784 return (bsearch(&gid, cred->cr_groups, cred->cr_ngroups, in group_is_supplementary() 1907 if (realgroupmember(u1->cr_groups[i], u2)) in cr_canseeothergids() 2275 if (!groupmember(obj_cred->cr_groups[i], active_cred)) { in cr_xids_subset() 2605 cr->cr_groups = cr->cr_smallgroups; in crget() 2691 if (cr->cr_groups != cr->cr_smallgroups) in crfree_final() 2692 free(cr->cr_groups, M_CRED); in crfree_final() 2707 crsetgroups(dest, src->cr_ngroups, src->cr_groups); in crcopy() [all …]
|
| H A D | uipc_usrreq.c | 3706 td->td_ucred->cr_groups[i - 1]; in unp_internalize() 3865 sc->sc_groups[i] = td->td_ucred->cr_groups[i]; in unp_addsockcred() 3876 sc->sc_groups[i] = td->td_ucred->cr_groups[i]; in unp_addsockcred() 4557 db_printf("%s%u", comma ? ", " : "", xu->cr_groups[i]); in db_print_xucred()
|
| H A D | kern_proc.c | 1119 bcopy(cred->cr_groups, kp->ki_groups + 1, in fill_kinfo_proc_only() 2948 error = SYSCTL_OUT(req, cred->cr_groups, in sysctl_kern_proc_groups()
|
| H A D | vfs_mount.c | 1488 o2export.ex_anon.cr_groups[i]; in vfs_domount_update()
|
| H A D | imgact_elf.c | 2620 sbuf_bcat(sb, p->p_ucred->cr_groups, p->p_ucred->cr_ngroups * in note_procstat_groups()
|
| /src/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | cred.h | 63 #define crgetgroups(cr) ((cr)->cr_groups)
|
| /src/sys/cddl/compat/opensolaris/sys/ |
| H A D | cred.h | 49 #define crgetgroups(cred) ((cred)->cr_groups)
|
| /src/usr.sbin/mountd/ |
| H A D | mountd.c | 113 gid_t *cr_groups; member 1616 anon.cr_groups = tmp_groups; in get_exportlist_one() 1617 anon.cr_groups[0] = nogroup(); in get_exportlist_one() 2444 COMPARE_ARRAYS(cr0->cr_groups, cr1->cr_groups, cr0->cr_ngroups); in compare_cred() 3117 if (ep->ex_defanon.cr_groups != ep->ex_defanon.cr_smallgrps) in free_exp() 3118 free(ep->ex_defanon.cr_groups); in free_exp() 3251 eap->ex_groups = anoncrp->cr_groups; in do_mount() 3665 assert(cr->cr_groups == tmp_groups); in parsecred() 3700 cr->cr_groups, &cr->cr_ngroups) != 0) { in parsecred() 3731 cr->cr_groups[cr->cr_ngroups++] = group; in parsecred() [all …]
|
| /src/sys/compat/linux/ |
| H A D | linux_uid16.c | 121 newcred->cr_groups[i] = linux_gidset[i]; in linux_setgroups16() 155 linux_gidset[i] = cred->cr_groups[i]; in linux_getgroups16()
|
| H A D | linux_misc.c | 1060 newcred->cr_groups[i] = linux_gidset[i]; in linux_setgroups() 1093 linux_gidset[i] = cred->cr_groups[i]; in linux_getgroups()
|
| H A D | linux_socket.c | 2232 const l_gid_t g = xu.cr_groups[i + 1]; in linux_getsockopt_so_peergroups()
|
| /src/sys/fs/procfs/ |
| H A D | procfs_status.c | 146 sbuf_printf(sb, ",%lu", (u_long)cr->cr_groups[i]); in procfs_doprocstatus()
|
| /src/sys/rpc/ |
| H A D | svc_auth.c | 210 crsetgroups_and_egid(cr, xcr->cr_ngroups, xcr->cr_groups, GID_NOGROUP); in svc_getcred()
|
| /src/sys/security/mac_bsdextended/ |
| H A D | mac_bsdextended.c | 257 if (cred->cr_groups[i] in ugidfw_rulecheck() 259 cred->cr_groups[i] in ugidfw_rulecheck()
|
| /src/sys/dev/hwt/ |
| H A D | hwt_ioctl.c | 111 if (!groupmember(tc->cr_groups[i], oc)) { in hwt_priv_check()
|
| /src/sys/ddb/ |
| H A D | db_ps.c | 466 p->p_ucred->cr_groups[i]); in DB_SHOW_COMMAND()
|
| /src/usr.sbin/rpc.lockd/ |
| H A D | kern.c | 244 groups = &xucred->cr_groups[0]; in set_auth()
|
| /src/sys/security/mac_do/ |
| H A D | mac_do.c | 1645 const gid_t *const old_groups = old_cred->cr_groups; in rule_grant_supplementary_groups() 1646 const gid_t *const new_groups = new_cred->cr_groups; in rule_grant_supplementary_groups()
|
| /src/lib/libkvm/ |
| H A D | kvm_proc.c | 159 kvm_read(kd, (u_long)ucred.cr_groups, kp->ki_groups + 1, in kvm_proclist()
|
| /src/lib/libprocstat/ |
| H A D | libprocstat.c | 2002 if (!kvm_read_all(kd, (unsigned long)ucred.cr_groups, groups + 1, in procstat_getgroups_kvm() 2005 ucred.cr_groups, kp->ki_pid); in procstat_getgroups_kvm()
|
| /src/sys/fs/nfsclient/ |
| H A D | nfs_clport.c | 1104 nfscr->nfsc_groups[i] = cr->cr_groups[i - 1]; in newnfs_copyincred()
|
| /src/sys/compat/linprocfs/ |
| H A D | linprocfs.c | 1137 sbuf_printf(sb, "%d ", p->p_ucred->cr_groups[i]); in linprocfs_doprocstatus()
|
| /src/sys/fs/nfsserver/ |
| H A D | nfs_nfsdport.c | 3568 credanon->cr_groups); in nfsd_excred() 4319 oexp.export.ex_anon.cr_groups[i]; in nfssvc_srvcall()
|