Searched refs:kauth_cred_getuid (Results 1 - 25 of 45) sorted by relevance

12

/darwin-on-arm/xnu/bsd/kern/
H A Dkern_priv.c96 if (kauth_cred_getuid(cred) == 0) {
H A Dsysv_ipc.c103 uid_t uid = kauth_cred_getuid(cred); /* avoid multiple calls */
H A Dkern_resource.c208 uap->who = kauth_cred_getuid(kauth_cred_get());
214 if (kauth_cred_getuid(my_cred) == uap->who &&
261 if (kauth_cred_getuid(my_cred) == pun->who) {
358 uap->who = kauth_cred_getuid(kauth_cred_get());
439 kauth_cred_getuid(ucred) != kauth_cred_getuid(my_cred) &&
440 kauth_cred_getruid(ucred) != kauth_cred_getuid(my_cred)) {
478 kauth_cred_getuid(ucred) != kauth_cred_getuid(target_cred) &&
479 kauth_cred_getruid(ucred) != kauth_cred_getuid(target_cre
[all...]
H A Dprocess_policy.c134 kauth_cred_getuid(my_cred) != kauth_cred_getuid(target_cred) &&
135 kauth_cred_getruid(my_cred) != kauth_cred_getuid(target_cred))
H A Dsys_socket.c450 sb64->st_uid = kauth_cred_getuid(so->so_cred);
460 sb->st_uid = kauth_cred_getuid(so->so_cred);
H A Dsysv_sem.c728 semakptr->u.sem_perm.cuid = kauth_cred_getuid(cred);
729 semakptr->u.sem_perm.uid = kauth_cred_getuid(cred);
1000 sema[semid].u.sem_perm.cuid = kauth_cred_getuid(cred);
1001 sema[semid].u.sem_perm.uid = kauth_cred_getuid(cred);
H A Dkern_credential.c1844 * kauth_cred_getuid
1853 kauth_cred_getuid(kauth_cred_t cred) function
2198 return(kauth_cred_uid2guid(kauth_cred_getuid(cred), guidp));
2262 return(kauth_cred_uid2ntsid(kauth_cred_getuid(cred), sidp));
3102 return(kauth_cred_getuid(cred) == 0);
3185 return(kauth_cred_getuid(kauth_cred_get()));
5537 if (kauth_cred_getuid(cred) == object_uid && (mode_req & mode_owner) == mode_req)
H A Dkern_prot.c1835 if (kauth_cred_getuid(cred) == 0) {
2016 sec_token.val[0] = kauth_cred_getuid(my_cred);
2071 xcr->cr_uid = kauth_cred_getuid(cr);
H A Dkern_core.c279 proc_core_name(core_proc->p_comm, kauth_cred_getuid(cred),
H A Dkern_sysctl.c638 uid = kauth_cred_getuid(my_cred);
640 if ((uid != kauth_cred_getuid(kauth_cred_get()))
1230 uid = kauth_cred_getuid(my_cred);
1526 ep->e_ucred.cr_uid = kauth_cred_getuid(my_cred);
1586 ep->e_ucred.cr_uid = kauth_cred_getuid(my_cred);
1931 uid = kauth_cred_getuid(my_cred);
1934 if ((uid != kauth_cred_getuid(kauth_cred_get()))
H A Dproc_info.c261 uid = kauth_cred_getuid(my_cred);
496 pbsd->pbi_uid = kauth_cred_getuid(my_cred);
1707 uid = kauth_cred_getuid(my_cred) ;
1710 if ((uid != kauth_cred_getuid(kauth_cred_get()))
H A Dsysv_msg.c668 msqptr->u.msg_perm.cuid = kauth_cred_getuid(cred);
669 msqptr->u.msg_perm.uid = kauth_cred_getuid(cred);
/darwin-on-arm/xnu/bsd/hfs/
H A Dhfs_quota.c239 cp->c_uid == kauth_cred_getuid(cred)) {
262 if (cp->c_uid == kauth_cred_getuid(cred))
272 cp->c_uid == kauth_cred_getuid(cred)) {
385 uid == kauth_cred_getuid(cred)) {
407 (uid == kauth_cred_getuid(cred))) {
444 cp->c_uid == kauth_cred_getuid(cred)) {
467 if (cp->c_uid == kauth_cred_getuid(cred))
477 cp->c_uid == kauth_cred_getuid(cred)) {
H A Dhfs_readwrite.c1629 kauth_cred_getuid(cred) != vfsp->f_owner) {
1664 kauth_cred_getuid(cred) != vfsp->f_owner) {
1690 kauth_cred_getuid(cred) != vfsp->f_owner) {
1710 kauth_cred_getuid(cred) != vfsp->f_owner) {
1741 kauth_cred_getuid(cred) != vfsp->f_owner) {
1790 kauth_cred_getuid(cred) != vfsp->f_owner) {
1869 kauth_cred_getuid(cred) != vfsp->f_owner) {
1901 kauth_cred_getuid(cred) != vfsp->f_owner) {
1944 if (kauth_cred_getuid(cred) != vfsp->f_owner &&
1984 if (kauth_cred_getuid(cre
[all...]
H A Dhfs_attrlist.c549 cuid = kauth_cred_getuid(vfs_context_ucred(ctx));
1056 obj_uid = kauth_cred_getuid(cred);
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_pcb.c290 if (kauth_cred_getuid(so->so_cred) &&
300 (kauth_cred_getuid(so->so_cred) !=
301 kauth_cred_getuid(t->inp_socket->so_cred)) &&
316 (kauth_cred_getuid(so->so_cred) !=
317 kauth_cred_getuid(t->inp_socket->so_cred)) &&
1084 *uid = kauth_cred_getuid(
1112 *uid = kauth_cred_getuid(
1126 *uid = kauth_cred_getuid(
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_serv.c308 nfsrv_update_user_stat(nx, nd, kauth_cred_getuid(nd->nd_cr), 1, 0, 0);
431 nfsrv_update_user_stat(nx, nd, kauth_cred_getuid(nd->nd_cr), 1, 0, 0);
506 saved_uid = kauth_cred_getuid(nd->nd_cr);
539 if ((vap->va_uid == saved_uid) && (kauth_cred_getuid(nd->nd_cr) != saved_uid)) {
541 VATTR_SET(vap, va_uid, kauth_cred_getuid(nd->nd_cr));
611 saved_uid = kauth_cred_getuid(nd->nd_cr);
742 nfsrv_update_user_stat(nx, nd, kauth_cred_getuid(nd->nd_cr), 1, 0, 0);
841 saved_uid = kauth_cred_getuid(nd->nd_cr);
1198 saved_uid = kauth_cred_getuid(nd->nd_cr);
1515 saved_uid = kauth_cred_getuid(n
[all...]
H A Dnfs4_vnops.c158 uid = kauth_cred_getuid(vfs_context_ucred(ctx));
1807 uid_t uid = kauth_cred_getuid(cred);
1813 if (kauth_cred_getuid(noop->noo_cred) == uid)
2288 NP(nofp->nof_np, "nfs: open(R) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2293 NP(nofp->nof_np, "nfs: open(R) count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2300 NP(nofp->nof_np, "nfs: open(W) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2305 NP(nofp->nof_np, "nfs: open(W) count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2312 NP(nofp->nof_np, "nfs: open(RW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2317 NP(nofp->nof_np, "nfs: open(RW) count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
2326 NP(nofp->nof_np, "nfs: open(R,DW) delegated count underrun, %d", kauth_cred_getuid(nof
[all...]
H A Dnfs_vnops.c498 uid = kauth_cred_getuid(vfs_context_ucred(ctx));
633 uid = kauth_cred_getuid(vfs_context_ucred(ctx));
773 NP(np, "nfs_vnop_open: LOST %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
823 NP(np, "nfs_vnop_open: deny mode foregone on create, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred));
839 NP(np, "nfs_vnop_open: create close error %d, %d", error, kauth_cred_getuid(nofp->nof_owner->noo_cred));
855 NP(np, "nfs_vnop_open: error %d, %d", error, kauth_cred_getuid(noop->noo_cred));
1071 NP(np, "nfs_vnop_close: no open file for owner, error %d, %d", error, kauth_cred_getuid(noop->noo_cred));
1083 NP(np, "nfs_vnop_close: close error %d, %d", error, kauth_cred_getuid(noop->noo_cred));
1095 NP(np, "nfs_vnop_close: error %d, %d", error, kauth_cred_getuid(noop->noo_cred));
1123 kauth_cred_getuid(nof
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Din_pcb.c506 if (kauth_cred_getuid(so->so_cred) &&
515 (kauth_cred_getuid(so->so_cred) !=
516 kauth_cred_getuid(t->inp_socket->so_cred)) &&
1406 *uid = kauth_cred_getuid(
1437 *uid = kauth_cred_getuid(
1461 *uid = kauth_cred_getuid(
1475 *uid = kauth_cred_getuid(
H A Din_pcblist.c129 xso->so_uid = kauth_cred_getuid(so->so_cred);
/darwin-on-arm/xnu/bsd/vm/
H A Dvm_unix.c480 myuid = kauth_cred_getuid(mycred);
502 if ((kauth_cred_getuid(targetcred) != myuid) ||
686 || ((kauth_cred_getuid(target_cred) == kauth_cred_getuid(kauth_cred_get())) &&
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_vfsops.c560 mp->mnt_vfsstat.f_owner = kauth_cred_getuid(kauth_cred_get());
/darwin-on-arm/xnu/bsd/sys/
H A Dkauth.h243 extern uid_t kauth_cred_getuid(kauth_cred_t _cred);
H A Dproc_internal.h188 p->p_uid = kauth_cred_getuid(p->p_ucred); \

Completed in 221 milliseconds

12