/freebsd/sys/kern/ |
H A D | kern_prot.c | 290 td->td_retval[1] = td->td_ucred->cr_groups[0]; in sys_getgid() 310 td->td_retval[0] = td->td_ucred->cr_groups[0]; in sys_getegid() 336 error = copyout(cred->cr_groups, uap->gidset, ngrp * sizeof(gid_t)); in sys_getgroups() 1083 gid != oldcred->cr_groups[0] && /* allow setgid(getegid()) */ in sys_setgid() 1095 gid == oldcred->cr_groups[0] || in sys_setgid() 1124 if (oldcred->cr_groups[0] != gid) { in sys_setgid() 1170 if (oldcred->cr_groups[0] != egid) { in sys_setegid() 1257 mac_cred_check_setgroups(oldcred, 1, oldcred->cr_groups) : in kern_setgroups() 1396 (egid != (gid_t)-1 && egid != oldcred->cr_groups[0] && in sys_setregid() 1401 if (egid != (gid_t)-1 && oldcred->cr_groups[0] != egid) { in sys_setregid() [all …]
|
H A D | uipc_usrreq.c | 2663 td->td_ucred->cr_groups[i]; in unp_internalize() 2829 sc->sc_groups[i] = td->td_ucred->cr_groups[i]; in unp_addsockcred() 2840 sc->sc_groups[i] = td->td_ucred->cr_groups[i]; in unp_addsockcred() 3539 db_printf("%s%u", comma ? ", " : "", xu->cr_groups[i]); in db_print_xucred()
|
/freebsd/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()
|
/freebsd/sys/sys/ |
H A D | ucred.h | 97 gid_t *cr_groups; /* groups */ member 115 gid_t cr_groups[XU_NGROUPS]; /* groups */ member 124 #define cr_gid cr_groups[0] 247 return (gid == cred->cr_groups[0] || gid == cred->cr_rgid || in group_is_primary()
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_internal.h | 211 basecred->cr_groups[0] == usercred->cr_groups[0] && in fuse_match_cred() 212 basecred->cr_groups[0] == usercred->cr_rgid && in fuse_match_cred() 213 basecred->cr_groups[0] == usercred->cr_svgid) in fuse_match_cred()
|
H A D | fuse_ipc.c | 241 reused_creds.cr_groups = reused_groups; in fuse_interrupt_send() 876 ihead->gid = cred->cr_groups[0]; in fuse_setup_ihead()
|
/freebsd/sys/rpc/ |
H A D | authunix_prot.c | 96 if (!xdr_uint32_t(xdrs, &cred->cr_groups[0])) in xdr_authunix_parms() 109 if (!xdr_uint32_t(xdrs, &cred->cr_groups[i + 1])) in xdr_authunix_parms()
|
H A D | svc_auth_unix.c | 86 xcr->cr_groups[0] = IXDR_GET_UINT32(buf); in _svcauth_unix() 94 xcr->cr_groups[i + 1] = IXDR_GET_INT32(buf); in _svcauth_unix()
|
H A D | svc_auth.c | 209 crsetgroups(cr, xcr->cr_ngroups, xcr->cr_groups); in svc_getcred()
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | cred.h | 62 #define crgetgroups(cr) ((cr)->cr_groups)
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | cred.h | 49 #define crgetgroups(cred) ((cred)->cr_groups)
|
/freebsd/usr.sbin/mountd/ |
H A D | mountd.c | 113 gid_t *cr_groups; member 1615 anon.cr_groups = tmp_groups; in get_exportlist_one() 1616 anon.cr_groups[0] = nogroup(); in get_exportlist_one() 2414 COMPARE_ARRAYS(cr0->cr_groups, cr1->cr_groups, cr0->cr_ngroups); in compare_cred() 3087 if (ep->ex_defanon.cr_groups != ep->ex_defanon.cr_smallgrps) in free_exp() 3088 free(ep->ex_defanon.cr_groups); in free_exp() 3221 eap->ex_groups = anoncrp->cr_groups; in do_mount() 3646 assert(cr->cr_groups == tmp_groups); in parsecred() 3681 cr->cr_groups, &cr->cr_ngroups) != 0) { in parsecred() 3712 cr->cr_groups[cr->cr_ngroups++] = group; in parsecred() [all …]
|
/freebsd/sys/compat/linux/ |
H A D | linux_uid16.c | 127 bsd_gidset = newcred->cr_groups; in linux_setgroups16() 157 bsd_gidset = cred->cr_groups; in linux_getgroups16()
|
/freebsd/cddl/lib/libdtrace/ |
H A D | psinfo.d | 58 pr_egid = T->p_ucred->cr_groups[0];
|
/freebsd/sys/fs/procfs/ |
H A D | procfs_status.c | 149 sbuf_printf(sb, ",%lu", (u_long)cr->cr_groups[i]); in procfs_doprocstatus()
|
/freebsd/sys/security/mac_bsdextended/ |
H A D | mac_bsdextended.c | 255 if (cred->cr_groups[i] in ugidfw_rulecheck() 257 cred->cr_groups[i] in ugidfw_rulecheck()
|
/freebsd/usr.sbin/rpc.lockd/ |
H A D | kern.c | 243 xucred->cr_groups[0], in set_auth() 245 &xucred->cr_groups[1]); in set_auth()
|
/freebsd/sys/netsmb/ |
H A D | smb_conn.c | 425 gid = cred->cr_groups[0]; in smb_vc_create() 768 gid = cred->cr_groups[0]; in smb_share_create()
|
/freebsd/sys/ddb/ |
H A D | db_ps.c | 464 db_printf("%d", p->p_ucred->cr_groups[i]); in DB_SHOW_COMMAND()
|
/freebsd/sys/security/audit/ |
H A D | audit.c | 282 ar->k_ar.ar_subj_egid = cred->cr_groups[0]; in audit_record_ctor()
|
H A D | audit_arg.c | 411 ar->k_ar.ar_arg_egid = cred->cr_groups[0]; in audit_arg_process()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_vnops.c | 2082 ucred.cr_groups = &ucred_group; in ufs_mkdir() 2083 ucred.cr_groups[0] = dp->i_gid; in ufs_mkdir() 2838 ucred.cr_groups = &ucred_group; in ufs_makeinode() 2839 ucred.cr_groups[0] = pdir->i_gid; in ufs_makeinode()
|
/freebsd/sys/security/mac_do/ |
H A D | mac_do.c | 1644 const gid_t *const old_groups = old_cred->cr_groups; in rule_grant_supplementary_groups() 1645 const gid_t *const new_groups = new_cred->cr_groups; in rule_grant_supplementary_groups()
|
/freebsd/lib/libkvm/ |
H A D | kvm_proc.c | 158 kvm_read(kd, (u_long)ucred.cr_groups, kp->ki_groups, in kvm_proclist()
|
/freebsd/sys/fs/nfs/ |
H A D | nfs_commonport.c | 382 cred->cr_groups[0] = 0; in newnfs_setroot()
|