| 1 |
# Firejail profile for lutris |
| 2 |
# Description: Multi-library game handler with special support for Wine |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include lutris.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
# If you use gamescope, add the following to lutris.local to work around a bug |
| 10 |
# (see #6191): |
| 11 |
#ignore noroot |
| 12 |
#ignore private-tmp |
| 13 |
|
| 14 |
noblacklist ${PATH}/llvm* |
| 15 |
noblacklist ${HOME}/Games |
| 16 |
noblacklist ${HOME}/.cache/lutris |
| 17 |
noblacklist ${HOME}/.cache/wine |
| 18 |
noblacklist ${HOME}/.cache/winetricks |
| 19 |
noblacklist ${HOME}/.config/MangoHud |
| 20 |
noblacklist ${HOME}/.config/lutris |
| 21 |
noblacklist ${HOME}/.local/share/lutris |
| 22 |
#noblacklist ${HOME}/.wine |
| 23 |
noblacklist /tmp/.wine-* |
| 24 |
# Don't block access to /sbin and /usr/sbin to allow using ldconfig. Otherwise |
| 25 |
# Lutris won't even start. |
| 26 |
noblacklist /sbin |
| 27 |
noblacklist /usr/sbin |
| 28 |
|
| 29 |
ignore noexec ${HOME} |
| 30 |
|
| 31 |
# Allow python (blacklisted by disable-interpreters.inc) |
| 32 |
include allow-python2.inc |
| 33 |
include allow-python3.inc |
| 34 |
|
| 35 |
include disable-common.inc |
| 36 |
include disable-devel.inc |
| 37 |
include disable-exec.inc |
| 38 |
include disable-interpreters.inc |
| 39 |
include disable-programs.inc |
| 40 |
include disable-xdg.inc |
| 41 |
|
| 42 |
mkdir ${HOME}/Games |
| 43 |
mkdir ${HOME}/.cache/lutris |
| 44 |
mkdir ${HOME}/.cache/wine |
| 45 |
mkdir ${HOME}/.cache/winetricks |
| 46 |
mkdir ${HOME}/.config/lutris |
| 47 |
mkdir ${HOME}/.local/share/lutris |
| 48 |
#mkdir ${HOME}/.wine |
| 49 |
whitelist ${DOWNLOADS} |
| 50 |
whitelist ${HOME}/Games |
| 51 |
whitelist ${HOME}/.cache/lutris |
| 52 |
whitelist ${HOME}/.cache/wine |
| 53 |
whitelist ${HOME}/.cache/winetricks |
| 54 |
whitelist ${HOME}/.config/MangoHud |
| 55 |
whitelist ${HOME}/.config/lutris |
| 56 |
whitelist ${HOME}/.local/share/lutris |
| 57 |
#whitelist ${HOME}/.wine |
| 58 |
whitelist /usr/share/lutris |
| 59 |
whitelist /usr/share/wine |
| 60 |
include whitelist-common.inc |
| 61 |
include whitelist-usr-share-common.inc |
| 62 |
include whitelist-runuser-common.inc |
| 63 |
include whitelist-var-common.inc |
| 64 |
|
| 65 |
#allow-debuggers |
| 66 |
keep-dev-ntsync |
| 67 |
|
| 68 |
#apparmor |
| 69 |
caps.drop all |
| 70 |
ipc-namespace |
| 71 |
#net none |
| 72 |
netfilter |
| 73 |
nodvd |
| 74 |
nogroups |
| 75 |
nonewprivs |
| 76 |
noroot |
| 77 |
notv |
| 78 |
#nou2f # may break gamepads in certain games (see #6523) |
| 79 |
novideo |
| 80 |
protocol unix,inet,inet6,netlink |
| 81 |
seccomp !clone3,!modify_ldt,!process_vm_readv,!ptrace |
| 82 |
seccomp.32 !modify_ldt |
| 83 |
|
| 84 |
# Add the next line to your lutris.local if you do not need controller support. |
| 85 |
#private-dev |
| 86 |
private-tmp |
| 87 |
|
| 88 |
dbus-user filter |
| 89 |
dbus-user.own net.lutris.Lutris |
| 90 |
dbus-user.talk com.feralinteractive.GameMode |
| 91 |
dbus-system none |
| 92 |
|
| 93 |
restrict-namespaces |