From owner-freebsd-arch@FreeBSD.ORG Fri Jun 6 01:41:15 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A21C37B401 for ; Fri, 6 Jun 2003 01:41:15 -0700 (PDT) Received: from subway.linast.de (linast.blasberg-computer.de [62.67.45.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C76543F3F for ; Fri, 6 Jun 2003 01:41:14 -0700 (PDT) (envelope-from sl@linast.de) Received: from linast.de (p508563AF.dip0.t-ipconnect.de [80.133.99.175]) (authenticated bits=0) by subway.linast.de (8.12.6/8.12.6) with ESMTP id h568fAqq082498 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO); Fri, 6 Jun 2003 10:41:11 +0200 (CEST) (envelope-from sl@linast.de) Date: Fri, 6 Jun 2003 10:41:02 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) To: Terry Lambert From: Sebastian Lederer In-Reply-To: <3EDF73DB.CCD31329@mindspring.com> Message-Id: <9A9E2868-97FA-11D7-B525-003065B639BC@linast.de> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.552) cc: freebsd-arch@freebsd.org Subject: Re: Making a dynamically-linked root X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 08:41:15 -0000 Am Donnerstag, 05.06.03, um 18:46 Uhr (Europe/Berlin) schrieb Terry Lambert: > Sebastian Lederer wrote: [...] >> I think the best bet is to write something reasonably simple from >> scratch and implement it as an NSS module, so that it can be installed >> without any changes to the rest of the system, especially without >> hacking libc. > > You have to hack libc: the lookup calls in a static libc have > to resolve to transactions interacting with the lookupd. The > entire point of this exercise is to allow access to NSS modules > by a statically linked binary! Of course. What I meant was that writing an NSS module and putting it into the default set of static NSS modules is much easier than hacking support of a new protocol into each getXbyY function. I believe the irs/irp stuff from bind8 worked that way (anybody ever used it?). If you wanted to use the irpd daemon (equivalent to nscd), you put an "irp" keyword into the irs.conf file (equivalent to nsswitch.conf), just like any other name service module. The irpd daemon then had his own, different irs.conf file to avoid endless recursion. - Sebastian Lederer