Skip to content
Commit 9c33b1b4 authored by nl6720   's avatar nl6720    Committed by Sandro Knauß
Browse files

Support more distributions in the AppArmor profiles

Summary:
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.

Test Plan: `akonadictl start` on a system with active AppArmor and loaded profiles.

Reviewers: #kde_pim, knauss

Reviewed By: #kde_pim, knauss

Subscribers: arojas, dvratil, knauss, jriddell, kde-pim, #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D25964
parent 57d597d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment