aboutsummaryrefslogtreecommitdiffstats
path: root/etc/profile-a-l
diff options
context:
space:
mode:
authorLibravatar bbhtt <62639087+bbhtt@users.noreply.github.com>2020-12-31 03:58:57 +0000
committerLibravatar bbhtt <62639087+bbhtt@users.noreply.github.com>2020-12-31 03:58:57 +0000
commit144aee26f56156cb4ec0c674062c447d261802a4 (patch)
tree4512bc6cd552355f53c404bd25ad7400eafbdf55 /etc/profile-a-l
parentAdd folks cache directory (diff)
downloadfirejail-144aee26f56156cb4ec0c674062c447d261802a4.tar.gz
firejail-144aee26f56156cb4ec0c674062c447d261802a4.tar.zst
firejail-144aee26f56156cb4ec0c674062c447d261802a4.zip
Improve whitelisting and dbus of Sylpheed and Claws-mail
Diffstat (limited to 'etc/profile-a-l')
-rw-r--r--etc/profile-a-l/claws-mail.profile10
-rw-r--r--etc/profile-a-l/email-common.profile22
2 files changed, 23 insertions, 9 deletions
diff --git a/etc/profile-a-l/claws-mail.profile b/etc/profile-a-l/claws-mail.profile
index 69196c578..c060279df 100644
--- a/etc/profile-a-l/claws-mail.profile
+++ b/etc/profile-a-l/claws-mail.profile
@@ -18,10 +18,14 @@ whitelist ${HOME}/.claws-mail
18 18
19whitelist /usr/share/doc/claws-mail 19whitelist /usr/share/doc/claws-mail
20 20
21# private-bin claws-mail,curl,gpg,gpg2,gpg-agent,gpgsm,gpgme-config,pinentry,pinentry-gtk-2
22
23dbus-user filter
24dbus-user.talk ca.desrt.dconf
25dbus-user.talk org.gnome.keyring.SystemPrompter
21# if you use the notification plugin you need to uncomment the below (or put them in your claws-mail.local) 26# if you use the notification plugin you need to uncomment the below (or put them in your claws-mail.local)
22#ignore dbus-user none 27# dbus-user.talk org.freedesktop.Notifications
23#dbus-user filter 28dbus-system none
24#dbus-user.talk org.freedesktop.Notifications
25 29
26# Redirect 30# Redirect
27include email-common.profile 31include email-common.profile
diff --git a/etc/profile-a-l/email-common.profile b/etc/profile-a-l/email-common.profile
index df47f478d..9e7c15a9d 100644
--- a/etc/profile-a-l/email-common.profile
+++ b/etc/profile-a-l/email-common.profile
@@ -8,6 +8,7 @@ include email-common.local
8#include globals.local 8#include globals.local
9 9
10noblacklist ${HOME}/.gnupg 10noblacklist ${HOME}/.gnupg
11noblacklist ${HOME}/.mozilla
11noblacklist ${HOME}/.signature 12noblacklist ${HOME}/.signature
12# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your email-common.local 13# 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 14# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications
@@ -17,28 +18,35 @@ noblacklist ${DOCUMENTS}
17 18
18include disable-common.inc 19include disable-common.inc
19include disable-devel.inc 20include disable-devel.inc
21include disable-exec.inc
20include disable-interpreters.inc 22include disable-interpreters.inc
21include disable-passwdmgr.inc 23include disable-passwdmgr.inc
22include disable-programs.inc 24include disable-programs.inc
23include disable-xdg.inc 25include disable-xdg.inc
24 26
25whitelist ${DOCUMENTS}
26whitelist ${DOWNLOADS}
27mkfile ${HOME}/.config/mimeapps.list 27mkfile ${HOME}/.config/mimeapps.list
28mkdir ${HOME}/.gnupg
29mkfile ${HOME}/.signature 28mkfile ${HOME}/.signature
29mkdir ${HOME}/.gnupg
30whitelist ${HOME}/.config/mimeapps.list 30whitelist ${HOME}/.config/mimeapps.list
31whitelist ${HOME}/.mozilla/firefox/profiles.ini
31whitelist ${HOME}/.gnupg 32whitelist ${HOME}/.gnupg
32whitelist ${HOME}/.signature 33whitelist ${HOME}/.signature
34whitelist ${DOCUMENTS}
35whitelist ${DOWNLOADS}
33# when storing mail outside the default ${HOME}/Mail path, 'whitelist' the custom path in your email-common.local 36# when storing mail outside the default ${HOME}/Mail path, 'whitelist' the custom path in your email-common.local
34whitelist ${HOME}/Mail 37whitelist ${HOME}/Mail
38
39whitelist ${RUNUSER}/gnupg
35whitelist /usr/share/gnupg 40whitelist /usr/share/gnupg
36whitelist /usr/share/gnupg2 41whitelist /usr/share/gnupg2
37include whitelist-common.inc 42include whitelist-common.inc
43include whitelist-runuser-common.inc
38include whitelist-usr-share-common.inc 44include whitelist-usr-share-common.inc
39include whitelist-var-common.inc 45include whitelist-var-common.inc
40 46
47apparmor
41caps.drop all 48caps.drop all
49machine-id
42netfilter 50netfilter
43no3d 51no3d
44nodvd 52nodvd
@@ -54,13 +62,12 @@ seccomp
54shell none 62shell none
55tracelog 63tracelog
56 64
65# disable-mnt
57private-cache 66private-cache
58private-dev 67private-dev
68private-etc alternatives,ca-certificates,crypto-policies,dconf,fonts,gcrypt,gnupg,groups,gtk-2.0,gtk-3.0,hostname,hosts,hosts.conf,mailname,nsswitch.conf,passwd,pki,resolv.conf,selinux,ssl,xdg
59private-tmp 69private-tmp
60 70
61dbus-user none
62dbus-system none
63
64# encrypting and signing email 71# encrypting and signing email
65writable-run-user 72writable-run-user
66 73
@@ -70,3 +77,6 @@ writable-run-user
70#whitelist /var/mail 77#whitelist /var/mail
71#whitelist /var/spool/mail 78#whitelist /var/spool/mail
72#writable-var 79#writable-var
80
81read-only ${HOME}/.mozilla/firefox/profiles.ini
82read-only ${HOME}/.signature