mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-21 06:45:29 -06:00
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:
* db2bdaadd ("add lua support for mpv (#3243)", 2020-02-24) /
PR #3243
* d6a6fb905 ("Allow Lua for mpv in dolphin.profile", 2020-04-18) /
issue #3363
* f3585e539 ("fixes, closes, enhances, improvements, and so on",
2020-11-09) /
issue #3686
* 3ec523f11 ("profiles: anki: allow lua", 2024-11-14) /
PR #6545
59 lines
1.3 KiB
Text
59 lines
1.3 KiB
Text
# Firejail profile for mediathekview
|
|
# Description: View streams from German public television stations
|
|
# This file is overwritten after every install/update
|
|
# Persistent local customizations
|
|
include mediathekview.local
|
|
# Persistent global definitions
|
|
include globals.local
|
|
|
|
noblacklist ${HOME}/.cache/mpv
|
|
noblacklist ${HOME}/.config/mpv
|
|
noblacklist ${HOME}/.config/smplayer
|
|
noblacklist ${HOME}/.config/totem
|
|
noblacklist ${HOME}/.config/vlc
|
|
noblacklist ${HOME}/.config/xplayer
|
|
noblacklist ${HOME}/.local/share/totem
|
|
noblacklist ${HOME}/.local/share/xplayer
|
|
noblacklist ${HOME}/.local/state/mpv
|
|
noblacklist ${HOME}/.mediathek3
|
|
noblacklist ${HOME}/.mplayer
|
|
noblacklist ${VIDEOS}
|
|
|
|
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
|
|
include disable-interpreters.inc
|
|
include disable-programs.inc
|
|
include disable-xdg.inc
|
|
|
|
mkdir ${HOME}/.mediathek3
|
|
whitelist ${HOME}/.mediathek3
|
|
include whitelist-var-common.inc
|
|
|
|
caps.drop all
|
|
netfilter
|
|
nodvd
|
|
nogroups
|
|
noinput
|
|
nonewprivs
|
|
noroot
|
|
notv
|
|
nou2f
|
|
novideo
|
|
protocol unix,inet,inet6
|
|
seccomp
|
|
tracelog
|
|
|
|
private-cache
|
|
private-dev
|
|
private-tmp
|
|
|
|
restrict-namespaces
|