diff options
Diffstat (limited to 'etc/kmail.profile')
-rw-r--r-- | etc/kmail.profile | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/etc/kmail.profile b/etc/kmail.profile index ca774f4ec..952af55c8 100644 --- a/etc/kmail.profile +++ b/etc/kmail.profile | |||
@@ -5,6 +5,19 @@ 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/emailidentities | ||
19 | noblacklist ${HOME}/.local/share/kmail2 | ||
20 | noblacklist ${HOME}/.local/share/local-mail | ||
8 | noblacklist ${HOME}/.gnupg | 21 | noblacklist ${HOME}/.gnupg |
9 | 22 | ||
10 | include /etc/firejail/disable-common.inc | 23 | include /etc/firejail/disable-common.inc |
@@ -12,6 +25,7 @@ include /etc/firejail/disable-devel.inc | |||
12 | include /etc/firejail/disable-passwdmgr.inc | 25 | include /etc/firejail/disable-passwdmgr.inc |
13 | include /etc/firejail/disable-programs.inc | 26 | include /etc/firejail/disable-programs.inc |
14 | 27 | ||
28 | # apparmor | ||
15 | caps.drop all | 29 | caps.drop all |
16 | netfilter | 30 | netfilter |
17 | nodvd | 31 | nodvd |
@@ -22,11 +36,14 @@ nosound | |||
22 | notv | 36 | notv |
23 | novideo | 37 | novideo |
24 | protocol unix,inet,inet6,netlink | 38 | protocol unix,inet,inet6,netlink |
25 | # blacklisting of chroot system calls breaks kmail | 39 | # 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 | 40 | 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 | 41 | # tracelog |
28 | # writable-run-user is needed for signing and encrypting emails | 42 | # writable-run-user is needed for signing and encrypting emails |
29 | writable-run-user | 43 | writable-run-user |
30 | 44 | ||
31 | private-dev | 45 | private-dev |
32 | # private-tmp - breaks akonadi and opening of email attachments | 46 | # private-tmp - interrupts connection to akonadi, breaks opening of email attachments |
47 | |||
48 | noexec ${HOME} | ||
49 | noexec /tmp | ||