-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
profiles: mpv: allow lua #3243
profiles: mpv: allow lua #3243
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mpv has lua and javascript plugins/script and youtube-dl (python) support. That these three interpreters are available in the sandbox is fine.
@@ -4,5 +4,6 @@ include allow-lua.local | |||
|
|||
noblacklist ${PATH}/lua* | |||
noblacklist /usr/include/lua* | |||
noblacklist /usr/lib/liblua* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the blacklist? grep "/usr/lib/liblua" etc/*.inc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rusty-snake I had that in my disable-interpreters.local and forgot about it. Thanks for the catch!
mpv crashes if luajit is blocked: $ firejail --quiet --noprofile \ --include=/etc/firejail/disable-interpreters.inc /usr/bin/mpv /usr/bin/mpv: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: Permission denied So make sure that allow-lua.inc is always included when mpv paths (such as ~/.config/mpv) are allowed. Environment: luajit 2.1.1727870382-1, mpv 1:0.39.0-3 on Artix Linux. Related commits: * db2bdaa ("add lua support for mpv (netblue30#3243)", 2020-02-24) / PR netblue30#3243 * d6a6fb9 ("Allow Lua for mpv in dolphin.profile", 2020-04-18) / issue netblue30#3363 * f3585e5 ("fixes, closes, enhances, improvements, and so on", 2020-11-09) / issue netblue30#3686 * 3ec523f ("profiles: anki: allow lua", 2024-11-14) / PR netblue30#6545
mpv crashes if luajit is blocked: $ firejail --quiet --noprofile \ --include=/etc/firejail/disable-interpreters.inc /usr/bin/mpv /usr/bin/mpv: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: Permission denied So make sure that allow-lua.inc is always included when mpv paths (such as ~/.config/mpv) are allowed. Environment: luajit 2.1.1727870382-1, mpv 1:0.39.0-3 on Artix Linux. Related commits: * db2bdaa ("add lua support for mpv (#3243)", 2020-02-24) / PR #3243 * d6a6fb9 ("Allow Lua for mpv in dolphin.profile", 2020-04-18) / issue #3363 * f3585e5 ("fixes, closes, enhances, improvements, and so on", 2020-11-09) / issue #3686 * 3ec523f ("profiles: anki: allow lua", 2024-11-14) / PR #6545
On Arch mpv needs access to lua:
On a side-note, Python support (enabled in the mpv profile) doesn't seem to be needed, at least not on Arch. Need to check on a Ubuntu machine to confirm.