aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2014-06-04 22:17:20 +0200
committerLudovic Courtès <ludo@gnu.org>2014-06-04 22:17:20 +0200
commit3d116a70f9b18027b31be2e11e8c9c9192622607 (patch)
tree0a3c6b4566a1fe85e58bb5e08d5693444afc23d9 /gnu
parentc17b5ab4db140f142f38cdc99468e63e66c91912 (diff)
downloadguix-3d116a70f9b18027b31be2e11e8c9c9192622607.tar.gz
guix-3d116a70f9b18027b31be2e11e8c9c9192622607.zip
services: Add the build group to the supplementary groups of build users.
* gnu/services/base.scm (guix-build-accounts): Add 'supplementary-groups' field.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/base.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 463185d53c..3f7f453c9b 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -324,6 +324,12 @@ starting at FIRST-UID, and under GID."
(name (format #f "guixbuilder~2,'0d" n))
(uid (+ first-uid n -1))
(group group)
+
+ ;; guix-daemon expects GROUP to be listed as a
+ ;; supplementary group too:
+ ;; <http://lists.gnu.org/archive/html/bug-guix/2013-01/msg00239.html>.
+ (supplementary-groups (list group))
+
(comment (format #f "Guix Build User ~2d" n))
(home-directory "/var/empty")
(shell #~(string-append #$shadow "/sbin/nologin"))))