diff options
author | Tad <tad@spotco.us> | 2017-08-07 01:22:08 -0400 |
---|---|---|
committer | Tad <tad@spotco.us> | 2017-08-07 01:22:08 -0400 |
commit | 9e3ba319be6b9546d7e8f450ca419ee2f3f4040b (patch) | |
tree | 0aebe82de78a61877c267f4dcb2ebcc13a2e37c9 /etc/spotify.profile | |
parent | various profile fixes (#1433) (diff) | |
download | firejail-9e3ba319be6b9546d7e8f450ca419ee2f3f4040b.tar.gz firejail-9e3ba319be6b9546d7e8f450ca419ee2f3f4040b.tar.zst firejail-9e3ba319be6b9546d7e8f450ca419ee2f3f4040b.zip |
Unify all profiles
Diffstat (limited to 'etc/spotify.profile')
-rw-r--r-- | etc/spotify.profile | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/etc/spotify.profile b/etc/spotify.profile index 07103b112..64805153c 100644 --- a/etc/spotify.profile +++ b/etc/spotify.profile | |||
@@ -1,26 +1,35 @@ | |||
1 | # Persistent global definitions go here | 1 | # Firejail profile for spotify |
2 | # This file is overwritten after every install/update | ||
3 | # Persistent local customizations | ||
4 | include /etc/firejail/spotify.local | ||
5 | # Persistent global definitions | ||
2 | include /etc/firejail/globals.local | 6 | include /etc/firejail/globals.local |
3 | 7 | ||
4 | # This file is overwritten during software install. | 8 | blacklist ${HOME}/.bashrc |
5 | # Persistent customizations should go in a .local file. | 9 | blacklist /boot |
6 | include /etc/firejail/spotify.local | 10 | blacklist /lost+found |
11 | blacklist /opt | ||
12 | blacklist /root | ||
13 | blacklist /sbin | ||
14 | blacklist /srv | ||
15 | blacklist /sys | ||
7 | 16 | ||
8 | # Spotify media player profile | ||
9 | noblacklist ${HOME}/.config/spotify | ||
10 | noblacklist ${HOME}/.cache/spotify | 17 | noblacklist ${HOME}/.cache/spotify |
18 | noblacklist ${HOME}/.config/spotify | ||
11 | noblacklist ${HOME}/.local/share/spotify | 19 | noblacklist ${HOME}/.local/share/spotify |
20 | |||
12 | include /etc/firejail/disable-common.inc | 21 | include /etc/firejail/disable-common.inc |
13 | include /etc/firejail/disable-programs.inc | ||
14 | include /etc/firejail/disable-devel.inc | 22 | include /etc/firejail/disable-devel.inc |
15 | include /etc/firejail/disable-passwdmgr.inc | 23 | include /etc/firejail/disable-passwdmgr.inc |
24 | include /etc/firejail/disable-programs.inc | ||
16 | 25 | ||
17 | # Whitelist the folders needed by Spotify | 26 | mkdir ${HOME}/.cache/spotify |
18 | mkdir ${HOME}/.config/spotify | 27 | mkdir ${HOME}/.config/spotify |
19 | whitelist ${HOME}/.config/spotify | ||
20 | mkdir ${HOME}/.local/share/spotify | 28 | mkdir ${HOME}/.local/share/spotify |
21 | whitelist ${HOME}/.local/share/spotify | ||
22 | mkdir ${HOME}/.cache/spotify | ||
23 | whitelist ${HOME}/.cache/spotify | 29 | whitelist ${HOME}/.cache/spotify |
30 | whitelist ${HOME}/.config/spotify | ||
31 | whitelist ${HOME}/.local/share/spotify | ||
32 | include /etc/firejail/whitelist-common.inc | ||
24 | 33 | ||
25 | caps.drop all | 34 | caps.drop all |
26 | netfilter | 35 | netfilter |
@@ -31,20 +40,11 @@ protocol unix,inet,inet6,netlink | |||
31 | seccomp | 40 | seccomp |
32 | shell none | 41 | shell none |
33 | 42 | ||
34 | noexec ${HOME} | 43 | disable-mnt |
35 | noexec /tmp | ||
36 | |||
37 | private-bin spotify,bash,sh,dash | 44 | private-bin spotify,bash,sh,dash |
38 | private-etc fonts,machine-id,pulse,resolv.conf | ||
39 | private-dev | 45 | private-dev |
46 | private-etc fonts,machine-id,pulse,resolv.conf | ||
40 | private-tmp | 47 | private-tmp |
41 | disable-mnt | ||
42 | 48 | ||
43 | blacklist ${HOME}/.bashrc | 49 | noexec ${HOME} |
44 | blacklist /boot | 50 | noexec /tmp |
45 | blacklist /lost+found | ||
46 | blacklist /opt | ||
47 | blacklist /root | ||
48 | blacklist /sbin | ||
49 | blacklist /srv | ||
50 | blacklist /sys | ||