diff options
| author | Marius Bakke <marius@gnu.org> | 2020-12-06 21:55:18 +0100 |
|---|---|---|
| committer | Marius Bakke <marius@gnu.org> | 2020-12-06 21:55:18 +0100 |
| commit | 329fa5bdbb621dae586cbfb062cbd3b295880ba5 (patch) | |
| tree | 757c9783af1acbd9de759e0bb78fb718cd76e991 /gnu/build/linux-container.scm | |
| parent | 3f35b09e8d45260d50c3f2e2e0bc06f3ab4322aa (diff) | |
Revert "linux-container: Correct test for unprivileged user namespace support."
This broke 'guix environment --container' on non-Debian distributions.
Fixes <https://bugs.gnu.org/45066>. Reported by luhux <luhux@outlook.com>.
This reverts commit 8bc5ca5160db3d82bd5b6b2b7ed80c96f42bd33e.
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 3870b509070..4a8bed5a9a2 100644 --- a/gnu/build/linux-container.scm +++ b/gnu/build/linux-container.scm | |||
| @@ -44,7 +44,7 @@ | |||
| 44 | (let ((userns-file "/proc/sys/kernel/unprivileged_userns_clone")) | 44 | (let ((userns-file "/proc/sys/kernel/unprivileged_userns_clone")) |
| 45 | (if (file-exists? userns-file) | 45 | (if (file-exists? userns-file) |
| 46 | (eqv? #\1 (call-with-input-file userns-file read-char)) | 46 | (eqv? #\1 (call-with-input-file userns-file read-char)) |
| 47 | #f))) | 47 | #t))) |
| 48 | 48 | ||
| 49 | (define (setgroups-supported?) | 49 | (define (setgroups-supported?) |
| 50 | "Return #t if the setgroups proc file, introduced in Linux-libre 3.19, | 50 | "Return #t if the setgroups proc file, introduced in Linux-libre 3.19, |
