]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
apparmor: ceph config file names
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 7 Oct 2021 11:27:35 +0000 (13:27 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Mon, 11 Oct 2021 06:01:27 +0000 (08:01 +0200)
If running multiple [1] clusters (uncommon) the ceph config file will be
derived from the cluster name. Therefore the rule to allow to read ceph
config files need to be opened up slightly to allow for that condition.

[1]: https://docs.ceph.com/en/mimic/rados/configuration/common/#running-multiple-clusters

Fixes: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1588576
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/security/apparmor/libvirt-qemu

index 4156428163621bc92dff1cb455336518b637e142..8cd76d48ec6ea6bab74ab987a8799241945faf70 100644 (file)
   /sys/class/ r,
 
   # for rbd
-  /etc/ceph/ceph.conf r,
+  /etc/ceph/*.conf r,
 
   # Various functions will need to enumerate /tmp (e.g. ceph), allow the base
   # dir and a few known functions like samba support.