Searched refs:so_cred (Results 1 – 11 of 11) sorted by relevance
386 sb64->st_uid = kauth_cred_getuid(so->so_cred); in soo_stat()387 sb64->st_gid = kauth_cred_getgid(so->so_cred); in soo_stat()398 sb->st_uid = kauth_cred_getuid(so->so_cred); in soo_stat()399 sb->st_gid = kauth_cred_getgid(so->so_cred); in soo_stat()
380 kauth_cred_ref(head->so_cred); in sonewconn_internal()381 so->so_cred = head->so_cred; in sonewconn_internal()2810 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket()2841 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket64()
746 so->so_cred = kauth_cred_proc_ref(p); in socreate_internal()961 kauth_cred_unref(&so->so_cred); in sodealloc()4768 uid = kauth_cred_getuid(cred ? cred : so->so_cred); in soopt_cred_check()4772 error = priv_check_cred(cred ? cred : so->so_cred, priv, 0); in soopt_cred_check()5724 if (kauth_cred_getuid(so->so_cred) != application_id.uid) { in sosetoptlock()6255 application_id.uid = kauth_cred_getuid(so->so_cred); in sogetoptlock()
401 (u = kauth_cred_getuid(so->so_cred)) != 0) { in in6_pcbbind()409 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in6_pcbbind()429 (kauth_cred_getuid(so->so_cred) != in in6_pcbbind()430 kauth_cred_getuid(t->inp_socket->so_cred)) && in in6_pcbbind()1418 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()1420 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()1454 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()1456 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()1469 local_wild->inp_socket->so_cred); in in6_pcblookup_hash_exists()1471 local_wild->inp_socket->so_cred); in in6_pcblookup_hash_exists()
3174 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_ctloutput()3246 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_send()
1475 if (kauth_cred_issuser(so->so_cred)) in ipsec_init_policy()1477 if (so->so_cred != 0 && !suser(so->so_cred->pc_ucred, NULL)) in ipsec_init_policy()
1025 (u = kauth_cred_getuid(so->so_cred)) != 0 && in in_pcbbind()1032 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in_pcbbind()2486 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2488 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2524 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2526 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2544 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()2546 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()2556 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()2558 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()
140 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket_n()
221 kauth_cred_t so_cred; /* cred of who opened the socket */ member
1794 desc->uid = kauth_cred_getuid(so->so_cred); in nstat_tcp_copy_descriptor()2177 desc->uid = kauth_cred_getuid(so->so_cred); in nstat_udp_copy_descriptor()
8943 info->uid = kauth_cred_getuid(so->so_cred); in necp_socket_fillout_info_locked()9653 u_int32_t drop_order = necp_process_drop_order(so->so_cred); in necp_socket_find_policy_match()11770 u_int32_t drop_order = necp_process_drop_order(so->so_cred); in necp_socket_is_allowed_to_send_recv_internal()