Bug 93708 - net/socat: Patches to make libwrap usage functional
Summary: net/socat: Patches to make libwrap usage functional
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-22 14:40 UTC by Rudolf Čejka
Modified: 2006-04-29 19:41 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rudolf Čejka 2006-02-22 14:40:08 UTC
 
 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 ----------
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-02-22 14:52:10 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Marcus Alves Grando freebsd_committer freebsd_triage 2006-04-29 19:41:45 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!