chiark / gitweb /
nspawn: when resoliving UIDs/GIDs for "-u", do so in forked off /usr/bin/getent inste...
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2014 01:41:13 +0000 (02:41 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2014 01:41:13 +0000 (02:41 +0100)
commit0cb9fbcd44517ec90b2a678876194607beab5dec
treebf2b481258bacb117061e2796ee4e29bf5b4ff04
parentd96c1ecf7bf9dae6b0cb728e41d09999ecce0b4a
nspawn: when resoliving UIDs/GIDs for "-u", do so in forked off /usr/bin/getent instead of in-process

When the container runs a different native architecture than the host we
shouldn't attempt to load the container's NSS modules with the host's
libc. Instead, resolve UID/GID by invoking /usr/bin/getent in the
container. The tool should be fairly universally available and allows us
to do resolving of the UID/GID with the container's libc in a parsable
format.

https://bugs.freedesktop.org/show_bug.cgi?id=75733
src/nspawn/nspawn.c
src/shared/mkdir.c