]> git.ipfire.org Git - thirdparty/systemd.git/commit
machined: expose "UID shift" concept for containers
authorLennart Poettering <lennart@poettering.net>
Fri, 10 Feb 2017 18:44:09 +0000 (19:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Feb 2017 09:22:28 +0000 (10:22 +0100)
commit3401419bb8215612cf8db33d930a64a54b19dcb3
tree46bf341034214d5c25d4c211e61831e6b5d488b2
parentf73e6ee687213d8f78a93a9519901d0fe314c228
machined: expose "UID shift" concept for containers

UID/GID mapping with userns can be arbitrarily complex. Let's break this
down to a single admin-friendly parameter: let's expose the UID/GID
shift of a container via a new bus call for each container, and let's
show this as part of "machinectl status" if it is not 0.

This should work for pretty much all real-life full OS container setups
(i.e. the stuff machined is suppose to be useful for).  For everything
else we generate a clean error, clarifying that we can't expose the
mapping.
src/machine/machine-dbus.c
src/machine/machine-dbus.h
src/machine/machine.c
src/machine/machine.h
src/machine/machinectl.c
src/machine/machined-dbus.c
src/machine/org.freedesktop.machine1.conf