From 3a9b0fd74a1f4c8bd0c8e40cde42d3a92d754e4a Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Sat, 16 Jun 2018 23:14:19 +0200 Subject: [PATCH] Adjust cache paths in apparmor.service The initial apparmor.service assumed the profile cache is in /var/lib/apparmor/ which was an openSUSE-specific path that was chosen for historical reasons, but was far from perfect. In the meantime, the profile cache moved to /var/cache/apparmor/ and the read-only/packaged version was added in /usr/share/apparmor/cache/ This commit adjusts apparmor.service to use these paths. --- parser/apparmor.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/apparmor.service b/parser/apparmor.service index f84eac952..15b9f74e6 100644 --- a/parser/apparmor.service +++ b/parser/apparmor.service @@ -3,8 +3,8 @@ Description=Load AppArmor profiles DefaultDependencies=no Before=sysinit.target After=systemd-journald-audit.socket -# profile cache -After=var.mount var-lib.mount +# profile cache: /var/cache/apparmor/ and /usr/share/apparmor/cache/ +After=var.mount var-cache.mount usr.mount usr-share.mount ConditionSecurity=apparmor [Service]