aboutsummaryrefslogtreecommitdiffstats
path: root/etc/akonadi_control.profile
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2018-03-26 18:59:29 +0200
committerLibravatar smitsohu <smitsohu@gmail.com>2018-03-26 18:59:29 +0200
commit1bc84f3e53f66abf4ee246e89f20f72626a199de (patch)
treea805f3b7068bbddddaa4efc8dfab3c1d03f0421e /etc/akonadi_control.profile
parentdbus.c (diff)
downloadfirejail-1bc84f3e53f66abf4ee246e89f20f72626a199de.tar.gz
firejail-1bc84f3e53f66abf4ee246e89f20f72626a199de.tar.zst
firejail-1bc84f3e53f66abf4ee246e89f20f72626a199de.zip
rework akonadi integration
the usr.sbin.mysqld-akonadi apparmor profile, enforced by default in ubuntu and debian testing (and probably opensuse), doesn't play well with a number of firejail options. the reason for this is that once the no_new_privs bit is set, apparmor profile transitions are forbidden. enforcing our own apparmor policy instead is also no solution, because these programs don't even start without d-bus. relaxing the kmail profile was necessary so that kmail can fire up akonadi itself, just in case akonadi has not been started earlier already by another program. this is always an issue when kmail is the only installed akonadi client, but there may be more circumstances. for reasons outlined above this doesn't help debian and ubuntu (opensuse?) users though :-/ a brief summary of the seccomp exceptions: chroot is needed for qt webengine, io_prioset for the akonadi indexing agent, io_getevents, io_submit, io_setup are needed for mysqld. when akonadi has an sqlite3 backend, less exceptions to the seccomp filter are necessary, but mysqld is the default. in the future all kontact suite profiles (itm only kmail, knotes) should probably be redirections to akonadi_control, but the issues with apparmor make this somewhat impractical for now (options like 'protocol' couldn't go to akonadi_control.local any more, if current kmail redirected to there).
Diffstat (limited to 'etc/akonadi_control.profile')
-rw-r--r--etc/akonadi_control.profile12
1 files changed, 8 insertions, 4 deletions
diff --git a/etc/akonadi_control.profile b/etc/akonadi_control.profile
index 0443774dd..296b25b83 100644
--- a/etc/akonadi_control.profile
+++ b/etc/akonadi_control.profile
@@ -7,9 +7,13 @@ include /etc/firejail/globals.local
7noblacklist ${HOME}/.cache/akonadi* 7noblacklist ${HOME}/.cache/akonadi*
8noblacklist ${HOME}/.config/akonadi* 8noblacklist ${HOME}/.config/akonadi*
9noblacklist ${HOME}/.config/baloorc 9noblacklist ${HOME}/.config/baloorc
10noblacklist ${HOME}/.local/share/akonadi/* 10noblacklist ${HOME}/.config/emailidentities
11noblacklist ${HOME}/.config/kmail2rc
12noblacklist ${HOME}/.local/share/akonadi*
11noblacklist ${HOME}/.local/share/contacts 13noblacklist ${HOME}/.local/share/contacts
12noblacklist ${HOME}/.local/share/local-mail 14noblacklist ${HOME}/.local/share/local-mail
15noblacklist ${HOME}/.local/share/notes
16noblacklist /tmp/akonadi-*
13noblacklist /usr/sbin 17noblacklist /usr/sbin
14 18
15include /etc/firejail/disable-common.inc 19include /etc/firejail/disable-common.inc
@@ -19,8 +23,8 @@ include /etc/firejail/disable-programs.inc
19 23
20include /etc/firejail/whitelist-var-common.inc 24include /etc/firejail/whitelist-var-common.inc
21 25
22# depending on your setup it might be possible to 26# the default mysqld-akonadi apparmor profile in debian and ubuntu
23# enable some of the commented options below 27# is not compatible with the commented options below
24 28
25# apparmor 29# apparmor
26caps.drop all 30caps.drop all
@@ -30,7 +34,7 @@ netfilter
30nodvd 34nodvd
31nogroups 35nogroups
32# nonewprivs 36# nonewprivs
33# noroot 37noroot
34nosound 38nosound
35notv 39notv
36novideo 40novideo