jail - add jail.defaults.allow_listen_override (3)
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 24 Feb 2020 22:56:05 +0000 (14:56 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 24 Feb 2020 23:05:42 +0000 (15:05 -0800)
commit0810abe8fc4cb976a938b44ce49fcc8e043782f7
tree277a12be234daa64037c6ace6754078dd822e7dc
parent56c4bfa541478eac337a1338acbdbe1332fbdb1c
jail - add jail.defaults.allow_listen_override (3)

* Normalize the nominal jail IP conversions to the system call
  interface whenever it is convenient.  Remove conversions that
  were previously in the udp and tcp connect and send code.

* Also do jail IP conversions in bind(), connect(), extconnect(),
  sendto(), sendmsg(), recvfrom(), recvmsg().

* Refactor in_pcbladdr_find() to improve jail bindings, try to find
  the correct interface IP to bind to.  When a route is utilized,
  iterate available interface IPs to locate a jail-acceptable IP
  on the same interface.
sys/kern/uipc_syscalls.c
sys/netinet/in_pcb.c
sys/netinet/tcp_usrreq.c
sys/netinet/udp_usrreq.c
sys/netinet6/udp6_usrreq.c