aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Fred-Barclay <Fred-Barclay@users.noreply.github.com>2016-10-23 14:31:56 -0500
committerLibravatar Fred-Barclay <Fred-Barclay@users.noreply.github.com>2016-10-23 14:31:56 -0500
commit81c570e8e975c8ff3f62c45caffa4e5749296e9d (patch)
tree7d27365277a053a7d78b54edb37a055085cdce95
parentappimage fixes (diff)
downloadfirejail-81c570e8e975c8ff3f62c45caffa4e5749296e9d.tar.gz
firejail-81c570e8e975c8ff3f62c45caffa4e5749296e9d.tar.zst
firejail-81c570e8e975c8ff3f62c45caffa4e5749296e9d.zip
tightened Spotify profile
-rw-r--r--README1
-rw-r--r--etc/spotify.profile26
2 files changed, 22 insertions, 5 deletions
diff --git a/README b/README
index 10b0ab61b..f4fd52666 100644
--- a/README
+++ b/README
@@ -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
80valoq (https://github.com/valoq) 81valoq (https://github.com/valoq)
81 - LibreOffice profile fixes 82 - LibreOffice profile fixes
82 - cherrytree profile fixes 83 - cherrytree profile fixes
diff --git a/etc/spotify.profile b/etc/spotify.profile
index 73d427db3..24e5c1023 100644
--- a/etc/spotify.profile
+++ b/etc/spotify.profile
@@ -7,16 +7,13 @@ include /etc/firejail/disable-programs.inc
7include /etc/firejail/disable-devel.inc 7include /etc/firejail/disable-devel.inc
8include /etc/firejail/disable-passwdmgr.inc 8include /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
13mkdir ${HOME}/.config/spotify 11mkdir ${HOME}/.config/spotify
14whitelist ${HOME}/.config/spotify 12whitelist ${HOME}/.config/spotify
15mkdir ${HOME}/.local/share/spotify 13mkdir ${HOME}/.local/share/spotify
16whitelist ${HOME}/.local/share/spotify 14whitelist ${HOME}/.local/share/spotify
17mkdir ${HOME}/.cache/spotify 15mkdir ${HOME}/.cache/spotify
18whitelist ${HOME}/.cache/spotify 16whitelist ${HOME}/.cache/spotify
19include /etc/firejail/whitelist-common.inc
20 17
21caps.drop all 18caps.drop all
22netfilter 19netfilter
@@ -27,5 +24,24 @@ protocol unix,inet,inet6,netlink
27seccomp 24seccomp
28shell none 25shell none
29 26
30#private-bin spotify 27private-bin spotify
28private-etc fonts,machine-id,pulse,resolv.conf
31private-dev 29private-dev
30private-tmp
31
32blacklist ${HOME}/.Xauthority
33blacklist ${HOME}/.bashrc
34blacklist /boot
35blacklist /lost+found
36blacklist /media
37blacklist /mnt
38blacklist /opt
39blacklist /root
40blacklist /sbin
41blacklist /srv
42blacklist /sys
43blacklist /var
44blacklist /initrd.img
45blacklist /initrd.img.old
46blacklist /vmlinuz
47blacklist /vmlinuz.old