Subject: [bug#77396] [PATCH v2 1/2] least-authority: Preserve systemd LISTEN_* environment variables.

From: Maxim Cournoyer <[email-masked]>
Date: Mon, 14 Apr 2025 10:19:32 +0900

Hi Ludovic,

Ludovic Courtès <[email-masked]> writes:

[...]

>>>> -(define %precious-variables
>>>> +(define %default-preserved-environment-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
>>>
>>> I would not export this variable, but otherwise LGTM!
>>
>> It aims to make extending the list easier.  Otherwise one has to peek
>> into the code, and copy the existing list to be consed to.
>
> Ah yes, that makes sense to me.  Let’s export it then!

I had already pushed this without exporting it.  Let's revisit the next
time we have a reason to extend the list.

-- 
Thanks,
Maxim