mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
meson: Detect AppArmor 3.x
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@redhat.com> Reviewed-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
b7ca6f93f1
commit
4a779f21bd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user