Searched refs:so_cred (Results 1 – 11 of 11) sorted by relevance
382 sb64->st_uid = kauth_cred_getuid(so->so_cred); in soo_stat()383 sb64->st_gid = kauth_cred_getgid(so->so_cred); in soo_stat()394 sb->st_uid = kauth_cred_getuid(so->so_cred); in soo_stat()395 sb->st_gid = kauth_cred_getgid(so->so_cred); in soo_stat()
381 kauth_cred_ref(head->so_cred); in sonewconn_internal()382 so->so_cred = head->so_cred; in sonewconn_internal()2849 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket()2880 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket64()
745 so->so_cred = kauth_cred_proc_ref(p); in socreate_internal()955 kauth_cred_unref(&so->so_cred); in sodealloc()4852 uid = kauth_cred_getuid(cred ? cred : so->so_cred); in soopt_cred_check()4856 error = priv_check_cred(cred ? cred : so->so_cred, priv, 0); in soopt_cred_check()5808 if (kauth_cred_getuid(so->so_cred) != application_id.uid) { in sosetoptlock()6345 application_id.uid = kauth_cred_getuid(so->so_cred); in sogetoptlock()
399 (u = kauth_cred_getuid(so->so_cred)) != 0) { in in6_pcbbind()407 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in6_pcbbind()427 (kauth_cred_getuid(so->so_cred) != in in6_pcbbind()428 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()
3171 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_ctloutput()3247 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_send()
1464 if (kauth_cred_issuser(so->so_cred)) in ipsec_init_policy()1466 if (so->so_cred != 0 && !suser(so->so_cred->pc_ucred, NULL)) in ipsec_init_policy()
1057 (u = kauth_cred_getuid(so->so_cred)) != 0 && in in_pcbbind()1064 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in_pcbbind()2518 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2520 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2556 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2558 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2576 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()2578 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()2588 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()2590 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()
140 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket_n()
227 kauth_cred_t so_cred; /* cred of who opened the socket */ member
2112 desc->uid = kauth_cred_getuid(so->so_cred); in nstat_tcp_copy_descriptor()2499 desc->uid = kauth_cred_getuid(so->so_cred); in nstat_udp_copy_descriptor()
9716 info->uid = kauth_cred_getuid(so->so_cred); in necp_socket_fillout_info_locked()10534 u_int32_t drop_order = necp_process_drop_order(so->so_cred); in necp_socket_find_policy_match()12785 u_int32_t drop_order = necp_process_drop_order(so->so_cred); in necp_socket_is_allowed_to_send_recv_internal()