| 1 |
# Firejail profile for email-common |
| 2 |
# Description: Common profile for GUI mail clients |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include email-common.local |
| 6 |
# Persistent global definitions |
| 7 |
# added by caller profile |
| 8 |
#include globals.local |
| 9 |
|
| 10 |
noblacklist ${HOME}/.bogofilter |
| 11 |
noblacklist ${HOME}/.bsfilter |
| 12 |
noblacklist ${HOME}/.gnupg |
| 13 |
noblacklist ${HOME}/.signature |
| 14 |
# when storing mail outside the default ${HOME}/Mail path, 'noblacklist' the custom path in your email-common.local |
| 15 |
# and 'blacklist' it in your disable-common.local too so it is kept hidden from other applications |
| 16 |
noblacklist ${HOME}/Mail |
| 17 |
noblacklist /etc/clamav |
| 18 |
noblacklist /var/lib/clamav |
| 19 |
noblacklist /var/mail |
| 20 |
noblacklist /var/spool/mail |
| 21 |
|
| 22 |
noblacklist ${DOCUMENTS} |
| 23 |
|
| 24 |
# Allow perl (blacklisted by disable-interpreters.inc) |
| 25 |
include allow-perl.inc |
| 26 |
|
| 27 |
include disable-common.inc |
| 28 |
include disable-devel.inc |
| 29 |
include disable-exec.inc |
| 30 |
include disable-interpreters.inc |
| 31 |
include disable-programs.inc |
| 32 |
include disable-xdg.inc |
| 33 |
|
| 34 |
# The lines below are needed to find the default Firefox profile name, to allow |
| 35 |
# opening links in an existing instance of Firefox (note that it still fails if |
| 36 |
# there isn't a Firefox instance running with the default profile; see #5352) |
| 37 |
noblacklist ${HOME}/.config/mozilla |
| 38 |
noblacklist ${HOME}/.mozilla |
| 39 |
whitelist ${HOME}/.config/mozilla/firefox/profiles.ini |
| 40 |
whitelist ${HOME}/.mozilla/firefox/profiles.ini |
| 41 |
|
| 42 |
mkdir ${HOME}/.gnupg |
| 43 |
mkfile ${HOME}/.config/mimeapps.list |
| 44 |
mkfile ${HOME}/.signature |
| 45 |
whitelist ${HOME}/.bogofilter |
| 46 |
whitelist ${HOME}/.bsfilter |
| 47 |
whitelist ${HOME}/.config/mimeapps.list |
| 48 |
whitelist ${HOME}/.gnupg |
| 49 |
whitelist ${HOME}/.signature |
| 50 |
whitelist ${DOCUMENTS} |
| 51 |
whitelist ${DOWNLOADS} |
| 52 |
# when storing mail outside the default ${HOME}/Mail path, 'whitelist' the custom path in your email-common.local |
| 53 |
whitelist ${HOME}/Mail |
| 54 |
whitelist ${RUNUSER}/gnupg |
| 55 |
whitelist /usr/share/bogofilter |
| 56 |
whitelist /usr/share/gnupg |
| 57 |
whitelist /usr/share/gnupg2 |
| 58 |
whitelist /var/lib/clamav |
| 59 |
whitelist /var/mail |
| 60 |
whitelist /var/spool/mail |
| 61 |
include whitelist-common.inc |
| 62 |
include whitelist-runuser-common.inc |
| 63 |
include whitelist-usr-share-common.inc |
| 64 |
include whitelist-var-common.inc |
| 65 |
|
| 66 |
# encrypting and signing email |
| 67 |
writable-run-user |
| 68 |
writable-var |
| 69 |
|
| 70 |
apparmor |
| 71 |
caps.drop all |
| 72 |
machine-id |
| 73 |
netfilter |
| 74 |
no3d |
| 75 |
nodvd |
| 76 |
nogroups |
| 77 |
noinput |
| 78 |
nonewprivs |
| 79 |
noroot |
| 80 |
nosound |
| 81 |
notv |
| 82 |
nou2f |
| 83 |
novideo |
| 84 |
protocol unix,inet,inet6 |
| 85 |
seccomp |
| 86 |
seccomp.block-secondary |
| 87 |
tracelog |
| 88 |
|
| 89 |
#disable-mnt |
| 90 |
private-cache |
| 91 |
private-dev |
| 92 |
private-etc @tls-ca,@x11,bogofilter,bogofilter.cf,clamav,gnupg,host.conf,mailname,timezone |
| 93 |
private-tmp |
| 94 |
|
| 95 |
dbus-user filter |
| 96 |
dbus-user.talk ca.desrt.dconf |
| 97 |
dbus-user.talk org.freedesktop.Notifications |
| 98 |
dbus-user.talk org.freedesktop.secrets |
| 99 |
dbus-user.talk org.gnome.keyring.* |
| 100 |
dbus-user.talk org.gnome.seahorse.* |
| 101 |
# Allow D-Bus communication with Firefox for opening links |
| 102 |
dbus-user.talk org.mozilla.* |
| 103 |
dbus-system none |
| 104 |
|
| 105 |
read-only ${HOME}/.signature |
| 106 |
restrict-namespaces |