Home
last modified time | relevance | path

Searched refs:cr_groups (Results 1 – 25 of 26) sorted by relevance

12

/src/tools/regression/sockets/unix_cmsg/
H A Dt_peercred.c78 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 Ducred.h95 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 Dkern_prot.c331 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 Duipc_usrreq.c3706 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 Dkern_proc.c1119 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 Dvfs_mount.c1488 o2export.ex_anon.cr_groups[i]; in vfs_domount_update()
H A Dimgact_elf.c2620 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 Dcred.h63 #define crgetgroups(cr) ((cr)->cr_groups)
/src/sys/cddl/compat/opensolaris/sys/
H A Dcred.h49 #define crgetgroups(cred) ((cred)->cr_groups)
/src/usr.sbin/mountd/
H A Dmountd.c113 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 Dlinux_uid16.c121 newcred->cr_groups[i] = linux_gidset[i]; in linux_setgroups16()
155 linux_gidset[i] = cred->cr_groups[i]; in linux_getgroups16()
H A Dlinux_misc.c1060 newcred->cr_groups[i] = linux_gidset[i]; in linux_setgroups()
1093 linux_gidset[i] = cred->cr_groups[i]; in linux_getgroups()
H A Dlinux_socket.c2232 const l_gid_t g = xu.cr_groups[i + 1]; in linux_getsockopt_so_peergroups()
/src/sys/fs/procfs/
H A Dprocfs_status.c146 sbuf_printf(sb, ",%lu", (u_long)cr->cr_groups[i]); in procfs_doprocstatus()
/src/sys/rpc/
H A Dsvc_auth.c210 crsetgroups_and_egid(cr, xcr->cr_ngroups, xcr->cr_groups, GID_NOGROUP); in svc_getcred()
/src/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c257 if (cred->cr_groups[i] in ugidfw_rulecheck()
259 cred->cr_groups[i] in ugidfw_rulecheck()
/src/sys/dev/hwt/
H A Dhwt_ioctl.c111 if (!groupmember(tc->cr_groups[i], oc)) { in hwt_priv_check()
/src/sys/ddb/
H A Ddb_ps.c466 p->p_ucred->cr_groups[i]); in DB_SHOW_COMMAND()
/src/usr.sbin/rpc.lockd/
H A Dkern.c244 groups = &xucred->cr_groups[0]; in set_auth()
/src/sys/security/mac_do/
H A Dmac_do.c1645 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 Dkvm_proc.c159 kvm_read(kd, (u_long)ucred.cr_groups, kp->ki_groups + 1, in kvm_proclist()
/src/lib/libprocstat/
H A Dlibprocstat.c2002 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 Dnfs_clport.c1104 nfscr->nfsc_groups[i] = cr->cr_groups[i - 1]; in newnfs_copyincred()
/src/sys/compat/linprocfs/
H A Dlinprocfs.c1137 sbuf_printf(sb, "%d ", p->p_ucred->cr_groups[i]); in linprocfs_doprocstatus()
/src/sys/fs/nfsserver/
H A Dnfs_nfsdport.c3568 credanon->cr_groups); in nfsd_excred()
4319 oexp.export.ex_anon.cr_groups[i]; in nfssvc_srvcall()

12