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

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Feb 24 15:05:44 PST 2020


commit 0810abe8fc4cb976a938b44ce49fcc8e043782f7
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/0810abe8fc4cb976a938b44ce49fcc8e043782f7


-- 
DragonFly BSD source repository



More information about the Commits mailing list