From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 30 12:47:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1266416A4CE for ; Thu, 30 Oct 2003 12:47:48 -0800 (PST) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6613E43FE0 for ; Thu, 30 Oct 2003 12:47:47 -0800 (PST) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id C39CA3D28 for ; Thu, 30 Oct 2003 15:47:46 -0500 (EST) From: "Dan Langille" To: freeBSD-hackers@freebsd.org Date: Thu, 30 Oct 2003 15:47:46 -0500 MIME-Version: 1.0 Message-ID: <3FA132A2.17071.1B512CC3@localhost> Priority: normal In-reply-to: <3FA0DCF5.27646.1A027A88@localhost> X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Re: libwrap crash X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2003 20:47:48 -0000 On 30 Oct 2003 at 9:42, Dan Langille wrote: > I've been tracking down a libwrap call which crashes the application. > The crash occurs on line 395 of contrib/tcp_wrappers/options.c, but > I have no idea. I've been given some help in this offline. Apparently, the bacula code is incorrectly using hosts_access. bacula should fork before it calls hosts_access because hosts_access will kill you on twist. Otherwise, you'll get either a deny or an allowed, and the thread continue from here. My offline helper was comparing the inetd source code. I can't find any reference in host_options(5) or host_access(3) which point to the correct usage. Is the FreeBSD documentation incomplete? Is there a more accurate documentation I can point the bacula developers to? FYI: The bacula approach is said to work under Linux and Solaris but I have yet to run my reproducible tests on those platforms. Thank you. -- Dan Langille : http://www.langille.org/