Making a dynamically-linked root

Terry Lambert tlambert2 at mindspring.com
Thu Jun 5 10:00:08 PDT 2003


Sebastian Lederer wrote:
> On Wed, Jun 04, 2003 at 07:04:03PM +0200, Olaf Wagner wrote:
> > I especially like this suggestion. Are there any plans to implement
> > a lookupd for FreeBSD or is anybody already working on it? If not,
> > could the MacOS X sources be used (i.e. are they contained in Darwin)?
> 
> Darwin's lookupd is open source, but I think it would be too much work
> to adapt it to FreeBSD, since it is tightly integrated with Darwin's
> libc and probably depends on Mach IPC primitives.
> 
> 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!

-- Terry


More information about the freebsd-arch mailing list