mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-15 11:30:44 +02:00
linux-container: ‘unprivileged-user-namespace-supported?’ returns #f on non-Linux.
Previously this procedure would return #t on non-Linux systems. * gnu/build/linux-container.scm (unprivileged-user-namespace-supported?): When USERNS-FILE doesn’t exist, return (user-namespace-supported?). Reported-by: Reepca Russelstein <reepca@russelstein.xyz> Change-Id: I92050338b8b68bc3bd87100317eba69fcdf14a0a
This commit is contained in:
parent
bdd7b9a45d
commit
29164192e9
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2015 David Thompson <davet@gnu.org>
|
;;; Copyright © 2015 David Thompson <davet@gnu.org>
|
||||||
;;; Copyright © 2017-2019, 2022, 2023 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2017-2019, 2022-2023, 2025 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -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))
|
||||||
#t)))
|
(user-namespace-supported?))))
|
||||||
|
|
||||||
(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