diff options
-rw-r--r-- | README | 1 | ||||
-rw-r--r-- | etc/disable-common.inc | 4 | ||||
-rw-r--r-- | etc/spotify.profile | 22 |
3 files changed, 22 insertions, 5 deletions
@@ -77,6 +77,7 @@ Fred-Barclay (https://github.com/Fred-Barclay) | |||
77 | - added gnome-chess profile | 77 | - added gnome-chess profile |
78 | - added DOSBox profile | 78 | - added DOSBox profile |
79 | - evince profile enhancement | 79 | - evince profile enhancement |
80 | - tightened Spotify profile | ||
80 | valoq (https://github.com/valoq) | 81 | valoq (https://github.com/valoq) |
81 | - LibreOffice profile fixes | 82 | - LibreOffice profile fixes |
82 | - cherrytree profile fixes | 83 | - cherrytree profile fixes |
diff --git a/etc/disable-common.inc b/etc/disable-common.inc index 4f854c8d8..29de8cca9 100644 --- a/etc/disable-common.inc +++ b/etc/disable-common.inc | |||
@@ -172,3 +172,7 @@ blacklist ${PATH}/roxterm-config | |||
172 | blacklist ${PATH}/terminix | 172 | blacklist ${PATH}/terminix |
173 | blacklist ${PATH}/urxvtc | 173 | blacklist ${PATH}/urxvtc |
174 | blacklist ${PATH}/urxvtcd | 174 | blacklist ${PATH}/urxvtcd |
175 | |||
176 | # kernel files | ||
177 | blacklist /vmlinuz* | ||
178 | blacklist /initrd* | ||
diff --git a/etc/spotify.profile b/etc/spotify.profile index 73d427db3..6dbcc03ee 100644 --- a/etc/spotify.profile +++ b/etc/spotify.profile | |||
@@ -7,16 +7,13 @@ 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/spotify | 11 | mkdir ${HOME}/.config/spotify |
14 | whitelist ${HOME}/.config/spotify | 12 | whitelist ${HOME}/.config/spotify |
15 | mkdir ${HOME}/.local/share/spotify | 13 | mkdir ${HOME}/.local/share/spotify |
16 | whitelist ${HOME}/.local/share/spotify | 14 | whitelist ${HOME}/.local/share/spotify |
17 | mkdir ${HOME}/.cache/spotify | 15 | mkdir ${HOME}/.cache/spotify |
18 | whitelist ${HOME}/.cache/spotify | 16 | whitelist ${HOME}/.cache/spotify |
19 | include /etc/firejail/whitelist-common.inc | ||
20 | 17 | ||
21 | caps.drop all | 18 | caps.drop all |
22 | netfilter | 19 | netfilter |
@@ -27,5 +24,20 @@ protocol unix,inet,inet6,netlink | |||
27 | seccomp | 24 | seccomp |
28 | shell none | 25 | shell none |
29 | 26 | ||
30 | #private-bin spotify | 27 | private-bin spotify |
28 | private-etc fonts,machine-id,pulse,resolv.conf | ||
31 | private-dev | 29 | private-dev |
30 | private-tmp | ||
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 | ||