This fixes Akonadi with PostgreSQL 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`, - add `bash` (it is a common default shell),needed for console output.
PostgreSql specific:
- add `abstractions/consoles`, needed- Add bash (it is a common default shell).
- Support `/usr/bin/*` paths for console output,PostgreSQL binaries.
- s- Support `/usr/bin/*` paths for PostgreSQL binaries,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`. - allow writing and lockWhen using `/run/user/${uid}/akonadi`MySQL, the PostgreSQL socket is stored there,both `akonadiserver` and `mysqld` will try to read `/etc/ssl/openssl.cnf`.
- Add `/etc/my.cnf` and `/etc/my.cnf.d/`, - akonadiserver requires `file_mmap` on `/tmp/#[0-9]*`, but `abstracon Arch Linux the `my.cnf` configurations/user-tmp` does not provide it. is stored there.