1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

meson: Don't hardcode /etc in APPARMOR_DIR

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>
This commit is contained in:
Andrea Bolognani 2020-08-19 01:39:19 +02:00
parent 6724c09cb3
commit 308904472b

View 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