mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
Revert "apparmor: Add support for local profile customizations"
As it turns out, apparmor 2.x and 3.x behave differently or have differing
levels of support for local customizations of profiles and profile
abstractions. Additionally the apparmor 2.x tools do not cope well with
'include if exists'. Revert this commit until a more complete solution is
developed that works with old and new apparmor.
Reverts: 9b743ee190
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
This commit is contained in:
parent
d725932a28
commit
d7fb8deb6a
@ -34,10 +34,8 @@ install_data(
|
|||||||
install_dir: apparmor_dir / 'libvirt',
|
install_dir: apparmor_dir / 'libvirt',
|
||||||
)
|
)
|
||||||
|
|
||||||
foreach name : apparmor_gen_profiles
|
install_data(
|
||||||
install_data(
|
'usr.lib.libvirt.virt-aa-helper.local',
|
||||||
'@0@.local'.format(name),
|
install_dir: apparmor_dir / 'local',
|
||||||
install_dir: apparmor_dir / 'local',
|
rename: 'usr.lib.libvirt.virt-aa-helper',
|
||||||
rename: name,
|
)
|
||||||
)
|
|
||||||
endforeach
|
|
||||||
|
@ -139,7 +139,4 @@ profile libvirtd @sbindir@/libvirtd flags=(attach_disconnected) {
|
|||||||
|
|
||||||
/usr/{lib,lib64,lib/qemu,libexec}/qemu-bridge-helper rmix,
|
/usr/{lib,lib64,lib/qemu,libexec}/qemu-bridge-helper rmix,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Site-specific additions and overrides. See local/README for details.
|
|
||||||
include if exists <local/usr.sbin.libvirtd>
|
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
# Site-specific additions and overrides for 'usr.sbin.libvirtd'
|
|
@ -132,7 +132,4 @@ profile virtqemud @sbindir@/virtqemud flags=(attach_disconnected) {
|
|||||||
|
|
||||||
/usr/{lib,lib64,lib/qemu,libexec}/qemu-bridge-helper rmix,
|
/usr/{lib,lib64,lib/qemu,libexec}/qemu-bridge-helper rmix,
|
||||||
}
|
}
|
||||||
|
|
||||||
# Site-specific additions and overrides. See local/README for details.
|
|
||||||
include if exists <local/usr.sbin.virtqemud>
|
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
# Site-specific additions and overrides for 'usr.sbin.virtqemud'
|
|
@ -52,7 +52,4 @@ profile virtxend @sbindir@/virtxend flags=(attach_disconnected) {
|
|||||||
@libexecdir@/libvirt_iohelper ix,
|
@libexecdir@/libvirt_iohelper ix,
|
||||||
/etc/libvirt/hooks/** rmix,
|
/etc/libvirt/hooks/** rmix,
|
||||||
/etc/xen/scripts/** rmix,
|
/etc/xen/scripts/** rmix,
|
||||||
|
|
||||||
# Site-specific additions and overrides. See local/README for details.
|
|
||||||
include if exists <local/usr.sbin.virtxend>
|
|
||||||
}
|
}
|
||||||
|
@ -1 +0,0 @@
|
|||||||
# Site-specific additions and overrides for 'usr.sbin.virtxend'
|
|
Loading…
Reference in New Issue
Block a user