fix(akonadiserver): Use xdg_data_home and xdg_config_home as variable.
ClosedPublic

Authored by knauss on Oct 10 2019, 5:53 PM.

Details

Summary

As the source of most of the directories are created from XDG_DATA_HOME
and XDG_CONFIG_HOME we should also reflect this in the AppArmor
profiles with variables.

Test Plan

run Akonadi with AppArmor enabled.

Diff Detail

Repository
R165 Akonadi
Branch
test
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 17525
Build 17543: arc lint + arc unit
knauss created this revision.Oct 10 2019, 5:53 PM
Restricted Application added a project: KDE PIM. · View Herald TranscriptOct 10 2019, 5:53 PM
knauss requested review of this revision.Oct 10 2019, 5:53 PM
krop added a comment.Oct 10 2019, 6:08 PM

I can't test since I don't need these files.

The akonadi tests use different XDG_{CONFIG,DATA}_HOME values, do you see a difference before/after?

In D24541#544879, @cgiboudeaux wrote:

I can't test since I don't need these files.

The akonadi tests use different XDG_{CONFIG,DATA}_HOME values, do you see a difference before/after?

Well AppArmor does not rely on environment variables, this whole patches just makes it simpler personalize the AppAromir profile for users, that don't use the default locations.

The tests don't use the installed akonadiserver, so the AppArmor profile don't get called.

dvratil accepted this revision.Oct 19 2019, 10:47 AM
This revision is now accepted and ready to land.Oct 19 2019, 10:47 AM
This revision was automatically updated to reflect the committed changes.