From 8bc5ca5160db3d82bd5b6b2b7ed80c96f42bd33e Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Thu, 3 Dec 2020 16:00:18 +0000 Subject: linux-container: Correct test for unprivileged user namespace support. Fixes . Reported by Paul Garlick . * 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 4a8bed5a9a..3870b50907 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, -- cgit v1.2.3