Systemd/src/nspawn
Lennart Poettering d381c8a6bf nspawn: hash the machine name, when looking for a suitable UID base (#7437)
When "-U" is used we look for a UID range we can use for our container.
We start with the UID the tree is already assigned to, and if that
didn't work we'd pick random ranges so far. With this change we'll first
try to hash a suitable range from the container name, and use that if it
works, in order to make UID assignments more likely to be stable.

This follows a similar logic PID 1 follows when using DynamicUser=1.
2017-11-24 20:57:19 +01:00
..
meson.build Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01:00
nspawn-cgroup.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-cgroup.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-def.h nspawn: make recursive chown()ing logic safe for being aborted in the middle 2017-11-17 11:12:33 +01:00
nspawn-expose-ports.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-expose-ports.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-gperf.gperf tree-wide: adjust fall through comments so that gcc is happy 2017-11-20 13:06:25 -08:00
nspawn-mount.c Replace empty ternary with helper method 2017-11-24 09:31:08 +00:00
nspawn-mount.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-network.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-network.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-patch-uid.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-patch-uid.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-register.c nspawn: make use of the RequestStop logic of scope units 2017-11-23 21:47:48 +01:00
nspawn-register.h nspawn: make use of the RequestStop logic of scope units 2017-11-23 21:47:48 +01:00
nspawn-seccomp.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-seccomp.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-settings.c Replace free and reassignment with free_and_replace 2017-11-24 10:33:41 +00:00
nspawn-settings.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-setuid.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-setuid.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-stub-pid1.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-stub-pid1.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn.c nspawn: hash the machine name, when looking for a suitable UID base (#7437) 2017-11-24 20:57:19 +01:00
test-patch-uid.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00