diff options
author | 2017-08-07 13:41:08 -0500 | |
---|---|---|
committer | 2017-08-07 13:41:08 -0500 | |
commit | e24b15f8647997dbb26a7152c921af94e36294ce (patch) | |
tree | 4c98b42844c8c67853643d4b4b7253dbd8764f1e /etc/spotify.profile | |
parent | merges (diff) | |
parent | Unify last 8 profiles (diff) | |
download | firejail-e24b15f8647997dbb26a7152c921af94e36294ce.tar.gz firejail-e24b15f8647997dbb26a7152c921af94e36294ce.tar.zst firejail-e24b15f8647997dbb26a7152c921af94e36294ce.zip |
Merge pull request #1427 from SpotComms/pr
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 | ||