Home
last modified time | relevance | path

Searched refs:xcr (Results 1 – 6 of 6) sorted by relevance

/freebsd/sys/rpc/
H A Dsvc_auth_unix.c59 struct xucred *xcr; in _svcauth_unix() local
62 xcr = rqst->rq_clntcred; in _svcauth_unix()
87 xcr->cr_uid = IXDR_GET_UINT32(buf); in _svcauth_unix()
88 xcr->cr_gid = IXDR_GET_UINT32(buf); in _svcauth_unix()
113 xcr->cr_sgroups[i] = IXDR_GET_INT32(buf); in _svcauth_unix()
117 xcr->cr_ngroups = MIN(supp_ngroups + 1, XU_NGROUPS); in _svcauth_unix()
118 } else if (!xdr_authunix_parms(&xdrs, &time, xcr)) in _svcauth_unix()
H A Dauth_unix.c126 struct xucred xcr; in authunix_create() local
153 cru2x(cred, &xcr); in authunix_create()
157 if (!memcmp(&xcr, &au->au_xcred, sizeof(xcr))) { in authunix_create()
186 au->au_xcred = xcr; in authunix_create()
198 cru2x(cred, &xcr); in authunix_create()
199 if (! xdr_authunix_parms(&xdrs, &time, &xcr)) in authunix_create()
214 if (!memcmp(&xcr, &tau->au_xcred, sizeof(xcr))) { in authunix_create()
295 struct xucred xcr; in authunix_refresh() local
310 stat = xdr_authunix_parms(&xdrs, &time, &xcr); in authunix_refresh()
320 stat = xdr_authunix_parms(&xdrs, &time, &xcr); in authunix_refresh()
H A Dsvc_auth.c176 struct xucred *xcr; in svc_getcred() local
205 xcr = (struct xucred *) rqst->rq_clntcred; in svc_getcred()
206 if (xcr->cr_ngroups <= 0) in svc_getcred()
209 cr->cr_uid = cr->cr_ruid = cr->cr_svuid = xcr->cr_uid; in svc_getcred()
210 crsetgroups_and_egid(cr, xcr->cr_ngroups, xcr->cr_groups, GID_NOGROUP); in svc_getcred()
/freebsd/sys/sys/
H A Ducred.h257 void cru2x(struct ucred *cr, struct xucred *xcr);
258 void cru2xt(struct thread *td, struct xucred *xcr);
/freebsd/sys/kern/
H A Dkern_prot.c2737 cru2x(struct ucred *cr, struct xucred *xcr) in cru2x() argument
2741 bzero(xcr, sizeof(*xcr)); in cru2x()
2742 xcr->cr_version = XUCRED_VERSION; in cru2x()
2743 xcr->cr_uid = cr->cr_uid; in cru2x()
2744 xcr->cr_gid = cr->cr_gid; in cru2x()
2751 ngroups = MIN(cr->cr_ngroups + 1, nitems(xcr->cr_groups)); in cru2x()
2752 xcr->cr_ngroups = ngroups; in cru2x()
2753 bcopy(cr->cr_groups, xcr->cr_sgroups, in cru2x()
2758 cru2xt(struct thread *td, struct xucred *xcr) in cru2xt() argument
2761 cru2x(td->td_ucred, xcr); in cru2xt()
[all …]
/freebsd/sys/contrib/libb2/
H A Dblake2-dispatch.c67 static inline uint64_t xgetbv(uint32_t xcr) in xgetbv() argument
73 : "c"(xcr) in xgetbv()