public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: DJ Delorie <dj@redhat.com>
Cc: "Carlos O'Donell" <carlos@redhat.com>,
	 ashankar@redhat.com, fweimer@redhat.com,
	 adhemerval.zanella@linaro.org, libc-alpha@sourceware.org
Subject: Re: On the removal of nscd from Fedora, and the future of nscd.
Date: Tue, 01 Mar 2022 10:10:46 +0100	[thread overview]
Message-ID: <87czj682cp.fsf@gnu.org> (raw)
In-Reply-To: <xnzgma7fxa.fsf@greed.delorie.com> (DJ Delorie's message of "Mon,  28 Feb 2022 18:02:57 -0500")

Hello,

Thank you Carlos for the introduction!

DJ Delorie <dj@redhat.com> skribis:

> "Carlos O'Donell" <carlos@redhat.com> writes:
>> Ludovic reached out to me regarding the removal because Guix uses nscd
>> for the interesting use case of supporting multiple system libcs:
>> https://guix.gnu.org/manual/devel/en/html_node/Application-Setup.html#Name-Service-Switch-1
>
> I think this is a weak argument.  If Guix can dlopen the host system's
> objects, you risk incompatibilities anyway.  And we don't have a rule
> that says that nsswitch modules have to be built against the exact
> version of glibc you're running against, although if the module is too
> new there may be problems.  But Guix would have this problem anyway if
> both sets of objects are available.  If Guix wants to run its own glibc,
> it needs to be isolated better - meaning, its own nscd, its own path to
> nss modules, etc.  Almost like a container or flatpack.  It may not even
> be able to parse /etc/nsswitch.conf if the host system is newer.

To be clear, Guix applications have been used on top of other distros
just fine.  This nscd requirement is one of the few must-haves to
ensure, as Joseph writes, that processes (in particular those linked
against Guix’s libc) do not end up dlopening arbitrary, possibly
incompatible libraries.

(The problem applies to other deployment tools that are not limited to a
single system libc such as Nix.)

I like the idea of keeping a trimmed-down nscd as Carlos wrote.  Calling
out to ‘getent’ would also work, but it potentially means having one
‘getent’ process per application, if I understand Florian’s proposal
correctly.

Thanks,
Ludo’.

  parent reply	other threads:[~2022-03-01  9:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-28 20:55 Carlos O'Donell
2022-02-28 23:02 ` DJ Delorie
2022-02-28 23:09   ` Joseph Myers
2022-03-01  1:02     ` DJ Delorie
2022-03-01  9:10   ` Ludovic Courtès [this message]
2022-03-01 16:54     ` DJ Delorie
2022-03-01 17:44       ` Ludovic Courtès
2022-03-01 18:31         ` DJ Delorie
2022-03-03 13:40           ` Ludovic Courtès
2022-03-06 22:05             ` John Ericson
2022-11-20 18:34               ` Florian Klink

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=87czj682cp.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=adhemerval.zanella@linaro.org \
    --cc=ashankar@redhat.com \
    --cc=carlos@redhat.com \
    --cc=dj@redhat.com \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).