Home
last modified time | relevance | path

Searched refs:so_cred (Results 1 – 11 of 11) sorted by relevance

/xnu-11417.140.69/bsd/kern/
H A Dsys_socket.c382 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()
H A Duipc_socket2.c381 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()
H A Duipc_socket.c745 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()
/xnu-11417.140.69/bsd/netinet6/
H A Din6_pcb.c399 (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()
H A Dicmp6.c3171 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_ctloutput()
3247 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_send()
H A Dipsec.c1464 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()
/xnu-11417.140.69/bsd/netinet/
H A Din_pcb.c1057 (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()
H A Din_pcblist.c140 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket_n()
/xnu-11417.140.69/bsd/sys/
H A Dsocketvar.h227 kauth_cred_t so_cred; /* cred of who opened the socket */ member
/xnu-11417.140.69/bsd/net/
H A Dntstat.c2112 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()
H A Dnecp.c9716 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()