From d35847f9a4c50d3f870760a4906753a03c62a2f3 Mon Sep 17 00:00:00 2001 From: "Kelvin M. Klann" Date: Mon, 8 Jan 2024 11:56:27 +0000 Subject: profiles: use only /usr/share/lua* (#6150) 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 9c47e7a3b..4b6dd8a53 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 44e54ec1d..ccc2dc7f6 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 9cb1fd0ce..b85002b00 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 77c032a53..c2343db02 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 -- cgit v1.2.3-54-g00ecf