summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2017-11-22 23:02:35 +0100
committerLudovic Courtès <ludo@gnu.org>2017-11-22 23:02:35 +0100
commit0cb9c9d1702b65613a81a3e56255dcc38939841a (patch)
tree2f8644ab0631979d4c061ba819b27eb63b3fa861 /gnu
parentd655f39c443ca29b0172f1d0b7fad024756ffdf1 (diff)
downloadguix-0cb9c9d1702b65613a81a3e56255dcc38939841a.tar.gz
shepherd: Include /etc/group in service containers.
* gnu/build/shepherd.scm (default-mounts)[passwd]: Rename to...
[accounts]: ... this.  Add /etc/group.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/build/shepherd.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/gnu/build/shepherd.scm b/gnu/build/shepherd.scm
index 8fc74bc482..c955e3c83f 100644
--- a/gnu/build/shepherd.scm
+++ b/gnu/build/shepherd.scm
@@ -60,11 +60,13 @@
       (type "tmpfs")
       (check? #f)))
 
-  (define passwd
+  (define accounts
     ;; This is for processes in the default user namespace but living in a
     ;; different mount namespace, so that they can lookup users.
-    (file-system-mapping
-     (source "/etc/passwd") (target source)))
+    (list (file-system-mapping
+           (source "/etc/passwd") (target source))
+          (file-system-mapping
+           (source "/etc/group") (target source))))
 
   (define nscd-socket
     (file-system-mapping
@@ -78,7 +80,7 @@
                                         %network-file-mappings))
                             ,@(if (and (memq 'mnt namespaces)
                                        (not (memq 'user namespaces)))
-                                  (list passwd)
+                                  accounts
                                   '())
                             ,%store-mapping)))    ;XXX: coarse-grain
             (map file-system-mapping->bind-mount