mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Josiah Worcester <josiahw@gmail.com>
To: musl@lists.openwall.com
Subject: Re: [PATCH] support alternate backends for the passwd and group dbs
Date: Mon, 23 Feb 2015 00:24:11 -0600	[thread overview]
Message-ID: <CAMAJcuB50peYU00s7-HtU7vAYT5_rXXEcmhC98ZSkNzo0xwOTw@mail.gmail.com> (raw)
In-Reply-To: <20150223061843.GA8602@openwall.com>

[-- Attachment #1: Type: text/plain, Size: 1258 bytes --]

On Feb 23, 2015 12:18 AM, "Solar Designer" <solar@openwall.com> wrote:
>
> On Mon, Feb 23, 2015 at 01:08:40AM -0500, Rich Felker wrote:
> > On Sun, Feb 22, 2015 at 08:58:10PM -0600, Josiah Worcester wrote:
> > > when we fail to find the entry in the commonly accepted files,  we
> > > query a server over a Unix domain socket on /var/run/nscd/socket.
> > > the protocol used here is compatible with glibc's nscd protocol on
> > > most systems (all that use 32-bit numbers for all the protocol fields,
> > > which appears to be everything but Alpha).
> >
> > I'm committing with the attached additional changes [...]
>
> Hmm.  I guess this was discussed before, but I am surprised.  Wasn't
> nscd intended for caching rather than to provide a fallback?  If so,
> does musl intentionally re-purpose it?
>
> Alexander

Yes, musl is intentionally repurposing it. By using it as an extra place to
look it is much harder to create a situation where getpwuid et al change
their results because of an inability to talk to the daemon. Additionally,
musl's normal path is file lookup, which should not be slow (and hence has
no need for a cache).

And of course, by reusing the protocol, musl gets compatibility with the
backends configured on glibc systems for free.

[-- Attachment #2: Type: text/html, Size: 1559 bytes --]

  reply	other threads:[~2015-02-23  6:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-23  2:35 Josiah Worcester
2015-02-23  2:58 ` Josiah Worcester
2015-02-23  6:08   ` Rich Felker
2015-02-23  6:18     ` Solar Designer
2015-02-23  6:24       ` Josiah Worcester [this message]
2015-02-23  7:04       ` Rich Felker
2015-02-23 16:01         ` M Farkas-Dyck
2015-02-23 18:15           ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMAJcuB50peYU00s7-HtU7vAYT5_rXXEcmhC98ZSkNzo0xwOTw@mail.gmail.com \
    --to=josiahw@gmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).