mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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 8bc5ca5160
.
This commit is contained in:
parent
3f35b09e8d
commit
329fa5bdbb
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
||||||
(let ((userns-file "/proc/sys/kernel/unprivileged_userns_clone"))
|
(let ((userns-file "/proc/sys/kernel/unprivileged_userns_clone"))
|
||||||
(if (file-exists? userns-file)
|
(if (file-exists? userns-file)
|
||||||
(eqv? #\1 (call-with-input-file userns-file read-char))
|
(eqv? #\1 (call-with-input-file userns-file read-char))
|
||||||
#f)))
|
#t)))
|
||||||
|
|
||||||
(define (setgroups-supported?)
|
(define (setgroups-supported?)
|
||||||
"Return #t if the setgroups proc file, introduced in Linux-libre 3.19,
|
"Return #t if the setgroups proc file, introduced in Linux-libre 3.19,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue