From owner-freebsd-hackers Wed Nov 13 17:28:25 2002 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 05C5637B401 for ; Wed, 13 Nov 2002 17:28:24 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 8B6BB43E6E for ; Wed, 13 Nov 2002 17:28:23 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 41401 invoked by uid 1000); 14 Nov 2002 01:28:25 -0000 Date: Wed, 13 Nov 2002 17:28:25 -0800 (PST) From: Nate Lawson To: Tim Kientzle Cc: hackers@freebsd.org Subject: Re: Shrinking /(s)bin: A Proposal In-Reply-To: <3DD03D9A.6090805@acm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 11 Nov 2002, Tim Kientzle wrote: > The possibility of dynamically linking /(s)bin seems > to recur pretty regularly. As libc continues to grow, > this idea seems worth revisiting. However, I've come up > with an alternative that might be worth considering. I'm open to patches for building /[s]bin as dynamic. If you have time and can coordinate with lukem@netbsd.org to build the patch, I would appreciate it. > 4) Implement a command-line helper. A user_from_uid > binary could be run by /bin/mv as needed. This could > povide most of the benefits of a daemon with the > added advantage of on-demand loading; no memory is > required unless the service is actually needed. >... > I've started experimenting with the helper binary approach > (#4 above), and it seems pretty workable. Of course, a single > helper should handle user, group, and DNS lookups and do so in > a way that does not require re-running it for every lookup. I > can manage all of that without too much trouble. Making a separate pw resolver program probably is too drastic a change, so I think it's better to focus for now on a patch to allow building the entire /[s]bin or user-selected parts as dynamic. -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message