]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Don't hardcode /etc in APPARMOR_DIR
authorAndrea Bolognani <abologna@redhat.com>
Tue, 18 Aug 2020 23:39:19 +0000 (01:39 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Sat, 22 Aug 2020 18:05:59 +0000 (20:05 +0200)
src/security/apparmor/meson.build builds this path dynamically
based on the value of sysconfdir, so we should do the same here
or the code and the filesystem might end up disagreeing.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
meson.build

index c10b63ba695708d2ab624d86e874496deeb10e80..2846c9b9f297dc22077e1af6151d517c32e9b56a 100644 (file)
@@ -970,7 +970,7 @@ if apparmor_dep.found()
     conf.set('WITH_APPARMOR_PROFILES', 1)
   endif
   conf.set('WITH_APPARMOR', 1)
-  conf.set_quoted('APPARMOR_DIR', '/etc/apparmor.d')
+  conf.set_quoted('APPARMOR_DIR', sysconfdir / 'apparmor.d')
   conf.set_quoted('APPARMOR_PROFILES_PATH', '/sys/kernel/security/apparmor/profiles')
 endif