This is an automated email from the git hooks/post-receive script.

pgarlick pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new 8bc5ca5  linux-container: Correct test for unprivileged user namespace 
support.
8bc5ca5 is described below

commit 8bc5ca5160db3d82bd5b6b2b7ed80c96f42bd33e
Author: Paul Garlick <[email protected]>
AuthorDate: Thu Dec 3 16:00:18 2020 +0000

    linux-container: Correct test for unprivileged user namespace support.
    
    Fixes <https://bugs.gnu.org/31977>.
    Reported by Paul Garlick <[email protected]>.
    
    * gnu/build/linux-container.scm (unprivileged-user-namespace-supported?):
    Return #f when the 'userns-file' does not exist.
---
 gnu/build/linux-container.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/build/linux-container.scm b/gnu/build/linux-container.scm
index 4a8bed5..3870b50 100644
--- a/gnu/build/linux-container.scm
+++ b/gnu/build/linux-container.scm
@@ -44,7 +44,7 @@
   (let ((userns-file "/proc/sys/kernel/unprivileged_userns_clone"))
     (if (file-exists? userns-file)
         (eqv? #\1 (call-with-input-file userns-file read-char))
-        #t)))
+        #f)))
 
 (define (setgroups-supported?)
   "Return #t if the setgroups proc file, introduced in Linux-libre 3.19,

Reply via email to