diff options
Diffstat (limited to 'etc/kmail.profile')
-rw-r--r-- | etc/kmail.profile | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/etc/kmail.profile b/etc/kmail.profile index ca774f4ec..3ee8370cb 100644 --- a/etc/kmail.profile +++ b/etc/kmail.profile | |||
@@ -5,6 +5,18 @@ include /etc/firejail/kmail.local | |||
5 | # Persistent global definitions | 5 | # Persistent global definitions |
6 | include /etc/firejail/globals.local | 6 | include /etc/firejail/globals.local |
7 | 7 | ||
8 | # if akonadi has a mysql backend, starting it inside this sandbox will fail | ||
9 | # one solution is to have akonadi already running when kmail is launched | ||
10 | |||
11 | noblacklist ${HOME}/.cache/akonadi* | ||
12 | noblacklist ${HOME}/.config/akonadi* | ||
13 | noblacklist ${HOME}/.config/baloorc | ||
14 | noblacklist ${HOME}/.config/emailidentities | ||
15 | noblacklist ${HOME}/.config/kmail2rc | ||
16 | noblacklist ${HOME}/.local/share/akonadi/* | ||
17 | noblacklist ${HOME}/.local/share/contacts | ||
18 | noblacklist ${HOME}/.local/share/kmail2 | ||
19 | noblacklist ${HOME}/.local/share/local-mail | ||
8 | noblacklist ${HOME}/.gnupg | 20 | noblacklist ${HOME}/.gnupg |
9 | 21 | ||
10 | include /etc/firejail/disable-common.inc | 22 | include /etc/firejail/disable-common.inc |
@@ -12,6 +24,7 @@ include /etc/firejail/disable-devel.inc | |||
12 | include /etc/firejail/disable-passwdmgr.inc | 24 | include /etc/firejail/disable-passwdmgr.inc |
13 | include /etc/firejail/disable-programs.inc | 25 | include /etc/firejail/disable-programs.inc |
14 | 26 | ||
27 | # apparmor | ||
15 | caps.drop all | 28 | caps.drop all |
16 | netfilter | 29 | netfilter |
17 | nodvd | 30 | nodvd |
@@ -22,11 +35,14 @@ nosound | |||
22 | notv | 35 | notv |
23 | novideo | 36 | novideo |
24 | protocol unix,inet,inet6,netlink | 37 | protocol unix,inet,inet6,netlink |
25 | # blacklisting of chroot system calls breaks kmail | 38 | # we need to allow chroot and ioprio_set system calls |
26 | seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioprio_set,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmsplice | 39 | seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmsplice |
27 | # tracelog | 40 | # tracelog |
28 | # writable-run-user is needed for signing and encrypting emails | 41 | # writable-run-user is needed for signing and encrypting emails |
29 | writable-run-user | 42 | writable-run-user |
30 | 43 | ||
31 | private-dev | 44 | private-dev |
32 | # private-tmp - breaks akonadi and opening of email attachments | 45 | # private-tmp - interrupts connection to akonadi, breaks opening of email attachments |
46 | |||
47 | noexec ${HOME} | ||
48 | noexec /tmp | ||