aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-03-10 23:32:18 +0100
committerLudovic Courtès <ludo@gnu.org>2019-03-10 23:41:33 +0100
commit309d87c3aa8df1a0784efa903f63d0d9b95cace6 (patch)
treea1b8dd44fc13576053b9965e5b14db79c3ce8a63
parent45fef894eb5b39029633cd0cd907e8ce8c5ab379 (diff)
downloadpatches-309d87c3aa8df1a0784efa903f63d0d9b95cace6.tar
patches-309d87c3aa8df1a0784efa903f63d0d9b95cace6.tar.gz
services: guix: Allocate build user UIDs in the system range.
Until now we were allocating the UIDs of build users above 30000, which is in "normal" user UID range. This static allocation was unnecessary, so this change lets the system allocate UIDs in the system range (below 1000). * gnu/services/base.scm (guix-build-accounts): Remove #:first-uid, and remove 'uid' field from 'user-account'.
-rw-r--r--gnu/services/base.scm6
1 files changed, 2 insertions, 4 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index d2baea0dd0..fffb7b301b 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1481,16 +1481,14 @@ pam-limits-entry specified in LIMITS via pam_limits.so."
(define* (guix-build-accounts count #:key
(group "guixbuild")
- (first-uid 30001)
(shadow shadow))
- "Return a list of COUNT user accounts for Guix build users, with UIDs
-starting at FIRST-UID, and under GID."
+ "Return a list of COUNT user accounts for Guix build users with the given
+GID."
(unfold (cut > <> count)
(lambda (n)
(user-account
(name (format #f "guixbuilder~2,'0d" n))
(system? #t)
- (uid (+ first-uid n -1))
(group group)
;; guix-daemon expects GROUP to be listed as a