]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
meson: Set WITH_APPARMOR_PROFILES
authorAndrea Bolognani <abologna@redhat.com>
Tue, 18 Aug 2020 23:39:18 +0000 (01:39 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Sat, 22 Aug 2020 18:05:59 +0000 (20:05 +0200)
This variable is used in src/security/meson.build to decide
whether to install the AppArmor profiles, and at the moment
even when the user specifies -Dapparmor_profiles=true they
don't get installed.

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

index a72d0c0e85bc0238951df392c8efb23f5ec794e8..c10b63ba695708d2ab624d86e874496deeb10e80 100644 (file)
@@ -966,6 +966,9 @@ endif
 
 apparmor_dep = dependency('libapparmor', required: get_option('apparmor'))
 if apparmor_dep.found()
+  if get_option('apparmor_profiles')
+    conf.set('WITH_APPARMOR_PROFILES', 1)
+  endif
   conf.set('WITH_APPARMOR', 1)
   conf.set_quoted('APPARMOR_DIR', '/etc/apparmor.d')
   conf.set_quoted('APPARMOR_PROFILES_PATH', '/sys/kernel/security/apparmor/profiles')