| 1 |
# Firejail profile for kmail |
| 2 |
# Description: Full featured graphical email client |
| 3 |
# This file is overwritten after every install/update |
| 4 |
# Persistent local customizations |
| 5 |
include kmail.local |
| 6 |
# Persistent global definitions |
| 7 |
include globals.local |
| 8 |
|
| 9 |
# kmail has problems launching akonadi in debian and ubuntu. |
| 10 |
# one solution is to have akonadi already running when kmail is started |
| 11 |
|
| 12 |
noblacklist ${HOME}/.cache/akonadi* |
| 13 |
noblacklist ${HOME}/.cache/kmail2 |
| 14 |
noblacklist ${HOME}/.config/akonadi* |
| 15 |
noblacklist ${HOME}/.config/baloorc |
| 16 |
noblacklist ${HOME}/.config/emaildefaults |
| 17 |
noblacklist ${HOME}/.config/emailidentities |
| 18 |
noblacklist ${HOME}/.config/kmail2rc |
| 19 |
noblacklist ${HOME}/.config/kmailsearchindexingrc |
| 20 |
noblacklist ${HOME}/.config/mailtransports |
| 21 |
noblacklist ${HOME}/.config/specialmailcollectionsrc |
| 22 |
noblacklist ${HOME}/.gnupg |
| 23 |
noblacklist ${HOME}/.local/share/akonadi* |
| 24 |
noblacklist ${HOME}/.local/share/apps/korganizer |
| 25 |
noblacklist ${HOME}/.local/share/contacts |
| 26 |
noblacklist ${HOME}/.local/share/emailidentities |
| 27 |
noblacklist ${HOME}/.local/share/kmail2 |
| 28 |
noblacklist ${HOME}/.local/share/kxmlgui5/kmail |
| 29 |
noblacklist ${HOME}/.local/share/kxmlgui5/kmail2 |
| 30 |
noblacklist ${HOME}/.local/share/local-mail |
| 31 |
noblacklist ${HOME}/.local/share/notes |
| 32 |
noblacklist ${RUNUSER}/akonadi |
| 33 |
noblacklist /tmp/akonadi-* |
| 34 |
|
| 35 |
include disable-common.inc |
| 36 |
include disable-devel.inc |
| 37 |
include disable-exec.inc |
| 38 |
include disable-interpreters.inc |
| 39 |
include disable-programs.inc |
| 40 |
|
| 41 |
include whitelist-run-common.inc |
| 42 |
include whitelist-var-common.inc |
| 43 |
|
| 44 |
# writable-run-user is needed for signing and encrypting emails |
| 45 |
writable-run-user |
| 46 |
|
| 47 |
#apparmor |
| 48 |
caps.drop all |
| 49 |
netfilter |
| 50 |
nodvd |
| 51 |
nogroups |
| 52 |
noinput |
| 53 |
nonewprivs |
| 54 |
noroot |
| 55 |
notv |
| 56 |
nou2f |
| 57 |
novideo |
| 58 |
protocol unix,inet,inet6,netlink |
| 59 |
# we need to allow chroot, io_getevents, ioprio_set, io_setup, io_submit system calls |
| 60 |
seccomp !chroot,!io_getevents,!io_setup,!io_submit,!ioprio_set |
| 61 |
#tracelog |
| 62 |
|
| 63 |
private-dev |
| 64 |
#private-tmp # interrupts connection to akonadi, breaks opening of email attachments |
| 65 |
|
| 66 |
# To harden kmail.profile, add the following lines to kmail.local: |
| 67 |
#dbus-user filter |
| 68 |
#dbus-user.talk org.freedesktop.Notifications |
| 69 |
|
| 70 |
#restrict-namespaces |