chiark / gitweb /
nss-mymachines: map userns users of containers to real user names
authorLennart Poettering <lennart@poettering.net>
Thu, 9 Jul 2015 17:46:20 +0000 (14:46 -0300)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:06:04 +0000 (10:06 +0100)
commitffc442ae487303626321ac0e3a5023d4c4a0944f
treef5ed099a7cd149318de9b641bddf71d3fbbb0c1b
parentab76853a4ca68ec371c971dfe2cc68f19fe07659
nss-mymachines: map userns users of containers to real user names

Given a container "foo", that maps user id $UID to container user, using
user namespaces, this NSS module extenstion will now map the $UID to a
name "vu-foo-$TUID" for the translated UID $UID.

Similar, userns groups are mapped to "vg-foo-$TGID" for translated GIDs
of $GID.

This simple change should make userns users more discoverable. Also,
given that many tools like "adduser" check NSS before allocating a UID,
should lower the chance of UID range conflicts between tools.
src/libelogind/sd-bus/bus-common-errors.h
src/login/pam_elogind.sym
src/shared/macro.h
src/shared/nss-util.h