mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 06:05:27 +00:00
apparmor: Allow version-specific bits in abstractions too
Compared to profiles, we only need a single preprocessing step here, as there is no variable substitution happening. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Jim Fehlig <jfehlig@suse.com>
This commit is contained in:
parent
19eb8abc9a
commit
63a312fa2d
@ -5,6 +5,11 @@ apparmor_gen_profiles = [
|
|||||||
'usr.sbin.virtxend',
|
'usr.sbin.virtxend',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
apparmor_gen_abstractions = [
|
||||||
|
'libvirt-qemu',
|
||||||
|
'libvirt-lxc',
|
||||||
|
]
|
||||||
|
|
||||||
apparmor_gen_profiles_conf = configuration_data({
|
apparmor_gen_profiles_conf = configuration_data({
|
||||||
'sysconfdir': sysconfdir,
|
'sysconfdir': sysconfdir,
|
||||||
'sbindir': sbindir,
|
'sbindir': sbindir,
|
||||||
@ -56,10 +61,16 @@ foreach name : apparmor_gen_profiles
|
|||||||
)
|
)
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
install_data(
|
foreach name : apparmor_gen_abstractions
|
||||||
[ 'libvirt-qemu', 'libvirt-lxc' ],
|
configure_file(
|
||||||
|
input: '@0@.in'.format(name),
|
||||||
|
output: name,
|
||||||
|
command: apparmor_gen_cmd,
|
||||||
|
capture: true,
|
||||||
|
install: true,
|
||||||
install_dir: apparmor_dir / 'abstractions',
|
install_dir: apparmor_dir / 'abstractions',
|
||||||
)
|
)
|
||||||
|
endforeach
|
||||||
|
|
||||||
install_data(
|
install_data(
|
||||||
[ 'TEMPLATE.qemu', 'TEMPLATE.lxc' ],
|
[ 'TEMPLATE.qemu', 'TEMPLATE.lxc' ],
|
||||||
|
Loading…
Reference in New Issue
Block a user