Date: Wed, 22 Feb 2006 15:37:00 +0100 (CET) From: Rudolf Cejka <cejkar@fit.vutbr.cz> To: FreeBSD-gnats-submit@FreeBSD.org Cc: freebsd-ports@rikrose.net Subject: ports/93708: net/socat: Patches to make libwrap usage functional Message-ID: <200602221437.k1MEb0gK002978@kazi.fit.vutbr.cz> Resent-Message-ID: <200602221440.k1MEe9J3011672@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 93708 >Category: ports >Synopsis: net/socat: Patches to make libwrap usage functional >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Feb 22 14:40:08 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Rudolf Cejka >Release: FreeBSD 5.3-STABLE i386 >Organization: FIT, Brno University of Technology, Czech Republic >Environment: >Description: In socat, there is a bug when using libwrap and the following two patches fixes it. The author of socat has been informed at Feb 5 2006, so versions after that date should be fixed. However until there is a new version of socat, we can have it fixed too. If you want to repeat the problem, you can try to put something like socat : 127.0.0.1 [::1] : allow ALL : ALL : deny in /etc/hosts.allow, call socat tcp6-listen:8080,fork,reuseaddr,tcpwrap tcp4:localhost:80 and test telnet localhost 8080, how well it does or does not work. ---------- CUT HERE - BEGIN: patch-xio-listen.c ---------- --- xio-listen.c.orig Sun Feb 5 20:28:10 2006 +++ xio-listen.c Sun Feb 5 20:28:45 2006 @@ -255,6 +255,7 @@ &ri, xfd->fd, &la->soa, pa, libwrapname); request_init(&ri, RQ_FILE, xfd->fd, RQ_CLIENT_SIN, &la->soa, RQ_SERVER_SIN, pa, RQ_DAEMON, libwrapname, 0); + sock_methods(&ri); Debug("request_init() ->"); Debug1("hosts_access(%p)", &ri); ---------- CUT HERE - END: patch-xio-listen.c ---------- ---------- CUT HERE - BEGIN: patch-xio-udp.c ---------- --- xio-udp.c.orig Sun Feb 5 20:28:16 2006 +++ xio-udp.c Sun Feb 5 20:28:56 2006 @@ -225,6 +225,7 @@ &ri, fd->stream.fd, &la->soa, them, libwrapname); request_init(&ri, RQ_FILE, fd->stream.fd, RQ_CLIENT_SIN, &la->soa, RQ_SERVER_SIN, them, RQ_DAEMON, libwrapname, 0); + sock_methods(&ri); Debug("request_init() ->"); Debug1("hosts_access(%p)", &ri); ---------- CUT HERE - END: patch-xio-udp.c ---------- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602221437.k1MEb0gK002978>