Home
last modified time | relevance | path

Searched refs:kauth_cred_getuid (Results 1 – 25 of 46) sorted by relevance

12

/xnu-8020.101.4/bsd/kern/
H A Dkern_resource.c242 uap->who = kauth_cred_getuid(kauth_cred_get()); in getpriority()
249 if (kauth_cred_getuid(my_cred) == uap->who && in getpriority()
331 if (kauth_cred_getuid(my_cred) == pun->who) { in puser_donice_callback()
433 uap->who = kauth_cred_getuid(kauth_cred_get()); in setpriority()
546 kauth_cred_getuid(ucred) != kauth_cred_getuid(my_cred) && in donice()
547 kauth_cred_getruid(ucred) != kauth_cred_getuid(my_cred)) { in donice()
590 kauth_cred_getuid(ucred) != kauth_cred_getuid(target_cred) && in set_gpudeny_proc()
591 kauth_cred_getruid(ucred) != kauth_cred_getuid(target_cred)) { in set_gpudeny_proc()
637 kauth_cred_getuid(ucred) != kauth_cred_getuid(target_cred) && in proc_set_darwin_role()
638 kauth_cred_getruid(ucred) != kauth_cred_getuid(target_cred)) { in proc_set_darwin_role()
[all …]
H A Dkern_priv.c104 if (kauth_cred_getuid(cred) == 0) { in priv_check_cred()
H A Dprocess_policy.c147 kauth_cred_getuid(my_cred) != kauth_cred_getuid(target_cred) && in process_policy()
148 kauth_cred_getruid(my_cred) != kauth_cred_getuid(target_cred)) in process_policy()
H A Dsysv_ipc.c103 uid_t uid = kauth_cred_getuid(cred); /* avoid multiple calls */ in ipcperm()
H A Dsys_socket.c386 sb64->st_uid = kauth_cred_getuid(so->so_cred); in soo_stat()
398 sb->st_uid = kauth_cred_getuid(so->so_cred); in soo_stat()
H A Dkern_persona.c869 new_cred_uid = kauth_cred_getuid(new_cred); in proc_set_cred_internal()
956 uid_t uid = kauth_cred_getuid(persona->pna_cred); in persona_proc_adopt()
1025 puid = kauth_cred_getuid(persona->pna_cred); in persona_proc_drop()
1185 uid = kauth_cred_getuid(persona->pna_cred); in persona_get_uid()
H A Dsysv_sem.c631 semakptr->u.sem_perm.cuid = kauth_cred_getuid(cred); in semctl()
632 semakptr->u.sem_perm.uid = kauth_cred_getuid(cred); in semctl()
931 semakptr->u.sem_perm.cuid = kauth_cred_getuid(cred); in semget()
932 semakptr->u.sem_perm.uid = kauth_cred_getuid(cred); in semget()
H A Dkern_prot.c1569 if (kauth_cred_getuid(cred) == 0) { in suser()
1739 sec_token.val[0] = kauth_cred_getuid(my_cred); in set_security_token_task_internal()
1802 xcr->cr_uid = kauth_cred_getuid(cr); in cru2x()
H A Dkern_credential.c582 …if ((kauth_cred_getuid(kauth_cred_get()) != 0) || (proc_getpid(current_proc()) != kauth_resolver_i… in identitysvc()
1950 kauth_cred_getuid(kauth_cred_t cred) in kauth_cred_getuid() function
2422 return kauth_cred_uid2guid(kauth_cred_getuid(cred), guidp); in kauth_cred_getguid()
2486 return kauth_cred_uid2ntsid(kauth_cred_getuid(cred), sidp); in kauth_cred_getntsid()
3359 return kauth_cred_getuid(cred) == 0; in kauth_cred_issuser()
3451 return kauth_cred_getuid(kauth_cred_get()); in kauth_getuid()
4208 uid_t uid = kauth_cred_getuid(cred); in kauth_cred_getgroups()
5441 if (kauth_cred_getuid(cred) == object_uid && (mode_req & mode_owner) == mode_req) { in posix_cred_access()
H A Dkern_core.c309 proc_core_name(core_proc->p_comm, kauth_cred_getuid(cred), in coredump()
H A Dsysv_msg.c664 msqptr->u.msg_perm.cuid = kauth_cred_getuid(cred); in msgget()
665 msqptr->u.msg_perm.uid = kauth_cred_getuid(cred); in msgget()
H A Dproc_info.c412 uid = kauth_cred_getuid(my_cred); in proc_listpids()
672 pbsd->pbi_uid = kauth_cred_getuid(my_cred); in proc_pidbsdinfo()
1395 …ned vnode_lookup for path %s for uid %d\n", __FUNCTION__, buf, (int)kauth_cred_getuid(ctx->vc_ucre… in proc_pidpathinfo_internal()
1397 …: EACCES returned by vnode_lookup for uid %d\n", __FUNCTION__, (int)kauth_cred_getuid(ctx->vc_ucre… in proc_pidpathinfo_internal()
3096 target_uid = kauth_cred_getuid(target_cred); in proc_security_policy()
H A Dkern_authorization.c590 return (kauth_cred_getuid(credential) == 0) ? in kauth_authorize_generic_callback()
/xnu-8020.101.4/bsd/netinet6/
H A Din6_pcb.c379 (u = kauth_cred_getuid(so->so_cred)) != 0) { in in6_pcbbind()
387 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in6_pcbbind()
406 (kauth_cred_getuid(so->so_cred) != in in6_pcbbind()
407 kauth_cred_getuid(t->inp_socket->so_cred)) && in in6_pcbbind()
1372 *uid = kauth_cred_getuid( in in6_pcblookup_hash_exists()
1408 *uid = kauth_cred_getuid( in in6_pcblookup_hash_exists()
1423 *uid = kauth_cred_getuid( in in6_pcblookup_hash_exists()
/xnu-8020.101.4/bsd/nfs/
H A Dnfs_serv.c303 nfsrv_update_user_stat(nx, nd, kauth_cred_getuid(nd->nd_cr), 1, 0, 0); in nfsrv_access()
433 nfsrv_update_user_stat(nx, nd, kauth_cred_getuid(nd->nd_cr), 1, 0, 0); in nfsrv_getattr()
529 saved_uid = kauth_cred_getuid(nd->nd_cr); in nfsrv_setattr()
564 if ((vap->va_uid == saved_uid) && (kauth_cred_getuid(nd->nd_cr) != saved_uid)) { in nfsrv_setattr()
566 VATTR_SET(vap, va_uid, kauth_cred_getuid(nd->nd_cr)); in nfsrv_setattr()
674 saved_uid = kauth_cred_getuid(nd->nd_cr); in nfsrv_lookup()
817 nfsrv_update_user_stat(nx, nd, kauth_cred_getuid(nd->nd_cr), 1, 0, 0); in nfsrv_readlink()
933 saved_uid = kauth_cred_getuid(nd->nd_cr); in nfsrv_read()
1324 saved_uid = kauth_cred_getuid(nd->nd_cr); in nfsrv_write()
1678 saved_uid = kauth_cred_getuid(nd->nd_cr); in nfsrv_writegather()
[all …]
H A Dnfs4_vnops.c178 uid = kauth_cred_getuid(vfs_context_ucred(ctx)); in nfs4_access_rpc()
2007 uid_t uid = kauth_cred_getuid(cred); in nfs_open_owner_find()
2014 …if (use_open_owner(uid, pid, kauth_cred_getuid(noop->noo_cred), noop->noo_pid, split_open_owner)) { in nfs_open_owner_find()
2526 …NP(nofp->nof_np, "nfs: open(R) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->n… in nfs_open_file_remove_open()
2532 … NP(nofp->nof_np, "nfs: open(R) count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred)); in nfs_open_file_remove_open()
2540 …NP(nofp->nof_np, "nfs: open(W) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->n… in nfs_open_file_remove_open()
2546 … NP(nofp->nof_np, "nfs: open(W) count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred)); in nfs_open_file_remove_open()
2554 …NP(nofp->nof_np, "nfs: open(RW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner->… in nfs_open_file_remove_open()
2560 …NP(nofp->nof_np, "nfs: open(RW) count underrun, %d", kauth_cred_getuid(nofp->nof_owner->noo_cred)); in nfs_open_file_remove_open()
2570 …NP(nofp->nof_np, "nfs: open(R,DW) delegated count underrun, %d", kauth_cred_getuid(nofp->nof_owner… in nfs_open_file_remove_open()
[all …]
H A Dnfs_gss.c557 kauth_cred_getuid(cp->gss_clnt_cred), in nfs_gss_clnt_ctx_name()
562 kauth_cred_getuid(cp->gss_clnt_cred)); in nfs_gss_clnt_ctx_name()
746 if (!cp && nfs_root_steals_ctx && principal == NULL && kauth_cred_getuid(req->r_cred) == 0) { in nfs_gss_clnt_ctx_find_principal()
1794 uid = kauth_cred_getuid(credp); in nfs_gss_clnt_get_upcall_port()
1845 kauth_cred_getuid(cp->gss_clnt_cred), in nfs_gss_clnt_log_error()
1856 …play ? cp->gss_clnt_display : who, kauth_cred_getasid(req->r_cred), kauth_cred_getuid(req->r_cred), in nfs_gss_clnt_log_error()
1869 …play ? cp->gss_clnt_display : who, kauth_cred_getasid(req->r_cred), kauth_cred_getuid(req->r_cred), in nfs_gss_clnt_log_error()
2003 kauth_cred_getuid(cp->gss_clnt_cred), in nfs_gss_clnt_gssd_upcall()
2667 kauth_cred_getuid(cp->gss_clnt_cred), in nfs_gss_clnt_ctx_remove()
2763 kauth_cred_getasid(cred), kauth_cred_getuid(cred)); in nfs_gss_clnt_ctx_get_principal()
H A Dnfs_vnops.c592 uid = kauth_cred_getuid(vfs_context_ucred(ctx)); in nfs3_access_rpc()
595 uid = kauth_cred_getuid(vfs_context_ucred(ctx)); in nfs3_access_rpc()
748 uid = kauth_cred_getuid(vfs_context_ucred(ctx)); in nfs_vnop_access()
751 uid = kauth_cred_getuid(vfs_context_ucred(ctx)); in nfs_vnop_access()
926 NP(np, "nfs_vnop_open: LOST %d", kauth_cred_getuid(nofp->nof_owner->noo_cred)); in nfs_vnop_open()
983 …NP(np, "nfs_vnop_open: deny mode foregone on create, %d", kauth_cred_getuid(nofp->nof_owner->noo_c… in nfs_vnop_open()
1001 …NP(np, "nfs_vnop_open: create close error %d, %d", error, kauth_cred_getuid(nofp->nof_owner->noo_c… in nfs_vnop_open()
1019 NP(np, "nfs_vnop_open: error %d, %d", error, kauth_cred_getuid(noop->noo_cred)); in nfs_vnop_open()
1231 …NP(np, "nfs_vnop_close: no open file for owner, error %d, %d", error, kauth_cred_getuid(noop->noo_… in nfs_vnop_close()
1243 NP(np, "nfs_vnop_close: close error %d, %d", error, kauth_cred_getuid(noop->noo_cred)); in nfs_vnop_close()
[all …]
H A Dnfsm_subs.h557 nfsm_chain_add_32(error, &nmreq, kauth_cred_getuid((NOOP)->noo_cred)); \
/xnu-8020.101.4/bsd/sys/
H A Dpersona.h335 kauth_cred_getuid(persona->pna_cred), in persona_desc()
H A Dkauth.h195 extern uid_t kauth_cred_getuid(kauth_cred_t _cred);
/xnu-8020.101.4/bsd/netinet/
H A Din_pcb.c919 (u = kauth_cred_getuid(so->so_cred)) != 0 && in in_pcbbind()
926 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in_pcbbind()
2357 *uid = kauth_cred_getuid( in in_pcblookup_hash_exists()
2395 *uid = kauth_cred_getuid( in in_pcblookup_hash_exists()
2415 *uid = kauth_cred_getuid( in in_pcblookup_hash_exists()
2427 *uid = kauth_cred_getuid( in in_pcblookup_hash_exists()
H A Din_pcblist.c138 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket_n()
/xnu-8020.101.4/bsd/miscfs/nullfs/
H A Dnull_vfsops.c199 xmp->uid = kauth_cred_getuid(cred); in nullfs_mount()
/xnu-8020.101.4/bsd/vm/
H A Dvm_unix.c801 myuid = kauth_cred_getuid(mycred); in task_for_pid_posix_check()
825 if ((kauth_cred_getuid(targetcred) != myuid) || in task_for_pid_posix_check()
1068 || ((kauth_cred_getuid(target_cred) == kauth_cred_getuid(kauth_cred_get())) && in task_name_for_pid()

12