libvirt/src/security/apparmor/meson.build
Pavel Hrdina de389dddad meson: src/security: install apparmor profile files
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Neal Gompa <ngompa13@gmail.com>
2020-08-03 09:27:05 +02:00

39 lines
963 B
Meson

apparmor_gen_profiles = [
'usr.lib.libvirt.virt-aa-helper',
'usr.sbin.libvirtd',
]
apparmor_gen_profiles_conf = configuration_data()
apparmor_gen_profiles_conf.set('sysconfdir', sysconfdir)
apparmor_gen_profiles_conf.set('sbindir', sbindir)
apparmor_gen_profiles_conf.set('runstatedir', runstatedir)
apparmor_gen_profiles_conf.set('libexecdir', libexecdir)
apparmor_dir = sysconfdir / 'apparmor.d'
foreach name : apparmor_gen_profiles
configure_file(
input: '@0@.in'.format(name),
output: name,
configuration: apparmor_gen_profiles_conf,
install: true,
install_dir: apparmor_dir,
)
endforeach
install_data(
[ 'libvirt-qemu', 'libvirt-lxc' ],
install_dir: apparmor_dir / 'abstractions',
)
install_data(
[ 'TEMPLATE.qemu', 'TEMPLATE.lxc' ],
install_dir: apparmor_dir / 'libvirt',
)
install_data(
'usr.lib.libvirt.virt-aa-helper.local',
install_dir: apparmor_dir / 'local',
rename: 'usr.lib.libvirt.virt-aa-helper',
)