]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/basic/macro.h
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)
committerLennart Poettering <lennart@poettering.net>
Thu, 9 Jul 2015 17:46:20 +0000 (14:46 -0300)
commitc01ff965b48bb9693dcd77cbc748b5d8676766b0
tree63e50e4f3d4b6e6d3217fa2bf7f700eb19c258de
parent43694a8cc70667498f3ffc5d9325b7d0428558e5
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.
man/nss-mymachines.xml
src/basic/macro.h
src/libsystemd/sd-bus/bus-common-errors.h
src/machine/machined-dbus.c
src/machine/org.freedesktop.machine1.conf
src/nss-mymachines/nss-mymachines.c
src/nss-mymachines/nss-mymachines.sym
src/shared/nss-util.h