]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Revert "apparmor: Allow version-specific bits in abstractions too"
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 31 Mar 2025 10:53:40 +0000 (11:53 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 1 Apr 2025 11:28:24 +0000 (12:28 +0100)
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.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/security/apparmor/libvirt-lxc [moved from src/security/apparmor/libvirt-lxc.in with 100% similarity]
src/security/apparmor/libvirt-qemu [moved from src/security/apparmor/libvirt-qemu.in with 100% similarity]
src/security/apparmor/meson.build

index b9257c816d1eff33a9d478253cd5848f232e397e..356951c7f1cfcc191aacbaa494139c27af1e42d1 100644 (file)
@@ -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' ],