/freebsd-13-stable/tools/regression/sockets/unix_cmsg/ |
H A D | t_peercred.c | 81 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 D | cred.h | 51 #define crgetgroups(cred) ((cred)->cr_groups)
|
/freebsd-13-stable/sys/sys/ |
H A D | ucred.h | 82 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 D | authunix_prot.c | 102 if (!xdr_uint32_t(xdrs, &cred->cr_groups[0])) 115 if (!xdr_uint32_t(xdrs, &cred->cr_groups[i + 1]))
|
H A D | svc_auth_unix.c | 92 xcr->cr_groups[0] = IXDR_GET_UINT32(buf); 100 xcr->cr_groups[i + 1] = IXDR_GET_INT32(buf);
|
H A D | svc_auth.c | 211 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 D | kern_prot.c | 265 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 D | uipc_usrreq.c | 2249 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 D | fuse_internal.h | 213 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 D | fuse_ipc.c | 243 reused_creds.cr_groups = reused_groups; 881 ihead->gid = cred->cr_groups[0];
|
H A D | fuse_vnops.c | 658 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 D | cred.h | 58 #define crgetgroups(cred) ((cred)->cr_groups)
|
/freebsd-13-stable/cddl/lib/libdtrace/ |
H A D | psinfo.d | 60 pr_egid = T->p_ucred->cr_groups[0];
|
/freebsd-13-stable/usr.sbin/mountd/ |
H A D | mountd.c | 126 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 D | procfs_status.c | 157 sbuf_printf(sb, ",%lu", (u_long)cr->cr_groups[i]);
|
/freebsd-13-stable/sys/security/mac_bsdextended/ |
H A D | mac_bsdextended.c | 259 if (cred->cr_groups[i] 261 cred->cr_groups[i]
|
/freebsd-13-stable/sys/compat/linux/ |
H A D | linux_uid16.c | 197 * 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 D | kern.c | 246 xucred->cr_groups[0], 248 &xucred->cr_groups[1]);
|
/freebsd-13-stable/sys/ddb/ |
H A D | db_ps.c | 474 db_printf("%d", p->p_ucred->cr_groups[i]);
|
/freebsd-13-stable/sys/netsmb/ |
H A D | smb_conn.c | 428 gid = cred->cr_groups[0]; 771 gid = cred->cr_groups[0];
|
/freebsd-13-stable/sys/security/audit/ |
H A D | audit.c | 285 ar->k_ar.ar_subj_egid = cred->cr_groups[0];
|
H A D | audit_arg.c | 414 ar->k_ar.ar_arg_egid = cred->cr_groups[0];
|
/freebsd-13-stable/sys/ufs/ufs/ |
H A D | ufs_vnops.c | 1996 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 D | kvm_proc.c | 163 kvm_read(kd, (u_long)ucred.cr_groups, kp->ki_groups,
|
/freebsd-13-stable/sys/fs/nfs/ |
H A D | nfs_commonport.c | 377 * field or cr_groups[0]... 384 cred->cr_groups[0] = 0;
|