AppArmor configuration for Akonadi's mysql is broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
akonadi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
In akonadi-
mysqld: [ERROR] Failed to open required defaults file: /home/karry/
in kernel log (dmesg) is apparmor message:
[16787.303724] audit: type=1400 audit(158698498
Profile "/usr/sbin/mysqld" is placed in file "/etc/apparmor.
It seems to me that akonadi profile should contains real path to mysqld executable (/usr/sbin/
After simple patch, Akonadi works fine:
sudo sed 's|mysqld_
sudo systemctl reload apparmor
akonadictl start
Interesting, when I build and install akonadi from upstream, it brings /etc/apparmor. d/usr.bin. akonadiserver profile that contais this line:
/usr/{,s}bin/mysqld PUx -> mysqld_akonadi,
and then mysqld seems to be running with mysqld_akonadi profile.