From 9820a937ef5ab6793f2495a1ce50ff14abb6ec7c Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 17 Mar 2016 14:01:19 -0400 Subject: [PATCH] environment: container: Do not remount network files as read-only. * gnu/scripts/environment.scm (launch-environment/container): Make network mappings writable. --- guix/scripts/environment.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index b122b4c..896804b 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -391,7 +391,13 @@ host file systems to mount inside the container." (file-system-mapping (source file) (target file) - (writable? #f)))) + ;; An unpriviliged user might not + ;; be able to remount + ;; /etc/resolv.conf as read-only, + ;; so we say that it is writable + ;; here, even though in practice + ;; it is not. + (writable? #t)))) %network-configuration-files) '()) ;; Mappings for the union closure of all inputs. -- 2.6.3