summaryrefslogtreecommitdiff
path: root/gnu/services
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2024-09-01 02:00:00 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2024-09-08 02:00:00 +0200
commit0dd8e4c35109ed8bc2406a0bc13e18823a334937 (patch)
tree89f7991bf08fd1caa84c4cb3052ecc0ab63f3b21 /gnu/services
parent67a2073d279e064b6b065541be9502cd6ead80c8 (diff)
privilege: Add file-like->setuid-program helper.
* gnu/system/privilege.scm (file-like->setuid-program): New public procedure. * gnu/system/setuid.scm: Re-export it for compatibility. (file-like->setuid-program): Remove this old version. * gnu/services/docker.scm (singularity-setuid-programs): Use it (again). * gnu/services/desktop.scm (enlightenment-privileged-programs): Likewise. Change-Id: I8e41144438677a15cdadb3063651dbc780715497
Diffstat (limited to 'gnu/services')
-rw-r--r--gnu/services/desktop.scm3
-rw-r--r--gnu/services/docker.scm3
2 files changed, 2 insertions, 4 deletions
diff --git a/gnu/services/desktop.scm b/gnu/services/desktop.scm
index 8afb54ae488..041a1aab0f3 100644
--- a/gnu/services/desktop.scm
+++ b/gnu/services/desktop.scm
@@ -1736,8 +1736,7 @@ need to create it beforehand."))))
(match-record enlightenment-desktop-configuration
<enlightenment-desktop-configuration>
(enlightenment)
- (map (lambda (program) (privileged-program (program program)
- (setuid? #t)))
+ (map file-like->setuid-program
(list (file-append enlightenment
"/lib/enlightenment/utils/enlightenment_sys")
(file-append enlightenment
diff --git a/gnu/services/docker.scm b/gnu/services/docker.scm
index f0ac69a87eb..3af0f792701 100644
--- a/gnu/services/docker.scm
+++ b/gnu/services/docker.scm
@@ -286,8 +286,7 @@ bundles in Docker containers.")
"-helper")))
'("action" "mount" "start")))))
- (map (lambda (program) (privileged-program (program program)
- (setuid? #t)))
+ (map file-like->setuid-program
(list (file-append helpers "/singularity-action-helper")
(file-append helpers "/singularity-mount-helper")
(file-append helpers "/singularity-start-helper"))))