ports/93708: net/socat: Patches to make libwrap usage functional
Rudolf Cejka
cejkar at fit.vutbr.cz
Wed Feb 22 14:40:10 UTC 2006
>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:
More information about the freebsd-ports-bugs
mailing list