Skip to content

Commit e4ebbfa

Browse files
authored
profiles: ensure allow-lua where mpv is allowed (netblue30#6555)
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
1 parent e99d10f commit e4ebbfa

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed

etc/profile-a-l/firefox-common-addons.profile

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ noblacklist ${HOME}/.local/share/qpdfview
3737
noblacklist ${HOME}/.local/state/mpv
3838
noblacklist ${HOME}/.netrc
3939

40+
# Allow lua (blacklisted by disable-interpreters.inc)
41+
include allow-lua.inc
42+
4043
whitelist ${HOME}/.cache/gnome-mplayer/plugin
4144
whitelist ${HOME}/.cache/mpv
4245
whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs

etc/profile-m-z/QMediathekView.profile

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ noblacklist ${HOME}/.local/state/mpv
2121
noblacklist ${HOME}/.mplayer
2222
noblacklist ${VIDEOS}
2323

24+
# Allow lua (blacklisted by disable-interpreters.inc)
25+
include allow-lua.inc
26+
2427
include disable-common.inc
2528
include disable-devel.inc
2629
include disable-exec.inc

etc/profile-m-z/mediathekview.profile

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ ignore noexec /tmp
2424
# Allow java (blacklisted by disable-devel.inc)
2525
include allow-java.inc
2626

27+
# Allow lua (blacklisted by disable-interpreters.inc)
28+
include allow-lua.inc
29+
2730
include disable-common.inc
2831
include disable-devel.inc
2932
include disable-exec.inc

etc/profile-m-z/rtv-addons.profile

+3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ noblacklist ${HOME}/.mailcap
1818
noblacklist ${HOME}/.netrc
1919
noblacklist ${HOME}/.w3m
2020

21+
# Allow lua (blacklisted by disable-interpreters.inc)
22+
include allow-lua.inc
23+
2124
whitelist ${HOME}/.cache/mpv
2225
whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
2326
whitelist ${HOME}/.config/mpv

etc/profile-m-z/smtube.profile

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ noblacklist ${HOME}/.mplayer
1717
noblacklist ${MUSIC}
1818
noblacklist ${VIDEOS}
1919

20+
# Allow lua (blacklisted by disable-interpreters.inc)
21+
include allow-lua.inc
22+
2023
include disable-common.inc
2124
include disable-devel.inc
2225
include disable-exec.inc

0 commit comments

Comments
 (0)