From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7090 Path: news.gmane.org!not-for-mail From: M Farkas-Dyck Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] support alternate backends for the passwd and group dbs Date: Mon, 23 Feb 2015 11:01:11 -0500 Message-ID: References: <1424658940-16635-1-git-send-email-josiahw@gmail.com> <1424660290-25921-1-git-send-email-josiahw@gmail.com> <20150223060840.GB23507@brightrain.aerifal.cx> <20150223061843.GA8602@openwall.com> <20150223070443.GC23507@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1424707296 20727 80.91.229.3 (23 Feb 2015 16:01:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2015 16:01:36 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7103-gllmg-musl=m.gmane.org@lists.openwall.com Mon Feb 23 17:01:36 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YPvRq-0002YD-Ph for gllmg-musl@m.gmane.org; Mon, 23 Feb 2015 17:01:30 +0100 Original-Received: (qmail 31941 invoked by uid 550); 23 Feb 2015 16:01:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 31881 invoked from network); 23 Feb 2015 16:01:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=7JroE1w8LBy0jOlx7jcSlA6kwoJO+9A40IB+zyAyM/g=; b=H8PTD1Sm7WZduauUSj4Ch9CutpMZ4hASakx3Our1t/mTJ2iQShSP5NMU/OUKEcrhEn daMVu+ewxHo+w1XWIdHS4DMtTtcL3c1VGcGru1oaIUjjM3uNJQUvmk6GPXzo7Z2dPq4N IG3TmLi+f22MOPdbneBjTB2104FHElXvTGpPXv/JwC8njfe9TuxIRDzphwsgF24m0ogx tPVBbMKo39TybdkDnu9YN5zFgT/hC/pLhGvxKgRgwJIwqbpq+YE2fsY+aJPCs/gJRRyO rn2hA1eg12iRaNWfHOn89+39Eb43RB34EXnhBgdSbM4a45cAtK9hCgX+zqMe352in3+u hCdg== X-Received: by 10.152.7.38 with SMTP id g6mr10449639laa.65.1424707271701; Mon, 23 Feb 2015 08:01:11 -0800 (PST) In-Reply-To: <20150223070443.GC23507@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:7090 Archived-At: On 23/02/2015, Rich Felker wrote: > There were multiple discussions of how to support alternate backends > in the past, and the main two candidates were a new text-based > protocol over a unix socket that returns the result in passwd/group > file form, and repurposing nscd protocol. While I originally preferred > the former, using nscd has the advantage that, on existing glibc > systems with non-default (possibly even custom nss modules) backends, > everything works out of the box. Using a new protocol/new daemon would > require installing that daemon before any musl-linked binaries could > lookup users/groups, and would require significant custom glue to > integrate with custom site-local backends. For nonstatic non-nsc backends, one could alternately have files in question on synthetic filesystem, e.g. 9p, so backend program would simply be synthetic filesystem server and musl wouldn't need to care.