/freebsd/sys/netinet/ |
H A D | in_prot.c | 61 error = prison_check(cred, inp->inp_cred); in cr_canseeinpcb() 70 if (cr_bsd_visible(cred, inp->inp_cred)) in cr_canseeinpcb()
|
H A D | raw_ip.c | 321 if (jailed_without_vnet(inp->inp_cred) && in rip_input() 322 prison_check_ip4(inp->inp_cred, &ctx.ip->ip_dst) != 0) { in rip_input() 337 if (jailed_without_vnet(inp->inp_cred) && in rip_input() 339 prison_check_ip4(inp->inp_cred, &ctx.ip->ip_dst) != 0) in rip_input() 483 if (jailed(inp->inp_cred)) { in rip_send() 492 &ip->ip_src, inp->inp_cred); in rip_send() 495 error = prison_local_ip4(inp->inp_cred, in rip_send() 548 error = prison_check_ip4(inp->inp_cred, &ip->ip_src); in rip_send()
|
H A D | in_pcb.c | 601 inp->inp_cred = crhold(so->so_cred); in in_pcballoc() 658 crfree(inp->inp_cred); in in_pcballoc() 660 inp->inp_cred = NULL; in in_pcballoc() 965 (inp->inp_cred->cr_uid != in in_pcbbind_setup() 966 t->inp_cred->cr_uid)) in in_pcbbind_setup() 1662 crfree(inp->inp_cred); in in_pcbrele_rlocked() 1664 inp->inp_cred = NULL; in in_pcbrele_rlocked() 1682 crfree(inp->inp_cred); in in_pcbrele_wlocked() 1684 inp->inp_cred = NULL; in in_pcbrele_wlocked() 1953 inp->inp_cred->cr_prison)) in in_pcblookup_local() [all …]
|
H A D | sctp_asconf.c | 1904 if (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_addr_mgmt_assoc() 1912 if (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_addr_mgmt_assoc() 2137 if (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_asconf_iterator_stcb() 2169 if (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_asconf_iterator_stcb() 2455 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_find_valid_localaddr() 2493 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_find_valid_localaddr() 3094 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_check_address_list_all() 3108 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_check_address_list_all() 3386 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_asconf_send_nat_state_update() 3401 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_asconf_send_nat_state_update()
|
H A D | sctp_pcb.c | 887 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_does_stcb_own_this_addr() 906 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_does_stcb_own_this_addr() 1063 if (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_tcb_special_locate() 1077 if (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_tcb_special_locate() 1654 if (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_endpoint_probe() 1671 if (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_endpoint_probe() 2409 inp->ip_inp.inp.inp_cred = crhold(so->so_cred); in sctp_inpcb_alloc() 2439 crfree(inp->ip_inp.inp.inp_cred); in sctp_inpcb_alloc() 2471 crfree(inp->ip_inp.inp.inp_cred); in sctp_inpcb_alloc() 2491 crfree(inp->ip_inp.inp.inp_cred); in sctp_inpcb_alloc() [all …]
|
H A D | sctp_output.c | 2480 (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_choose_boundspecific_inp() 2487 (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_choose_boundspecific_inp() 2618 (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_choose_boundspecific_stcb() 2625 (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_choose_boundspecific_stcb() 2652 (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_choose_boundspecific_stcb() 2789 (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_select_nth_preferred_addr_from_ifn_boundall() 2796 (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_select_nth_preferred_addr_from_ifn_boundall() 2897 (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_count_num_preferred_boundall() 2905 (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_count_num_preferred_boundall() 3105 (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_choose_boundall() [all …]
|
H A D | sctp_sysctl.c | 279 if (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_sysctl_copy_out_local_addresses() 300 if (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_sysctl_copy_out_local_addresses()
|
H A D | in_pcb.h | 183 struct ucred *inp_cred; /* (c) cache of socket cred */ member
|
H A D | udp_usrreq.c | 846 cru2x(inp->inp_cred, &xuc); in udp_getcred()
|
H A D | sctp_usrreq.c | 1097 if (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_fill_up_addresses_vrf() 1145 if (prison_check_ip6(inp->ip_inp.inp.inp_cred, in sctp_fill_up_addresses_vrf() 5898 if (prison_check_ip4(inp->ip_inp.inp.inp_cred, 5913 if (prison_check_ip6(inp->ip_inp.inp.inp_cred,
|
H A D | tcp_subr.c | 2654 cru2x(inp->inp_cred, &xuc); in tcp_getcred() 2720 cru2x(inp->inp_cred, &xuc); in tcp6_getcred()
|
H A D | sctputil.c | 7023 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_local_addr_count() 7047 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_local_addr_count()
|
/freebsd/sys/netinet6/ |
H A D | in6_pcb.c | 246 priv_check_cred(inp->inp_cred, PRIV_NETINET_REUSEPORT) != 0) { in in6_pcbbind() 257 (inp->inp_cred->cr_uid != in in6_pcbbind() 258 t->inp_cred->cr_uid)) in in6_pcbbind() 274 (inp->inp_cred->cr_uid != in in6_pcbbind() 275 t->inp_cred->cr_uid)) in in6_pcbbind() 367 inp, inp->inp_cred, scope_ambiguous, &in6a, NULL); in in6_pcbladdr() 708 inp->inp_cred->cr_prison)) in in6_pcblookup_local() 740 inp->inp_cred->cr_prison)) in in6_pcblookup_local() 1008 prison_check_ip6_locked(inp->inp_cred->cr_prison, in in6_pcblookup_hash_wild_smr() 1051 injail = prison_flag(inp->inp_cred, PR_IP6) != 0; in in6_pcblookup_hash_wild_locked() [all …]
|
H A D | raw_ip6.c | 215 if (jailed_without_vnet(inp->inp_cred) && in rip6_input() 217 prison_check_ip6(inp->inp_cred, &ip6->ip6_dst) != 0) in rip6_input() 466 error = prison_check_ip6(inp->inp_cred, &in6a); in rip6_send()
|
H A D | udp6_usrreq.c | 645 cru2x(inp->inp_cred, &xuc); in udp6_getcred()
|
/freebsd/sys/security/mac_seeotheruids/ |
H A D | mac_seeotheruids.c | 166 return (seeotheruids_check(cred, inp->inp_cred)); in seeotheruids_inpcb_check_visible()
|
/freebsd/sys/security/mac_partition/ |
H A D | mac_partition.c | 231 error = partition_check(cred->cr_label, inp->inp_cred->cr_label); in partition_inpcb_check_visible()
|
/freebsd/sys/netpfil/ipfw/ |
H A D | ip_fw2.c | 1141 *uc = crhold(inp->inp_cred); in check_uidgid() 1199 *uc = crhold(pcb->inp_cred); in check_uidgid()
|
/freebsd/sys/netpfil/pf/ |
H A D | pf.c | 3932 pd->lookup.uid = inp->inp_cred->cr_uid; in pf_socket_lookup() 3933 pd->lookup.gid = inp->inp_cred->cr_groups[0]; in pf_socket_lookup() 4446 pd->lookup.uid = inp->inp_cred->cr_uid; in pf_test_rule() 4447 pd->lookup.gid = inp->inp_cred->cr_groups[0]; in pf_test_rule()
|