summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-04-03 12:39:37 +0900
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2025-04-03 20:24:15 +0900
commitbfcfd28f9b3efb90993f86eba887ff4f9bda9376 (patch)
tree5e5d4dd667e534c6b6a2585e660ab9aecca89996
parent6f53abfdab78e45530d0d9ca3b789482c052c6a7 (diff)
least-authority: Preserve systemd LISTEN_* environment variables.
Otherwise, combining make-systemd-constructor with least-authority-wrapper would not work correctly out of the box. * guix/least-authority.scm (%precious-variables): Add "LISTEN_PID" "LISTEN_FDS" "LISTEN_FDNAMES" environment variables. Change-Id: Idd259b15463920965f530e1917d76bf97def3b7b Reviewed-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--guix/least-authority.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/least-authority.scm b/guix/least-authority.scm
index 3465fe9a484..717d33f3128 100644
--- a/guix/least-authority.scm
+++ b/guix/least-authority.scm
@@ -37,7 +37,8 @@
(define %precious-variables
;; Environment variables preserved by the wrapper by default.
- '("HOME" "USER" "LOGNAME" "DISPLAY" "XAUTHORITY" "TERM" "TZ" "PAGER"))
+ '("HOME" "USER" "LOGNAME" "DISPLAY" "XAUTHORITY" "TERM" "TZ" "PAGER"
+ "LISTEN_PID" "LISTEN_FDS" "LISTEN_FDNAMES")) ;for make-systemd-constructor
(define* (least-authority-wrapper program
#:key (name "pola-wrapper")