summaryrefslogtreecommitdiff
path: root/src/machine/machine.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-02-10 19:44:09 +0100
committerLennart Poettering <lennart@poettering.net>2017-02-17 10:22:28 +0100
commit3401419bb8215612cf8db33d930a64a54b19dcb3 (patch)
tree46bf341034214d5c25d4c211e61831e6b5d488b2 /src/machine/machine.h
parentf73e6ee687213d8f78a93a9519901d0fe314c228 (diff)
downloadsystemd-3401419bb8215612cf8db33d930a64a54b19dcb3.tar.gz
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.
Diffstat (limited to 'src/machine/machine.h')
-rw-r--r--src/machine/machine.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/machine/machine.h b/src/machine/machine.h
index e5d75361a9..6bdb204ed6 100644
--- a/src/machine/machine.h
+++ b/src/machine/machine.h
@@ -108,3 +108,5 @@ KillWho kill_who_from_string(const char *s) _pure_;
int machine_openpt(Machine *m, int flags);
int machine_open_terminal(Machine *m, const char *path, int mode);
+
+int machine_get_uid_shift(Machine *m, uid_t *ret);