Home
last modified time | relevance | path

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

12

/freebsd-13.1/sys/kern/
H A Dkern_prot.c702 gid == oldcred->cr_groups[0] || in sys_setgid()
731 if (oldcred->cr_groups[0] != gid) { in sys_setgid()
1278 if (cred->cr_groups[0] == gid) in groupmember()
1290 if (cred->cr_groups[m] < gid) in groupmember()
2092 free(cr->cr_groups, M_CRED); in crfree_final()
2147 bcopy(cr->cr_groups, xcr->cr_groups, in cru2x()
2274 free(cr->cr_groups, M_CRED); in crextend()
2307 g = cr->cr_groups[i]; in crsetgroups_locked()
2309 cr->cr_groups[j + 1] = cr->cr_groups[j]; in crsetgroups_locked()
2310 cr->cr_groups[j + 1] = g; in crsetgroups_locked()
[all …]
H A Duipc_usrreq.c2250 td->td_ucred->cr_groups[i]; in unp_internalize()
2423 sc->sc_groups[i] = td->td_ucred->cr_groups[i]; in unp_addsockcred()
2434 sc->sc_groups[i] = td->td_ucred->cr_groups[i]; in unp_addsockcred()
2937 db_printf("%s%u", comma ? ", " : "", xu->cr_groups[i]); in db_print_xucred()
/freebsd-13.1/tools/regression/sockets/unix_cmsg/
H A Dt_peercred.c81 if (xucred->cr_groups[0] != uc_cfg.proc_cred.egid) { in check_xucred()
83 (u_long)xucred->cr_groups[0], (u_long)uc_cfg.proc_cred.egid); in check_xucred()
86 if (uc_check_groups("xucred.cr_groups", xucred->cr_groups, in check_xucred()
/freebsd-13.1/sys/sys/
H A Ducred.h82 gid_t *cr_groups; /* groups */ member
102 gid_t cr_groups[XU_NGROUPS]; /* groups */ member
111 #define cr_gid cr_groups[0]
/freebsd-13.1/sys/fs/fuse/
H A Dfuse_internal.h213 basecred->cr_groups[0] == usercred->cr_groups[0] && in fuse_match_cred()
214 basecred->cr_groups[0] == usercred->cr_rgid && in fuse_match_cred()
215 basecred->cr_groups[0] == usercred->cr_svgid) in fuse_match_cred()
H A Dfuse_ipc.c244 reused_creds.cr_groups = reused_groups; in fuse_interrupt_send()
879 ihead->gid = cred->cr_groups[0]; in fuse_setup_ihead()
H A Dfuse_vnops.c824 if (incred->cr_groups[0] != outcred->cr_groups[0]) in fuse_vnop_copy_file_range()
2164 cr_gid = cred->cr_groups[0]; in fuse_vnop_setattr()
/freebsd-13.1/sys/rpc/
H A Dauthunix_prot.c102 if (!xdr_uint32_t(xdrs, &cred->cr_groups[0])) in xdr_authunix_parms()
115 if (!xdr_uint32_t(xdrs, &cred->cr_groups[i + 1])) in xdr_authunix_parms()
H A Dsvc_auth_unix.c92 xcr->cr_groups[0] = IXDR_GET_UINT32(buf); in _svcauth_unix()
100 xcr->cr_groups[i + 1] = IXDR_GET_INT32(buf); in _svcauth_unix()
H A Dsvc_auth.c211 crsetgroups(cr, xcr->cr_ngroups, xcr->cr_groups); in svc_getcred()
212 cr->cr_rgid = cr->cr_svgid = cr->cr_groups[0]; in svc_getcred()
/freebsd-13.1/usr.sbin/mountd/
H A Dmountd.c126 gid_t *cr_groups; member
1564 anon.cr_groups = NULL; in get_exportlist_one()
1581 anon.cr_groups[0] = GID_NOGROUP; in get_exportlist_one()
1875 free(anon.cr_groups); in get_exportlist_one()
1876 anon.cr_groups = NULL; in get_exportlist_one()
2346 COMPARE_ARRAYS(cr0->cr_groups, cr1->cr_groups, cr0->cr_ngroups); in compare_cred()
2978 free(ep->ex_defanon.cr_groups); in free_exp()
3548 cr->cr_groups[0] = GID_NOGROUP; in parsecred()
3590 cr->cr_groups[0] = groups[0]; in parsecred()
3735 free(grp->gr_anon.cr_groups); in free_grp()
[all …]
/freebsd-13.1/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h62 #define crgetgroups(cr) ((cr)->cr_groups)
/freebsd-13.1/sys/cddl/compat/opensolaris/sys/
H A Dcred.h51 #define crgetgroups(cred) ((cred)->cr_groups)
/freebsd-13.1/cddl/lib/libdtrace/
H A Dpsinfo.d60 pr_egid = T->p_ucred->cr_groups[0];
/freebsd-13.1/sys/fs/procfs/
H A Dprocfs_status.c157 sbuf_printf(sb, ",%lu", (u_long)cr->cr_groups[i]); in procfs_doprocstatus()
/freebsd-13.1/sys/compat/linux/
H A Dlinux_uid16.c214 bsd_gidset = newcred->cr_groups; in linux_setgroups16()
248 bsd_gidset = cred->cr_groups; in linux_getgroups16()
/freebsd-13.1/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c259 if (cred->cr_groups[i] in ugidfw_rulecheck()
261 cred->cr_groups[i] in ugidfw_rulecheck()
/freebsd-13.1/usr.sbin/rpc.lockd/
H A Dkern.c246 xucred->cr_groups[0], in set_auth()
248 &xucred->cr_groups[1]); in set_auth()
/freebsd-13.1/sys/netsmb/
H A Dsmb_conn.c428 gid = cred->cr_groups[0]; in smb_vc_create()
771 gid = cred->cr_groups[0]; in smb_share_create()
/freebsd-13.1/sys/ddb/
H A Ddb_ps.c474 db_printf("%d", p->p_ucred->cr_groups[i]); in DB_SHOW_COMMAND()
/freebsd-13.1/sys/security/audit/
H A Daudit.c285 ar->k_ar.ar_subj_egid = cred->cr_groups[0]; in audit_record_ctor()
H A Daudit_arg.c414 ar->k_ar.ar_arg_egid = cred->cr_groups[0]; in audit_arg_process()
/freebsd-13.1/sys/ufs/ufs/
H A Dufs_vnops.c2018 ucred.cr_groups = &ucred_group;
2019 ucred.cr_groups[0] = dp->i_gid;
2787 ucred.cr_groups = &ucred_group;
2788 ucred.cr_groups[0] = pdir->i_gid;
/freebsd-13.1/lib/libkvm/
H A Dkvm_proc.c163 kvm_read(kd, (u_long)ucred.cr_groups, kp->ki_groups, in kvm_proclist()
/freebsd-13.1/sys/fs/nfs/
H A Dnfs_commonport.c383 cred->cr_groups[0] = 0; in newnfs_setroot()

12