aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-04-03 15:43:24 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-04-19 21:13:21 +0900
commitb444fc05b523c31fa3156a5897894a98657f3301 (patch)
tree5ac7a2b4d96afcd0a1832d636f9c6853f8fdabf2
parentd5fc8668f461e6f2246a2861ad53df725c7dd766 (diff)
downloadguix-b444fc05b523c31fa3156a5897894a98657f3301.tar.gz
guix-b444fc05b523c31fa3156a5897894a98657f3301.zip
least-authority: Export default preserved environment variables.
* guix/least-authority.scm (%precious-variables): Rename to... (%default-preserved-environment-variables): ... this, and export it. (least-authority-wrapper): Adjust accordingly. Change-Id: Idd259b15463920965f530e1917d76bf97def3b7b
-rw-r--r--guix/least-authority.scm7
1 files changed, 4 insertions, 3 deletions
diff --git a/guix/least-authority.scm b/guix/least-authority.scm
index 717d33f312..cd846aaa61 100644
--- a/guix/least-authority.scm
+++ b/guix/least-authority.scm
@@ -26,7 +26,8 @@
spec->file-system
file-system->spec
file-system-mapping->bind-mount)
- #:export (least-authority-wrapper))
+ #:export (least-authority-wrapper
+ %default-preserved-environment-variables))
;;; Commentary:
;;;
@@ -35,7 +36,7 @@
;;;
;;; Code:
-(define %precious-variables
+(define %default-preserved-environment-variables
;; Environment variables preserved by the wrapper by default.
'("HOME" "USER" "LOGNAME" "DISPLAY" "XAUTHORITY" "TERM" "TZ" "PAGER"
"LISTEN_PID" "LISTEN_FDS" "LISTEN_FDNAMES")) ;for make-systemd-constructor
@@ -50,7 +51,7 @@
(namespaces %namespaces)
(directory "/")
(preserved-environment-variables
- %precious-variables))
+ %default-preserved-environment-variables))
"Return a wrapper of PROGRAM that executes it with the least authority.
PROGRAM is executed in separate namespaces according to NAMESPACES, a list of