Searched refs:cr_groups (Results 1 - 25 of 38) sorted by relevance

12

/freebsd-13-stable/tools/regression/sockets/unix_cmsg/
H A Dt_peercred.c81 if (xucred->cr_groups[0] != uc_cfg.proc_cred.egid) {
82 uc_logmsgx("xucred.cr_groups[0] %lu != %lu (EGID)",
83 (u_long)xucred->cr_groups[0], (u_long)uc_cfg.proc_cred.egid);
86 if (uc_check_groups("xucred.cr_groups", xucred->cr_groups,
/freebsd-13-stable/sys/cddl/compat/opensolaris/sys/
H A Dcred.h51 #define crgetgroups(cred) ((cred)->cr_groups)
/freebsd-13-stable/sys/sys/
H A Ducred.h82 gid_t *cr_groups; /* groups */ member in struct:ucred
102 gid_t cr_groups[XU_NGROUPS]; /* groups */ member in struct:xucred
111 #define cr_gid cr_groups[0]
/freebsd-13-stable/sys/rpc/
H A Dauthunix_prot.c102 if (!xdr_uint32_t(xdrs, &cred->cr_groups[0]))
115 if (!xdr_uint32_t(xdrs, &cred->cr_groups[i + 1]))
H A Dsvc_auth_unix.c92 xcr->cr_groups[0] = IXDR_GET_UINT32(buf);
100 xcr->cr_groups[i + 1] = IXDR_GET_INT32(buf);
H A Dsvc_auth.c211 crsetgroups(cr, xcr->cr_ngroups, xcr->cr_groups);
212 cr->cr_rgid = cr->cr_svgid = cr->cr_groups[0];
/freebsd-13-stable/sys/kern/
H A Dkern_prot.c265 td->td_retval[1] = td->td_ucred->cr_groups[0];
285 td->td_retval[0] = td->td_ucred->cr_groups[0];
312 error = copyout(cred->cr_groups, uap->gidset, ngrp * sizeof(gid_t));
690 gid != oldcred->cr_groups[0] && /* allow setgid(getegid()) */
702 gid == oldcred->cr_groups[0] ||
731 if (oldcred->cr_groups[0] != gid) {
777 if (oldcred->cr_groups[0] != egid) {
978 (egid != (gid_t)-1 && egid != oldcred->cr_groups[0] &&
983 if (egid != (gid_t)-1 && oldcred->cr_groups[0] != egid) {
991 if ((rgid != (gid_t)-1 || newcred->cr_groups[
[all...]
H A Duipc_usrreq.c2249 td->td_ucred->cr_groups[i];
2422 sc->sc_groups[i] = td->td_ucred->cr_groups[i];
2433 sc->sc_groups[i] = td->td_ucred->cr_groups[i];
2933 db_printf("cr_groups: ");
2936 db_printf("%s%u", comma ? ", " : "", xu->cr_groups[i]);
/freebsd-13-stable/sys/fs/fuse/
H A Dfuse_internal.h213 basecred->cr_groups[0] == usercred->cr_groups[0] &&
214 basecred->cr_groups[0] == usercred->cr_rgid &&
215 basecred->cr_groups[0] == usercred->cr_svgid)
H A Dfuse_ipc.c243 reused_creds.cr_groups = reused_groups;
881 ihead->gid = cred->cr_groups[0];
H A Dfuse_vnops.c658 if (incred->cr_groups[0] != outcred->cr_groups[0])
1972 cr_gid = cred->cr_groups[0];
/freebsd-13-stable/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dcred.h58 #define crgetgroups(cred) ((cred)->cr_groups)
/freebsd-13-stable/cddl/lib/libdtrace/
H A Dpsinfo.d60 pr_egid = T->p_ucred->cr_groups[0];
/freebsd-13-stable/usr.sbin/mountd/
H A Dmountd.c126 gid_t *cr_groups; member in struct:expcred
1564 anon.cr_groups = NULL;
1578 anon.cr_groups = anon.cr_smallgrps;
1581 anon.cr_groups[0] = GID_NOGROUP;
1874 if (anon.cr_groups != anon.cr_smallgrps) {
1875 free(anon.cr_groups);
1876 anon.cr_groups = NULL;
2346 COMPARE_ARRAYS(cr0->cr_groups, cr1->cr_groups, cr0->cr_ngroups);
2977 if (ep->ex_defanon.cr_groups !
[all...]
/freebsd-13-stable/sys/fs/procfs/
H A Dprocfs_status.c157 sbuf_printf(sb, ",%lu", (u_long)cr->cr_groups[i]);
/freebsd-13-stable/sys/security/mac_bsdextended/
H A Dmac_bsdextended.c259 if (cred->cr_groups[i]
261 cred->cr_groups[i]
/freebsd-13-stable/sys/compat/linux/
H A Dlinux_uid16.c197 * cr_groups[0] holds egid. Setting the whole set from
199 * Keep cr_groups[0] unchanged to prevent that.
214 bsd_gidset = newcred->cr_groups;
248 bsd_gidset = cred->cr_groups;
252 * cr_groups[0] holds egid. Returning the whole set
253 * here will cause a duplicate. Exclude cr_groups[0]
/freebsd-13-stable/usr.sbin/rpc.lockd/
H A Dkern.c246 xucred->cr_groups[0],
248 &xucred->cr_groups[1]);
/freebsd-13-stable/sys/ddb/
H A Ddb_ps.c474 db_printf("%d", p->p_ucred->cr_groups[i]);
/freebsd-13-stable/sys/netsmb/
H A Dsmb_conn.c428 gid = cred->cr_groups[0];
771 gid = cred->cr_groups[0];
/freebsd-13-stable/sys/security/audit/
H A Daudit.c285 ar->k_ar.ar_subj_egid = cred->cr_groups[0];
H A Daudit_arg.c414 ar->k_ar.ar_arg_egid = cred->cr_groups[0];
/freebsd-13-stable/sys/ufs/ufs/
H A Dufs_vnops.c1996 ucred.cr_groups = &ucred_group;
1997 ucred.cr_groups[0] = dp->i_gid;
2782 ucred.cr_groups = &ucred_group;
2783 ucred.cr_groups[0] = pdir->i_gid;
/freebsd-13-stable/lib/libkvm/
H A Dkvm_proc.c163 kvm_read(kd, (u_long)ucred.cr_groups, kp->ki_groups,
/freebsd-13-stable/sys/fs/nfs/
H A Dnfs_commonport.c377 * field or cr_groups[0]...
384 cred->cr_groups[0] = 0;

Completed in 233 milliseconds

12