Date: Fri, 6 Jun 2003 10:41:02 +0200 From: Sebastian Lederer <sl@linast.de> To: Terry Lambert <tlambert2@mindspring.com> Cc: freebsd-arch@freebsd.org Subject: Re: Making a dynamically-linked root Message-ID: <9A9E2868-97FA-11D7-B525-003065B639BC@linast.de> In-Reply-To: <3EDF73DB.CCD31329@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9A9E2868-97FA-11D7-B525-003065B639BC>