]> git.ipfire.org Git - thirdparty/libvirt.git/commit
apparmor: allow libvirtd to call pygrub
authorStefan Bader <stefan.bader@canonical.com>
Mon, 3 Aug 2020 10:21:23 +0000 (12:21 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 10 Aug 2020 05:32:06 +0000 (07:32 +0200)
commit8b6ee1afdb664ef5d90e1a92b69fc9f2f9221090
tree7444ee872092f5085e34bc0c12848d8615961327
parent155d4fe3fa8b2115003973f692512a7007ab9264
apparmor: allow libvirtd to call pygrub

When using xen through libxl in Debian/Ubuntu it needs to be able to
call pygrub.

This is placed in a versioned path like /usr/lib/xen-4.11/bin.
In theory the rule could be more strict by rendering the libexec_dir
setting pkg-config can derive from libbxen-dev. But that would make
particular libvirt/xen packages version-depend on each other. It seems
more reasonable to avoid these versioned dependencies and use a wildcard
rule instead as it is already in place for libxl-save-helper.

Note: This change was in Debian [1] and Ubuntu [2] for quite some time
already.

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931768
[2]: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1326003

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Acked-by: Jamie Strandboge <jamie@canonical.com>
src/security/apparmor/usr.sbin.libvirtd.in