From bfcfd28f9b3efb90993f86eba887ff4f9bda9376 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 3 Apr 2025 12:39:37 +0900 Subject: [PATCH] least-authority: Preserve systemd LISTEN_* environment variables. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- guix/least-authority.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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")