environment: '-C' creates namespaces where the user is not root.
authorLudovic Courtès <ludo@gnu.org>
Tue, 2 Apr 2019 08:57:24 +0000 (10:57 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 2 Apr 2019 16:15:37 +0000 (18:15 +0200)
commit1ccc0f807d3f22fa9ade1c607c112e04df833a72
tree4b63fa9c0aa1b658b126ff14858f4be6f21f8503
parentaf76c020bf19de5fe2e92f31d8b85cbd55c481de
environment: '-C' creates namespaces where the user is not root.

* guix/scripts/environment.scm (launch-environment/container): Add UID
and GID.  Use them in PASSWD and GROUPS.  Pass them as #:guest-uid and
 #:guest-gid to 'call-with-container'.
* tests/guix-environment-container.sh: Test the inner UID.
In '--user' test, replace hard-coded 0 with 1000.
* doc/guix.texi (Invoking guix environment): Adjust accordingly.
doc/guix.texi
guix/scripts/environment.scm
tests/guix-environment-container.sh