jail - add jail.defaults.allow_listen_override (3)

Operating Systems / DragonFlyBSD - Matthew Dillon [apollo.backplane.com] - 24 February 2020 23:05 EST

- 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.

0810abe8fc jail - add jail.defaults.allow_listen_override (3)
sys/kern/uipc_syscalls.c | 26 +++-
sys/netinet/in_pcb.c | 332 ++++++++++++++++++++++++---------------------
sys/netinet/tcp_usrreq.c | 8 +-
sys/netinet/udp_usrreq.c | 8 --
sys/netinet6/udp6_usrreq.c | 4 -
5 files changed, 206 insertions(+), 172 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share