]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man/systemd-nspawn: document hashing machine name for uid base
authorDmitry Borodaenko <angdraug@debian.org>
Wed, 23 Dec 2020 01:54:04 +0000 (17:54 -0800)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 23 Dec 2020 10:18:03 +0000 (10:18 +0000)
Explicitly document the behavior introduced in #7437: when picking a new
UID shift base with "-U", a hash of the machine name will be tried
before falling back to fully random UID base candidates.

man/systemd-nspawn.xml

index a720d401e78bfaddc3939dc7f8cf6600d0965699..d282238146e0cd10fb1dfed355759bd8d92ff44c 100644 (file)
           this way is used, similar to the behavior if "yes" is specified. If the check is not successful (and thus
           the UID/GID range indicated in the root directory's file owner is already used elsewhere) a new – currently
           unused – UID/GID range of 65536 UIDs/GIDs is randomly chosen between the host UID/GIDs of 524288 and
-          1878982656, always starting at a multiple of 65536. This setting implies
+          1878982656, always starting at a multiple of 65536, and, if possible, consistently hashed from the machine
+          name. This setting implies
           <option>--private-users-chown</option> (see below), which has the effect that the files and directories in
           the container's directory tree will be owned by the appropriate users of the range picked. Using this option
           makes user namespace behavior fully automatic. Note that the first invocation of a previously unused