mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 03:12:22 +00:00
meson: Set WITH_APPARMOR_PROFILES
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>
This commit is contained in:
parent
821d7d1866
commit
6724c09cb3
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user