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

/macosx-10.9.5/xnu-2422.115.4/bsd/kern/
H A Dtty_tty.c98 context.vc_ucred = kauth_cred_proc_ref(p);
156 kauth_cred_unref(&context.vc_ucred);
172 context.vc_ucred = NOCRED;
191 context.vc_ucred = NOCRED;
229 context.vc_ucred = NOCRED;
245 context.vc_ucred = NOCRED;
H A Dsys_generic.c225 context.vc_ucred = fp->f_fglob->fg_cred;
264 context.vc_ucred = fp->f_fglob->fg_cred;
483 context.vc_ucred = fp->f_fglob->fg_cred;
531 context.vc_ucred = fp->f_fglob->fg_cred;
689 context.vc_ucred = fp->f_cred;
724 context.vc_ucred = fp->f_cred;
836 context.vc_ucred = fp->f_fglob->fg_cred;
839 error = mac_file_check_ioctl(context.vc_ucred, fp->f_fglob, com);
1357 context.vc_ucred = fp->f_cred;
H A Dbsd_init.c383 * of the uu_context.vc_ucred field so that the uthread structure can be
589 ut->uu_context.vc_ucred = kernproc->p_ucred;
898 context.vc_ucred = kernproc->p_ucred;
H A Dkern_exit.c641 context.vc_ucred = kauth_cred_proc_ref(p);
652 kauth_cred_unref(&context.vc_ucred);
1832 context.vc_ucred = kauth_cred_proc_ref(p);
1843 kauth_cred_unref(&context.vc_ucred);
H A Dkern_aio.c2371 context.vc_ucred = fp->f_fglob->fg_cred;
2408 context.vc_ucred = fp->f_fglob->fg_cred;
2495 context.vc_ucred = fp->f_fglob->fg_cred;
H A Dkern_exec.c1980 context.vc_ucred = p->p_ucred; /* XXX must NOT be kauth_cred_get() */
2513 context.vc_ucred = kauth_cred_proc_ref(p); /* XXX must NOT be kauth_cred_get() */
2542 kauth_cred_unref(&context.vc_ucred);
2550 kauth_cred_unref(&context.vc_ucred);
H A Dkern_descrip.c466 context.vc_ucred = fp->f_fglob->fg_cred;
774 context.vc_ucred = fp->f_cred;
4257 kauth_cred_ref(ctx->vc_ucred);
4261 fp->f_cred = ctx->vc_ucred;
4738 context.vc_ucred = fg->fg_cred;
4825 context.vc_ucred = fp->f_fglob->fg_cred;
H A Duipc_syscalls.c2416 context.vc_ucred = fp->f_fglob->fg_cred;
2420 error = mac_socket_check_send(context.vc_ucred, so, NULL);
H A Dkdebug.c2513 context.vc_ucred = fp->f_fglob->fg_cred;
/macosx-10.9.5/xnu-2422.115.4/bsd/sys/
H A Duser.h96 kauth_cred_t vc_ucred; /* per thread credential */ member in struct:vfs_context
123 #define uu_ucred uu_context.vc_ucred
H A Dkauth.h759 # define KAUTH_DEBUG_CTX(_c) KAUTH_DEBUG("p = %p c = %p", _c->vc_proc, _c->vc_ucred)
H A Dvnode.h172 #define cn_cred (cn_context->vc_ucred + 0) /* non-lvalue */
/macosx-10.9.5/xnu-2422.115.4/bsd/security/audit/
H A Daudit_worker.c528 old_audit_cred = audit_ctx.vc_ucred;
530 audit_ctx.vc_ucred = cred;
/macosx-10.9.5/xnu-2422.115.4/bsd/vfs/
H A Dvfs_fslog.c299 context.vc_ucred = kauth_cred_get();
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 Dkpi_vfs.c1013 return (suser(ctx->vc_ucred, NULL));
1210 safecred = ctx->vc_ucred;
1217 newcontext->vc_ucred = safecred;
1231 if (ut->uu_context.vc_ucred != NULL) {
1261 if (kerncontext.vc_ucred == NOCRED)
1262 kerncontext.vc_ucred = kernproc->p_ucred;
1274 if (IS_VALID_CRED(ctx->vc_ucred))
1275 kauth_cred_unref(&ctx->vc_ucred);
1285 return (ctx->vc_ucred);
H A Dvfs_vnops.c848 context.vc_ucred = cred;
1396 context.vc_ucred = fp->f_fglob->fg_cred;
H A Dvfs_subr.c1318 context.vc_ucred = FSCRED;
5903 result = vauth_node_owner(vcp->vap, vcp->ctx->vc_ucred);
5948 error = vauth_node_group(vcp->vap, vcp->ctx->vc_ucred, ismember, idontknow);
5972 result = vauth_node_owner(vcp->dvap, vcp->ctx->vc_ucred);
6016 error = vauth_node_group(vcp->dvap, vcp->ctx->vc_ucred, ismember, idontknow);
6173 kauth_cred_getuid(vcp->ctx->vc_ucred),
6204 kauth_cred_t cred = vcp->ctx->vc_ucred;
6337 kauth_cred_t cred = vcp->ctx->vc_ucred;
6798 cred = ctx->vc_ucred;
H A Dvfs_journal.c450 context.vc_ucred = NOCRED;
1646 context.vc_ucred = FSCRED;
1827 context.vc_ucred = FSCRED;
2084 context.vc_ucred = FSCRED;
H A Dvfs_syscalls.c3191 context.vc_ucred = fp->f_fglob->fg_cred;
4434 context.vc_ucred = NULL;
4477 context.vc_ucred = kauth_cred_copy_real(kauth_cred_get());
4635 if (IS_VALID_CRED(context.vc_ucred))
4636 kauth_cred_unref(&context.vc_ucred);
4669 context.vc_ucred = kauth_cred_copy_real(kauth_cred_get());
4715 kauth_cred_unref(&context.vc_ucred);
/macosx-10.9.5/xnu-2422.115.4/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;
/macosx-10.9.5/xnu-2422.115.4/bsd/nfs/
H A Dnfs_syscalls.c629 context.vc_ucred = fp->f_fglob->fg_cred;
1081 context.vc_ucred = NULL;
1525 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.c3355 ctx->vc_ucred = nd->nd_cr;

Completed in 306 milliseconds