guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/04: shepherd: Include /etc/group in service containers.


From: Ludovic Courtès
Subject: 03/04: shepherd: Include /etc/group in service containers.
Date: Wed, 22 Nov 2017 17:18:40 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 0cb9c9d1702b65613a81a3e56255dcc38939841a
Author: Ludovic Courtès <address@hidden>
Date:   Wed Nov 22 23:02:35 2017 +0100

    shepherd: Include /etc/group in service containers.
    
    * gnu/build/shepherd.scm (default-mounts)[passwd]: Rename to...
    [accounts]: ... this.  Add /etc/group.
---
 gnu/build/shepherd.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/build/shepherd.scm b/gnu/build/shepherd.scm
index 8fc74bc..c955e3c 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]