diff options
Diffstat (limited to 'etc/mpDris2.profile')
-rw-r--r-- | etc/mpDris2.profile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/etc/mpDris2.profile b/etc/mpDris2.profile new file mode 100644 index 000000000..7d551a96f --- /dev/null +++ b/etc/mpDris2.profile | |||
@@ -0,0 +1,53 @@ | |||
1 | # Firejail profile for mpDris2 | ||
2 | # Description: MPRIS2 support for MPD | ||
3 | # This file is overwritten after every install/update | ||
4 | # Persistent local customizations | ||
5 | include mpDris2.local | ||
6 | # Persistent global definitions | ||
7 | include globals.local | ||
8 | |||
9 | noblacklist ${HOME}/.config/mpDris2 | ||
10 | |||
11 | # Allow python (blacklisted by disable-interpreters.inc) | ||
12 | noblacklist ${PATH}/python2* | ||
13 | noblacklist ${PATH}/python3* | ||
14 | noblacklist /usr/lib/python2* | ||
15 | noblacklist /usr/lib/python3* | ||
16 | |||
17 | include disable-common.inc | ||
18 | include disable-devel.inc | ||
19 | include disable-interpreters.inc | ||
20 | include disable-passwdmgr.inc | ||
21 | include disable-programs.inc | ||
22 | include disable-xdg.inc | ||
23 | |||
24 | caps.drop all | ||
25 | # machine-id breaks audio; it should work fine in setups where sound is not required | ||
26 | machine-id | ||
27 | netfilter | ||
28 | no3d | ||
29 | nodvd | ||
30 | nogroups | ||
31 | nonewprivs | ||
32 | noroot | ||
33 | nosound | ||
34 | notv | ||
35 | nou2f | ||
36 | novideo | ||
37 | protocol unix,inet,inet6 | ||
38 | seccomp | ||
39 | shell none | ||
40 | |||
41 | private-bin mpDris2,notify-send,python* | ||
42 | private-cache | ||
43 | private-dev | ||
44 | private-etc alternatives,hosts,nsswitch.conf | ||
45 | private-lib libgirepository-1.0.so.*,libnotify.so.*,libpython*,python2*,python3* | ||
46 | private-tmp | ||
47 | |||
48 | # memory-deny-write-execute - Breaks on Arch | ||
49 | noexec ${HOME} | ||
50 | noexec /tmp | ||
51 | |||
52 | # mpDris2 will never write anything | ||
53 | read-only ${HOME} | ||