Subject: Re: bug#54997: [PATCH 00/12] Add "least authority" program wrapper

From: Ludovic Courtès <[email-masked]>
Date: Wed, 20 Apr 2022 00:05:23 +0200

Maxime Devos <[email-masked]> skribis:

> Ludovic Courtès schreef op zo 17-04-2022 om 23:04 [+0200]:
>> +(define* (least-authority-wrapper program
>> +                                  #:key (name "pola-wrapper")
>> +                                  (guest-uid 1000)
>> +                                  (guest-gid 1000)
>> +                                  (mappings '())
>> +                                  (namespaces %namespaces)
>> +                                  (directory "/")
>> +                                  (preserved-environment-variables
>> +                                   %precious-variables))
>
> Could there be an option to define environment variables?  E.g. set
> GUIX_LOCPATH for Guile packages that need locale data to read non-ASCII
> file names.  As is, it seems like an environment-setting wrapper has to
> be inserted inside the pola wrapper to do this.

Yes, good point.  I’m tempted to wait until the first use case comes up
though.  :-)

Thanks for taking a look!