]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
apparmor: Allow /usr/libexec for private xen-tools binaries
authorOlaf Hering <olaf@aepfle.de>
Tue, 13 Jul 2021 13:43:58 +0000 (15:43 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 14 Jul 2021 15:07:22 +0000 (17:07 +0200)
This is a followup for commit e906c4d02bdcddf141b4d124afd68c8ee10134fe
("apparmor: Allow /usr/libexec for libxl-save-helper and pygrub"):

In recent rpm versions --libexecdir changed from /usr/lib64 to
/usr/libexec. A plain rpmbuild %configure in xen.git will install all
files, including the private copies of qemu, into /usr/libexec/xen/bin.
Expand the existing pattern to cover also this libexecdir variant.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/security/apparmor/usr.sbin.libvirtd.in

index 928782b7097f304173cdb532d1a525ccb154b3a4..f2ab6ff2aad9f41490d813acda646a49d7d4a5b9 100644 (file)
@@ -88,7 +88,7 @@ profile libvirtd @sbindir@/libvirtd flags=(attach_disconnected) {
   @sbindir@/* PUx,
   /{usr/,}lib/udev/scsi_id PUx,
   /usr/{lib,lib64}/xen-common/bin/xen-toolstack PUx,
-  /usr/{lib,lib64}/xen/bin/* Ux,
+  /usr/{lib,lib64,libexec}/xen/bin/* Ux,
   /usr/{lib,libexec}/xen-*/bin/libxl-save-helper PUx,
   /usr/{lib,libexec}/xen-*/bin/pygrub PUx,
   /usr/{lib,lib64,lib/qemu,libexec}/vhost-user-gpu PUx,