diff options
Diffstat (limited to 'etc/spotify.profile')
-rw-r--r-- | etc/spotify.profile | 33 |
1 files changed, 23 insertions, 10 deletions
diff --git a/etc/spotify.profile b/etc/spotify.profile index fd4586dd5..6dbcc03ee 100644 --- a/etc/spotify.profile +++ b/etc/spotify.profile | |||
@@ -7,24 +7,37 @@ include /etc/firejail/disable-programs.inc | |||
7 | include /etc/firejail/disable-devel.inc | 7 | include /etc/firejail/disable-devel.inc |
8 | include /etc/firejail/disable-passwdmgr.inc | 8 | include /etc/firejail/disable-passwdmgr.inc |
9 | 9 | ||
10 | # Whitelist the folders needed by Spotify - This is more restrictive | 10 | # Whitelist the folders needed by Spotify |
11 | # than a blacklist though, but this is all spotify requires for | ||
12 | # streaming audio | ||
13 | mkdir ${HOME}/.config | ||
14 | mkdir ${HOME}/.config/spotify | 11 | mkdir ${HOME}/.config/spotify |
15 | whitelist ${HOME}/.config/spotify | 12 | whitelist ${HOME}/.config/spotify |
16 | mkdir ${HOME}/.local | ||
17 | mkdir ${HOME}/.local/share | ||
18 | mkdir ${HOME}/.local/share/spotify | 13 | mkdir ${HOME}/.local/share/spotify |
19 | whitelist ${HOME}/.local/share/spotify | 14 | whitelist ${HOME}/.local/share/spotify |
20 | mkdir ${HOME}/.cache | ||
21 | mkdir ${HOME}/.cache/spotify | 15 | mkdir ${HOME}/.cache/spotify |
22 | whitelist ${HOME}/.cache/spotify | 16 | whitelist ${HOME}/.cache/spotify |
23 | include /etc/firejail/whitelist-common.inc | ||
24 | 17 | ||
25 | caps.drop all | 18 | caps.drop all |
26 | seccomp | ||
27 | protocol unix,inet,inet6,netlink | ||
28 | netfilter | 19 | netfilter |
20 | nogroups | ||
21 | nonewprivs | ||
29 | noroot | 22 | noroot |
23 | protocol unix,inet,inet6,netlink | ||
24 | seccomp | ||
25 | shell none | ||
26 | |||
27 | private-bin spotify | ||
28 | private-etc fonts,machine-id,pulse,resolv.conf | ||
29 | private-dev | ||
30 | private-tmp | ||
30 | 31 | ||
32 | blacklist ${HOME}/.Xauthority | ||
33 | blacklist ${HOME}/.bashrc | ||
34 | blacklist /boot | ||
35 | blacklist /lost+found | ||
36 | blacklist /media | ||
37 | blacklist /mnt | ||
38 | blacklist /opt | ||
39 | blacklist /root | ||
40 | blacklist /sbin | ||
41 | blacklist /srv | ||
42 | blacklist /sys | ||
43 | blacklist /var | ||