diff options
author | Simon McVittie <smcv@collabora.com> | 2021-01-12 13:42:05 +0000 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2021-01-14 09:33:24 +0100 |
commit | c4a58d5822e86f82bbf9e2e7702153a51cc6841b (patch) | |
tree | e38eaba52e43a0c4cf1e4560b6a6e8d6e2c45f9e /data | |
parent | 4108e022452303093d8b90c838695a0476cb09c7 (diff) | |
download | flatpak-c4a58d5822e86f82bbf9e2e7702153a51cc6841b.tar.gz |
portal: Add the ability to unset environment variables
This is really just syntactic sugar for running `env -u VAR ... COMMAND`,
but env(1) is inconvenient when the form of the COMMAND is not known:
if the COMMAND might contain an equals sign, you end up having to run
`env -u VAR sh -c 'exec "$@"' sh COMMAND`. Let's make this simpler.
This follows up from GHSA-4ppf-fxf6-vxg2 to fix an issue that I noticed
while resolving that vulnerability, but is not required for fixing the
vulnerability.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'data')
-rw-r--r-- | data/org.freedesktop.portal.Flatpak.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/data/org.freedesktop.portal.Flatpak.xml b/data/org.freedesktop.portal.Flatpak.xml index f6617957..fcc84dc6 100644 --- a/data/org.freedesktop.portal.Flatpak.xml +++ b/data/org.freedesktop.portal.Flatpak.xml @@ -223,6 +223,14 @@ This was added in version 3 of this interface (available from flatpak 1.6.0 and later). </para></listitem> </varlistentry> + <varlistentry> + <term>unset-env as</term> + <listitem><para> + A list of environment variables to unset (remove from the environment). + </para><para> + This was added in version 5 of this interface (available from flatpak 1.10.0 and later). + </para></listitem> + </varlistentry> </variablelist> --> |