public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dj at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug network/27077] Do not reload /etc/nsswitch.conf from chroot
Date: Tue, 16 Feb 2021 03:03:01 +0000	[thread overview]
Message-ID: <bug-27077-131-nSMAMCdwBF@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-27077-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=27077

--- Comment #5 from dj at redhat dot com <dj at redhat dot com> ---
Mixing NSS providers between the host and guest is what we're trying to avoid,
as we consider that a security issue[*] - a container management tool, for
example, may not be able to trust the config/modules inside the container and
should continue using the hosts' modules and nsswitch.conf.  Programs which
"enter" chroots/containers should exec() some in-chroot program, which would
then load that nsswitch.conf.

If you have such a management tool, you should ensure your NSS environment is
complete by calling suitable API functions (like getpwuid) to ensure each NSS
provider is loaded, before chrooting.

[*] for example, of a container had some custom nss modules defined in
nsswitch.conf, and those custom modules took advantage of the host tool's
priviledges.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-02-16  3:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-16  7:55 [Bug network/27077] New: " fweimer at redhat dot com
2021-01-29 17:38 ` [Bug network/27077] " crrodriguez at opensuse dot org
2021-01-29 19:46 ` dj at redhat dot com
2021-02-14 15:25 ` dilyan.palauzov at aegee dot org
2021-02-15  9:12 ` fweimer at redhat dot com
2021-02-15 12:38 ` dilyan.palauzov at aegee dot org
2021-02-16  3:03 ` dj at redhat dot com [this message]
2021-02-16 11:54 ` dilyan.palauzov at aegee dot org
2021-02-16 12:41 ` sjon at hortensius dot net
2021-02-17 13:37 ` fweimer at redhat dot com
2021-03-02 21:24 ` cvs-commit at gcc dot gnu.org
2021-03-04 10:05 ` cvs-commit at gcc dot gnu.org
2021-09-01  9:33 ` fweimer at redhat dot com

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=bug-27077-131-nSMAMCdwBF@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@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).