Searched refs:vc_ucred (Results 1 - 24 of 24) sorted by relevance

/darwin-on-arm/xnu/bsd/kern/
H A Dtty_tty.c107 context.vc_ucred = kauth_cred_proc_ref(p);
111 kauth_cred_unref(&context.vc_ucred);
139 context.vc_ucred = kauth_cred_proc_ref(p);
143 kauth_cred_unref(&context.vc_ucred);
162 context.vc_ucred = NOCRED;
181 context.vc_ucred = NOCRED;
219 context.vc_ucred = NOCRED;
235 context.vc_ucred = NOCRED;
H A Dsys_generic.c214 context.vc_ucred = fp->f_fglob->fg_cred;
253 context.vc_ucred = fp->f_fglob->fg_cred;
474 context.vc_ucred = fp->f_fglob->fg_cred;
522 context.vc_ucred = fp->f_fglob->fg_cred;
677 context.vc_ucred = fp->f_cred;
712 context.vc_ucred = fp->f_cred;
781 context.vc_ucred = fp->f_fglob->fg_cred;
784 error = mac_file_check_ioctl(context.vc_ucred, fp->f_fglob, uap->com);
1386 context.vc_ucred = fp->f_cred;
H A Dbsd_init.c384 * of the uu_context.vc_ucred field so that the uthread structure can be
587 ut->uu_context.vc_ucred = kernproc->p_ucred;
887 context.vc_ucred = kernproc->p_ucred;
H A Dkern_exit.c618 context.vc_ucred = kauth_cred_proc_ref(p);
622 kauth_cred_unref(&context.vc_ucred);
1767 context.vc_ucred = kauth_cred_proc_ref(p);
1771 kauth_cred_unref(&context.vc_ucred);
H A Dkern_aio.c2360 context.vc_ucred = fp->f_fglob->fg_cred;
2401 context.vc_ucred = fp->f_fglob->fg_cred;
2488 context.vc_ucred = fp->f_fglob->fg_cred;
H A Dkern_exec.c1844 context.vc_ucred = p->p_ucred; /* XXX must NOT be kauth_cred_get() */
2301 context.vc_ucred = kauth_cred_proc_ref(p); /* XXX must NOT be kauth_cred_get() */
2330 kauth_cred_unref(&context.vc_ucred);
2338 kauth_cred_unref(&context.vc_ucred);
H A Dkern_descrip.c412 context.vc_ucred = fp->f_fglob->fg_cred;
698 context.vc_ucred = fp->f_cred;
4030 kauth_cred_ref(ctx->vc_ucred);
4034 fp->f_cred = ctx->vc_ucred;
4559 context.vc_ucred = fg->fg_cred;
4639 context.vc_ucred = fp->f_fglob->fg_cred;
H A Duipc_syscalls.c2132 context.vc_ucred = fp->f_fglob->fg_cred;
2136 error = mac_socket_check_send(context.vc_ucred, so, NULL);
H A Dkdebug.c2041 context.vc_ucred = fp->f_fglob->fg_cred;
/darwin-on-arm/xnu/bsd/sys/
H A Duser.h96 kauth_cred_t vc_ucred; /* per thread credential */ member in struct:vfs_context
103 #define uu_ucred uu_context.vc_ucred
H A Dkauth.h762 # define KAUTH_DEBUG_CTX(_c) KAUTH_DEBUG("p = %p c = %p", _c->vc_proc, _c->vc_ucred)
H A Dvnode.h170 #define cn_cred (cn_context->vc_ucred + 0) /* non-lvalue */
/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_worker.c528 old_audit_cred = audit_ctx.vc_ucred;
530 audit_ctx.vc_ucred = cred;
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_quota.c422 context.vc_ucred = qfp->qf_cred;
481 context.vc_ucred = qfp->qf_cred;
803 context.vc_ucred = qfp->qf_cred;
1023 context.vc_ucred = dq->dq_qfile->qf_cred;
H A Dvfs_fslog.c425 context.vc_ucred = kauth_cred_get();
H A Dkpi_vfs.c1258 return (suser(ctx->vc_ucred, NULL));
1455 safecred = ctx->vc_ucred;
1462 newcontext->vc_ucred = safecred;
1476 if (ut->uu_context.vc_ucred != NULL) {
1506 if (kerncontext.vc_ucred == NOCRED)
1507 kerncontext.vc_ucred = kernproc->p_ucred;
1519 if (IS_VALID_CRED(ctx->vc_ucred))
1520 kauth_cred_unref(&ctx->vc_ucred);
1530 return (ctx->vc_ucred);
H A Dvfs_vnops.c838 context.vc_ucred = cred;
1385 context.vc_ucred = fp->f_fglob->fg_cred;
H A Dvfs_subr.c1318 context.vc_ucred = FSCRED;
5889 result = vauth_node_owner(vcp->vap, vcp->ctx->vc_ucred);
5934 error = vauth_node_group(vcp->vap, vcp->ctx->vc_ucred, ismember, idontknow);
5958 result = vauth_node_owner(vcp->dvap, vcp->ctx->vc_ucred);
6002 error = vauth_node_group(vcp->dvap, vcp->ctx->vc_ucred, ismember, idontknow);
6159 kauth_cred_getuid(vcp->ctx->vc_ucred),
6190 kauth_cred_t cred = vcp->ctx->vc_ucred;
6323 kauth_cred_t cred = vcp->ctx->vc_ucred;
6784 cred = ctx->vc_ucred;
H A Dvfs_journal.c449 context.vc_ucred = NOCRED;
1659 context.vc_ucred = FSCRED;
1832 context.vc_ucred = FSCRED;
2081 context.vc_ucred = FSCRED;
H A Dvfs_syscalls.c3145 context.vc_ucred = fp->f_fglob->fg_cred;
4378 context.vc_ucred = NULL;
4421 context.vc_ucred = kauth_cred_copy_real(kauth_cred_get());
4579 if (IS_VALID_CRED(context.vc_ucred))
4580 kauth_cred_unref(&context.vc_ucred);
4613 context.vc_ucred = kauth_cred_copy_real(kauth_cred_get());
4659 kauth_cred_unref(&context.vc_ucred);
/darwin-on-arm/xnu/bsd/dev/vn/
H A Dvn.c515 context.vc_ucred = vn->sc_cred;
596 context.vc_ucred = vn->sc_cred;
798 context.vc_ucred = vn->sc_cred;
900 context.vc_ucred = vn->sc_cred;
1297 context.vc_ucred = cred;
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_syscalls.c628 context.vc_ucred = fp->f_fglob->fg_cred;
1080 context.vc_ucred = NULL;
1524 kauth_cred_unref(&fp->fm_context.vc_ucred);
H A Dnfs_serv.c1064 kauth_cred_unref(&fp->fm_context.vc_ucred);
2615 ctx->vc_ucred = nd->nd_cr = saved_cred;
2905 ctx->vc_ucred = nd->nd_cr = saved_cred;
H A Dnfs_subs.c3302 ctx->vc_ucred = nd->nd_cr;

Completed in 465 milliseconds