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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
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

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?

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.