Skip to content

Commit

Permalink
profiles: ensure allow-lua where mpv is allowed
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kmk3 committed Nov 25, 2024
1 parent e99d10f commit eaa75ad
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions etc/profile-a-l/firefox-common-addons.profile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ noblacklist ${HOME}/.local/share/qpdfview
noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.netrc

# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc

whitelist ${HOME}/.cache/gnome-mplayer/plugin
whitelist ${HOME}/.cache/mpv
whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
Expand Down
3 changes: 3 additions & 0 deletions etc/profile-m-z/QMediathekView.profile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ noblacklist ${HOME}/.local/state/mpv
noblacklist ${HOME}/.mplayer
noblacklist ${VIDEOS}

# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
Expand Down
3 changes: 3 additions & 0 deletions etc/profile-m-z/mediathekview.profile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ ignore noexec /tmp
# Allow java (blacklisted by disable-devel.inc)
include allow-java.inc

# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
Expand Down
3 changes: 3 additions & 0 deletions etc/profile-m-z/rtv-addons.profile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ noblacklist ${HOME}/.mailcap
noblacklist ${HOME}/.netrc
noblacklist ${HOME}/.w3m

# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc

whitelist ${HOME}/.cache/mpv
whitelist ${HOME}/.cache/youtube-dl/youtube-sigfuncs
whitelist ${HOME}/.config/mpv
Expand Down
3 changes: 3 additions & 0 deletions etc/profile-m-z/smtube.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ noblacklist ${HOME}/.mplayer
noblacklist ${MUSIC}
noblacklist ${VIDEOS}

# Allow lua (blacklisted by disable-interpreters.inc)
include allow-lua.inc

include disable-common.inc
include disable-devel.inc
include disable-exec.inc
Expand Down

0 comments on commit eaa75ad

Please sign in to comment.