diff options
author | Paul Garlick <pgarlick@tourbillion-technology.com> | 2020-12-03 16:00:18 +0000 |
---|---|---|
committer | Paul Garlick <pgarlick@tourbillion-technology.com> | 2020-12-03 16:25:45 +0000 |
commit | 8bc5ca5160db3d82bd5b6b2b7ed80c96f42bd33e (patch) | |
tree | da8b8dd79e0b5b45d4f6d18bfb38a37ed952b0ca /gnu/build/linux-container.scm | |
parent | 0d5d1bdf911659f60601058e8e1678187b7ba664 (diff) | |
download | guix-8bc5ca5160db3d82bd5b6b2b7ed80c96f42bd33e.tar guix-8bc5ca5160db3d82bd5b6b2b7ed80c96f42bd33e.tar.gz |
linux-container: Correct test for unprivileged user namespace support.
Fixes <https://bugs.gnu.org/31977>.
Reported by Paul Garlick <pgarlick@tourbillion-technology.com>.
* gnu/build/linux-container.scm (unprivileged-user-namespace-supported?):
Return #f when the 'userns-file' does not exist.
Diffstat (limited to 'gnu/build/linux-container.scm')
-rw-r--r-- | gnu/build/linux-container.scm | 2 |
1 files changed, 1 insertions, 1 deletions
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, |