[libvirt PATCH 1/8] meson: Detect AppArmor 3.x
Andrea Bolognani
abologna at redhat.com
Thu Jun 29 13:14:50 UTC 2023
We will soon need to base some decisions on whether AppArmor 3.x
or 2.x is present on the system.
Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
meson.build | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meson.build b/meson.build
index aa391e7178..060eafc344 100644
--- a/meson.build
+++ b/meson.build
@@ -879,6 +879,9 @@ endif
apparmor_dep = dependency('libapparmor', required: get_option('apparmor'))
if apparmor_dep.found()
conf.set('WITH_APPARMOR', 1)
+ if apparmor_dep.version().version_compare('>=3.0.0')
+ conf.set('WITH_APPARMOR_3', 1)
+ endif
conf.set_quoted('APPARMOR_DIR', sysconfdir / 'apparmor.d')
conf.set_quoted('APPARMOR_PROFILES_PATH', '/sys/kernel/security/apparmor/profiles')
endif
--
2.41.0
More information about the libvir-list
mailing list