From 15de8b57834ede8a9b521c23122773751b47da12 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Wed, 13 Dec 2023 23:18:49 -0300 Subject: [PATCH] profiles: use only /usr/share/lua* To ensure that it includes luajit paths as well: * /usr/share/lua * /usr/share/luajit-2.1 And remove all entries of the same path without the wildcard, to avoid redundancy. Misc: The wildcard entries were added on commit 56b60dfd0 ("additional Lua blacklisting (#3246)", 2020-02-24) and the entries without the wildcard were partially removed on commit 721a984a5 ("Fix Lua in disable-interpreters.inc", 2020-02-24). This is a follow-up to #6128. Reported-by: @pirate486743186 --- etc/inc/allow-lua.inc | 1 - etc/profile-a-l/firefox-common-addons.profile | 1 - etc/profile-m-z/mpv.profile | 1 - etc/profile-m-z/rhythmbox.profile | 2 +- 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/etc/inc/allow-lua.inc b/etc/inc/allow-lua.inc index 9c47e7a3b7b..4b6dd8a53a3 100644 --- a/etc/inc/allow-lua.inc +++ b/etc/inc/allow-lua.inc @@ -8,5 +8,4 @@ noblacklist /usr/lib/liblua* noblacklist /usr/lib/lua noblacklist /usr/lib64/liblua* noblacklist /usr/lib64/lua -noblacklist /usr/share/lua noblacklist /usr/share/lua* diff --git a/etc/profile-a-l/firefox-common-addons.profile b/etc/profile-a-l/firefox-common-addons.profile index 44e54ec1d74..ccc2dc7f67e 100644 --- a/etc/profile-a-l/firefox-common-addons.profile +++ b/etc/profile-a-l/firefox-common-addons.profile @@ -76,7 +76,6 @@ whitelist ${HOME}/.wine-pipelight whitelist ${HOME}/.wine-pipelight64 whitelist ${HOME}/.zotero whitelist ${HOME}/dwhelper -whitelist /usr/share/lua whitelist /usr/share/lua* whitelist /usr/share/mpv diff --git a/etc/profile-m-z/mpv.profile b/etc/profile-m-z/mpv.profile index 9cb1fd0cec2..b85002b0069 100644 --- a/etc/profile-m-z/mpv.profile +++ b/etc/profile-m-z/mpv.profile @@ -64,7 +64,6 @@ whitelist ${HOME}/.local/state/mpv whitelist ${HOME}/.netrc whitelist ${HOME}/yt-dlp.conf whitelist ${HOME}/yt-dlp.conf.txt -whitelist /usr/share/lua whitelist /usr/share/lua* whitelist /usr/share/mpv include whitelist-common.inc diff --git a/etc/profile-m-z/rhythmbox.profile b/etc/profile-m-z/rhythmbox.profile index 77c032a5329..c2343db02b4 100644 --- a/etc/profile-m-z/rhythmbox.profile +++ b/etc/profile-m-z/rhythmbox.profile @@ -26,7 +26,7 @@ include disable-shell.inc include disable-xdg.inc whitelist /usr/share/rhythmbox -whitelist /usr/share/lua +whitelist /usr/share/lua* whitelist /usr/share/libquvi-scripts whitelist /usr/share/tracker include whitelist-runuser-common.inc