linux-container: Make the guest UID and GID a parameter.
authorLudovic Courtès <ludo@gnu.org>
Tue, 2 Apr 2019 08:34:48 +0000 (10:34 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 2 Apr 2019 16:15:37 +0000 (18:15 +0200)
commitaf76c020bf19de5fe2e92f31d8b85cbd55c481de
tree2810b6d4285bdce32d3ddbdd06167c2f1248d749
parent36d69ac993a322aea5b9021bc9920c135ab5edbb
linux-container: Make the guest UID and GID a parameter.

* gnu/build/linux-container.scm (initialize-user-namespace): Add
 #:guest-uid and #:guest-gid parameters and honor them.
(run-container): Likewise.
(call-with-container): Likewise.
* tests/containers.scm ("call-with-container, user namespace, guest UID/GID"):
New test.
gnu/build/linux-container.scm
tests/containers.scm