From: Daniel P. Berrangé <berrange(a)redhat.com>
This reverts commit 63a312fa2d3be0e34a8989deddd39792fc9badf6.
There is no longer any need to dynamically generate version specific
rules. This revert can be reverted, if the need ever arises again
in the future.
Signed-off-by: Daniel P. Berrangé <berrange(a)redhat.com>
---
.../apparmor/{libvirt-lxc.in => libvirt-lxc} | 0
.../{libvirt-qemu.in => libvirt-qemu} | 0
src/security/apparmor/meson.build | 19 ++++---------------
3 files changed, 4 insertions(+), 15 deletions(-)
rename src/security/apparmor/{libvirt-lxc.in => libvirt-lxc} (100%)
rename src/security/apparmor/{libvirt-qemu.in => libvirt-qemu} (100%)
diff --git a/src/security/apparmor/libvirt-lxc.in b/src/security/apparmor/libvirt-lxc
similarity index 100%
rename from src/security/apparmor/libvirt-lxc.in
rename to src/security/apparmor/libvirt-lxc
diff --git a/src/security/apparmor/libvirt-qemu.in b/src/security/apparmor/libvirt-qemu
similarity index 100%
rename from src/security/apparmor/libvirt-qemu.in
rename to src/security/apparmor/libvirt-qemu
diff --git a/src/security/apparmor/meson.build b/src/security/apparmor/meson.build
index b9257c816d..356951c7f1 100644
--- a/src/security/apparmor/meson.build
+++ b/src/security/apparmor/meson.build
@@ -5,11 +5,6 @@ apparmor_gen_profiles = [
'usr.sbin.virtxend',
]
-apparmor_gen_abstractions = [
- 'libvirt-qemu',
- 'libvirt-lxc',
-]
-
apparmor_gen_profiles_conf = configuration_data({
'sysconfdir': sysconfdir,
'sbindir': sbindir,
@@ -61,16 +56,10 @@ foreach name : apparmor_gen_profiles
)
endforeach
-foreach name : apparmor_gen_abstractions
- configure_file(
- input: '@0@.in'.format(name),
- output: name,
- command: apparmor_gen_cmd,
- capture: true,
- install: true,
- install_dir: apparmor_dir / 'abstractions',
- )
-endforeach
+install_data(
+ [ 'libvirt-qemu', 'libvirt-lxc' ],
+ install_dir: apparmor_dir / 'abstractions',
+)
install_data(
[ 'TEMPLATE.qemu', 'TEMPLATE.lxc' ],
--
2.48.1