Searched refs:so_cred (Results 1 – 10 of 10) 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()
379 kauth_cred_ref(head->so_cred); in sonewconn_internal()380 so->so_cred = head->so_cred; in sonewconn_internal()2764 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket()2795 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket64()
739 so->so_cred = kauth_cred_proc_ref(p); in socreate_internal()953 kauth_cred_unref(&so->so_cred); in sodealloc()5003 uid = kauth_cred_getuid(cred ? cred : so->so_cred); in soopt_cred_check()5007 error = priv_check_cred(cred ? cred : so->so_cred, priv, 0); in soopt_cred_check()
379 (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()1373 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()1375 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()1409 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()1411 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()1424 local_wild->inp_socket->so_cred); in in6_pcblookup_hash_exists()1426 local_wild->inp_socket->so_cred); in in6_pcblookup_hash_exists()
3148 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_ctloutput()3220 if (kauth_cred_issuser(so->so_cred)) { in icmp6_dgram_send()
1473 if (kauth_cred_issuser(so->so_cred)) in ipsec_init_policy()1475 if (so->so_cred != 0 && !suser(so->so_cred->pc_ucred, NULL)) in ipsec_init_policy()
919 (u = kauth_cred_getuid(so->so_cred)) != 0 && in in_pcbbind()926 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in_pcbbind()2358 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2360 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2396 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2398 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()2416 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()2418 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()2428 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()2430 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()
138 xso->so_uid = kauth_cred_getuid(so->so_cred); in sotoxsocket_n()
213 kauth_cred_t so_cred; /* cred of who opened the socket */ member
8463 info->uid = kauth_cred_getuid(so->so_cred); in necp_socket_fillout_info_locked()8543 info->cred_result = priv_check_cred(so->so_cred, PRIV_NET_PRIVILEGED_NECP_MATCH, 0); in necp_socket_fillout_info_locked()9065 u_int32_t drop_order = necp_process_drop_order(so->so_cred); in necp_socket_find_policy_match()11011 u_int32_t drop_order = necp_process_drop_order(so->so_cred); in necp_socket_is_allowed_to_send_recv_internal()