git: DragonFly_RELEASE_5_8 jail - add jail.defaults.allow_listen_override (3)

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Feb 24 16:57:06 PST 2020


commit e373b8246be127251b1217e5a195ee0746ea25e8
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Feb 24 14:56:05 2020 -0800

    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.

Summary of changes:
 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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e373b8246be127251b1217e5a195ee0746ea25e8


-- 
DragonFly BSD source repository


More information about the Commits mailing list