]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
snap: Restore security.exec.osenv whitelist
authorJoe Mooring <joe@mooring.com>
Sat, 1 Jul 2023 21:55:57 +0000 (14:55 -0700)
committerGitHub <noreply@github.com>
Sat, 1 Jul 2023 21:55:57 +0000 (14:55 -0700)
Fixes #11195

snap/snapcraft.yaml

index a3a9c00e08c610ed594c86e3be53810bb7221824..fc5ef99416f3be61e4b5c9d0f90a4dd05754bea1 100644 (file)
@@ -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"