From: Joe Mooring Date: Sat, 1 Jul 2023 21:55:57 +0000 (-0700) Subject: snap: Restore security.exec.osenv whitelist X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=3c8256a137d447dee15645a9a8ded7d3cf68add2;p=brevno-suite%2Fhugo snap: Restore security.exec.osenv whitelist Fixes #11195 --- diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index a3a9c00e0..fc5ef9941 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -98,7 +98,7 @@ parts: echo " - pandoc_datadir to be passed to pandoc" echo " - PYTHONHOME and SNAP to be passed to rst2html" echo " - RUBYLIB to be passed to asciidoctor" - sed -i '/OsEnv: NewWhitelist/s/)\$/|GIT_EXEC_PATH|LD_LIBRARY_PATH|npm_config_(cache|init_module|userconfig)|pandoc_datadir|PYTHONHOME|RUBYLIB|SNAP&/' config/security/securityConfig.go + sed -i '/OsEnv: MustNewWhitelist/s/)\$/|GIT_EXEC_PATH|LD_LIBRARY_PATH|npm_config_(cache|init_module|userconfig)|pandoc_datadir|PYTHONHOME|RUBYLIB|SNAP&/' config/security/securityConfig.go git diff config/security/securityConfig.go HUGO_BUILD_TAGS="extended"