diff options
Diffstat (limited to 'etc/kmail.profile')
-rw-r--r-- | etc/kmail.profile | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/etc/kmail.profile b/etc/kmail.profile index ca774f4ec..3e425b62e 100644 --- a/etc/kmail.profile +++ b/etc/kmail.profile | |||
@@ -5,13 +5,32 @@ 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 | # kmail has problems launching akonadi in debian and ubuntu. | ||
9 | # one solution is to have akonadi already running when kmail is started | ||
10 | |||
11 | noblacklist ${HOME}/.cache/akonadi* | ||
12 | noblacklist ${HOME}/.cache/kmail2 | ||
13 | noblacklist ${HOME}/.config/akonadi* | ||
14 | noblacklist ${HOME}/.config/baloorc | ||
15 | noblacklist ${HOME}/.config/emailidentities | ||
16 | noblacklist ${HOME}/.config/kmail2rc | ||
8 | noblacklist ${HOME}/.gnupg | 17 | noblacklist ${HOME}/.gnupg |
18 | noblacklist ${HOME}/.local/share/akonadi* | ||
19 | noblacklist ${HOME}/.local/share/contacts | ||
20 | noblacklist ${HOME}/.local/share/emailidentities | ||
21 | noblacklist ${HOME}/.local/share/kmail2 | ||
22 | noblacklist ${HOME}/.local/share/local-mail | ||
23 | noblacklist ${HOME}/.local/share/notes | ||
24 | noblacklist /tmp/akonadi-* | ||
9 | 25 | ||
10 | include /etc/firejail/disable-common.inc | 26 | include /etc/firejail/disable-common.inc |
11 | include /etc/firejail/disable-devel.inc | 27 | include /etc/firejail/disable-devel.inc |
12 | include /etc/firejail/disable-passwdmgr.inc | 28 | include /etc/firejail/disable-passwdmgr.inc |
13 | include /etc/firejail/disable-programs.inc | 29 | include /etc/firejail/disable-programs.inc |
14 | 30 | ||
31 | include /etc/firejail/whitelist-var-common.inc | ||
32 | |||
33 | # apparmor | ||
15 | caps.drop all | 34 | caps.drop all |
16 | netfilter | 35 | netfilter |
17 | nodvd | 36 | nodvd |
@@ -22,11 +41,14 @@ nosound | |||
22 | notv | 41 | notv |
23 | novideo | 42 | novideo |
24 | protocol unix,inet,inet6,netlink | 43 | protocol unix,inet,inet6,netlink |
25 | # blacklisting of chroot system calls breaks kmail | 44 | # we need to allow chroot, io_getevents, ioprio_set, io_setup, io_submit 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 | 45 | seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,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 | 46 | # tracelog |
28 | # writable-run-user is needed for signing and encrypting emails | 47 | # writable-run-user is needed for signing and encrypting emails |
29 | writable-run-user | 48 | writable-run-user |
30 | 49 | ||
31 | private-dev | 50 | private-dev |
32 | # private-tmp - breaks akonadi and opening of email attachments | 51 | # private-tmp - interrupts connection to akonadi, breaks opening of email attachments |
52 | |||
53 | noexec ${HOME} | ||
54 | noexec /tmp | ||