Home
last modified time | relevance | path

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

/xnu-12377.41.6/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()
2832 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket()
2863 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket64()
H A Duipc_socket.c585 so->so_cred = kauth_cred_proc_ref(p); in socreate_internal()
799 kauth_cred_unref(&so->so_cred); in sodealloc()
4706 uid = kauth_cred_getuid(cred ? cred : so->so_cred); in soopt_cred_check()
4710 error = priv_check_cred(cred ? cred : so->so_cred, priv, 0); in soopt_cred_check()
5662 if (kauth_cred_getuid(so->so_cred) != application_id.uid) { in sosetoptlock()
6240 application_id.uid = kauth_cred_getuid(so->so_cred); in sogetoptlock()
/xnu-12377.41.6/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.c3173 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_ctloutput()
3250 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-12377.41.6/bsd/netinet/
H A Din_pcb.c1017 (u = kauth_cred_getuid(so->so_cred)) != 0 && in in_pcbbind()
1024 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in_pcbbind()
2476 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2478 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2514 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2516 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2534 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()
2536 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()
2546 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()
2548 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-12377.41.6/bsd/sys/
H A Dsocketvar.h221 kauth_cred_t so_cred; /* cred of who opened the socket */ member
/xnu-12377.41.6/bsd/net/
H A Dntstat.c2494 desc->uid = kauth_cred_getuid(so->so_cred); in nstat_tcp_copy_descriptor()
2909 desc->uid = kauth_cred_getuid(so->so_cred); in nstat_udp_copy_descriptor()
H A Dnecp.c9808 info->uid = kauth_cred_getuid(so->so_cred); in necp_socket_fillout_info_locked()
10634 u_int32_t drop_order = necp_process_drop_order(so->so_cred); in necp_socket_find_policy_match()
12920 u_int32_t drop_order = necp_process_drop_order(so->so_cred); in necp_socket_is_allowed_to_send_recv_internal()