xucred
struct xucred peercred;
struct xucred xuc;
struct xucred xu;
struct xucred xu;
cru2x(struct ucred *cr, struct xucred *xcr)
cru2xt(struct thread *td, struct xucred *xcr)
struct xucred xu;
db_print_xucred(int indent, struct xucred *xu)
struct xucred xuc;
error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred));
struct xucred xuc;
error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred));
struct xucred xuc;
error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred));
struct xucred xuc;
error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred));
struct xucred xuc;
error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred));
struct xucred xuc;
if (req->oldlen != sizeof(struct xucred))
error = SYSCTL_OUT(req, &xuc, sizeof(struct xucred));
struct xucred lm_cred; /* user cred for lock req */
struct xucred xcr;
struct xucred xcr;
struct xucred au_xcred;
xdr_authunix_parms(XDR *xdrs, uint32_t *time, struct xucred *cred)
struct xucred;
bool_t xdr_authunix_parms(struct XDR *xdrs, uint32_t *time, struct xucred *cred);
struct xucred *xcr;
xcr = (struct xucred *) rqst->rq_clntcred;
struct xucred *xcr;
struct xucred ar_subj_cred;
struct xucred ex_anon; /* mapping for anonymous user */
struct xucred ex_anon; /* mapping for anonymous user */
void cru2x(struct ucred *cr, struct xucred *xcr);
void cru2xt(struct thread *td, struct xucred *xcr);
struct xucred unp_peercred; /* (p) peer credentials if applicable */
len = sizeof(xucred);
if (getsockopt(fd, 0, LOCAL_PEERCRED, &xucred, &len) < 0) {
if (check_xucred(&xucred, len) < 0)
struct xucred xucred;
len = sizeof(xucred);
if (getsockopt(fd2, 0, LOCAL_PEERCRED, &xucred, &len) < 0) {
if (check_xucred(&xucred, len) < 0) {
check_xucred(const struct xucred *xucred, socklen_t len)
if (len != sizeof(*xucred)) {
(size_t)len, sizeof(*xucred));
uc_dbgmsg("xucred.cr_version %u", xucred->cr_version);
uc_dbgmsg("xucred.cr_uid %lu", (u_long)xucred->cr_uid);
uc_dbgmsg("xucred.cr_ngroups %d", xucred->cr_ngroups);
if (xucred->cr_version != XUCRED_VERSION) {
xucred->cr_version, XUCRED_VERSION);
if (xucred->cr_uid != uc_cfg.proc_cred.euid) {
(u_long)xucred->cr_uid, (u_long)uc_cfg.proc_cred.euid);
if (xucred->cr_ngroups == 0) {
if (xucred->cr_ngroups < 0) {
if (xucred->cr_ngroups > XU_NGROUPS) {
xucred->cr_ngroups, XU_NGROUPS);
if (xucred->cr_groups[0] != uc_cfg.proc_cred.egid) {
(u_long)xucred->cr_groups[0], (u_long)uc_cfg.proc_cred.egid);
if (uc_check_groups("xucred.cr_groups", xucred->cr_groups,
"xucred.cr_ngroups", xucred->cr_ngroups, false) < 0)
struct xucred xucred;
struct xucred uc;
set_auth(CLIENT *cl, struct xucred *xucred)
ngroups = xucred->cr_ngroups;
groups = &xucred->cr_groups[0];
if (groups == &xucred->cr_gid) {
xucred->cr_uid,
xucred->cr_gid,
static void set_auth(CLIENT *cl, struct xucred *ucred);