This fixes Akonadi on Arch Linux (and possibly others).
Changes to the AppArmor profiles:
- Allow writing and locking /run/user/${uid}/akonadi, the database engine socket is stored there.
- Add abstractions/consoles, needed for console output.
PostgreSql specific:
- Add bash (it is a common default shell).
- Support /usr/bin/* paths for PostgreSQL binaries.
- Support pg_upgrade.
MySQL specific:
- Add bash (it is a common default shell).
- Add /usr/bin/mysqld as a path for the MySQL daemon binary.
- Add abstractions/openssl. When using MySQL, both akonadiserver and mysqld will try to read /etc/ssl/openssl.cnf.
- Add /etc/my.cnf and /etc/my.cnf.d/, on Arch Linux the my.cnf configuration is stored there.