aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLibravatar glitsj16 <glitsj16@users.noreply.github.com>2020-01-18 11:03:32 +0000
committerLibravatar GitHub <noreply@github.com>2020-01-18 11:03:32 +0000
commite8a5e0d3302547c40df2eb7b40a746f5ced3c10e (patch)
treec63d48704132b12df09cff047a0a8ef00bd6cf5c /etc
parentMerge pull request #3161 from rusty-snake/bl-wayland (diff)
downloadfirejail-e8a5e0d3302547c40df2eb7b40a746f5ced3c10e.tar.gz
firejail-e8a5e0d3302547c40df2eb7b40a746f5ced3c10e.tar.zst
firejail-e8a5e0d3302547c40df2eb7b40a746f5ced3c10e.zip
refactor claws-mail and sylpheed as whitelist profiles (#3162)
* refactor claws-mail as whitelist profile * refactor sylpheed as whitelist profile * Create email-common.profile * safeguard ${DOCUMENTS} * Add disable-xdg to email-common.profile Thanks @rusty-snake for the review.
Diffstat (limited to 'etc')
-rw-r--r--etc/claws-mail.profile43
-rw-r--r--etc/email-common.profile68
-rw-r--r--etc/sylpheed.profile11
3 files changed, 76 insertions, 46 deletions
diff --git a/etc/claws-mail.profile b/etc/claws-mail.profile
index 44124f4a3..a1c44c91d 100644
--- a/etc/claws-mail.profile
+++ b/etc/claws-mail.profile
@@ -7,46 +7,11 @@ include claws-mail.local
7include globals.local 7include globals.local
8 8
9noblacklist ${HOME}/.claws-mail 9noblacklist ${HOME}/.claws-mail
10noblacklist ${HOME}/.gnupg
11noblacklist ${HOME}/.signature
12# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your claws-mail.local
13# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications
14noblacklist ${HOME}/Mail
15 10
16noblacklist ${DOCUMENTS} 11mkdir ${HOME}/.claws-mail
17include disable-common.inc 12whitelist ${HOME}/.claws-mail
18include disable-devel.inc
19include disable-exec.inc
20include disable-interpreters.inc
21include disable-passwdmgr.inc
22include disable-programs.inc
23include disable-xdg.inc
24 13
25whitelist /usr/share/doc/claws-mail 14whitelist /usr/share/doc/claws-mail
26whitelist /usr/share/gnupg
27whitelist /usr/share/gnupg2
28include whitelist-usr-share-common.inc
29 15
30caps.drop all 16# Redirect
31netfilter 17include email-common.profile \ No newline at end of file
32no3d
33nodvd
34nogroups
35nonewprivs
36noroot
37nosound
38notv
39nou2f
40novideo
41protocol unix,inet,inet6
42seccomp
43shell none
44
45private-cache
46private-dev
47private-tmp
48
49# If you want to read local mail stored in /var/mail, add the following to claws-mail.local:
50# noblacklist /var/mail
51# noblacklist /var/spool/mail
52# writable-var
diff --git a/etc/email-common.profile b/etc/email-common.profile
new file mode 100644
index 000000000..f9d96858b
--- /dev/null
+++ b/etc/email-common.profile
@@ -0,0 +1,68 @@
1# Firejail profile for email-common
2# Description: Common profile for claws-mail and sylpheed email clients
3# This file is overwritten after every install/update
4# Persistent local customizations
5include email-common.local
6# Persistent global definitions
7# added by caller profile
8#include globals.local
9
10noblacklist ${HOME}/.gnupg
11noblacklist ${HOME}/.signature
12# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your email-common.local
13# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications
14noblacklist ${HOME}/Mail
15
16noblacklist ${DOCUMENTS}
17
18include disable-common.inc
19include disable-devel.inc
20include disable-interpreters.inc
21include disable-passwdmgr.inc
22include disable-programs.inc
23include disable-xdg.inc
24
25whitelist ${DOCUMENTS}
26whitelist ${DOWNLOADS}
27mkfile ${HOME}/.config/mimeapps.list
28mkdir ${HOME}/.gnupg
29mkfile ${HOME}/.signature
30whitelist ${HOME}/.config/mimeapps.list
31whitelist ${HOME}/.gnupg
32whitelist ${HOME}/.signature
33# when storing mail outside the default ${HOME}/Mail path, 'whitelist' the custom path in your email-common.local
34whitelist ${HOME}/Mail
35whitelist /usr/share/gnupg
36whitelist /usr/share/gnupg2
37include whitelist-common.inc
38include whitelist-usr-share-common.inc
39include whitelist-var-common.inc
40
41caps.drop all
42netfilter
43no3d
44nodvd
45nogroups
46nonewprivs
47noroot
48nosound
49notv
50nou2f
51novideo
52protocol unix,inet,inet6
53seccomp
54shell none
55tracelog
56
57private-cache
58private-dev
59private-tmp
60
61# encrypting and signing email
62read-only ${HOME}/.config/mimeapps.list
63writable-run-user
64
65# If you want to read local mail stored in /var/mail, add the following to email-common.local:
66# whitelist /var/mail
67# whitelist /var/spool/mail
68# writable-var
diff --git a/etc/sylpheed.profile b/etc/sylpheed.profile
index 8e99fe1d6..4344fe73a 100644
--- a/etc/sylpheed.profile
+++ b/etc/sylpheed.profile
@@ -4,17 +4,14 @@
4# Persistent local customizations 4# Persistent local customizations
5include sylpheed.local 5include sylpheed.local
6# Persistent global definitions 6# Persistent global definitions
7# added by included profile 7include globals.local
8#include globals.local
9 8
10noblacklist ${HOME}/.sylpheed-2.0 9noblacklist ${HOME}/.sylpheed-2.0
11# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your sylpheed.local
12# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications
13 10
14blacklist ${HOME}/.claws-mail 11mkdir ${HOME}/.sylpheed-2.0
12whitelist ${HOME}/.sylpheed-2.0
15 13
16nowhitelist /usr/share/doc/claws-mail
17whitelist /usr/share/sylpheed 14whitelist /usr/share/sylpheed
18 15
19# Redirect 16# Redirect
20include claws-mail.profile 17include email-common.profile