]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Apparmor: Allow reading /etc/ssl/openssl.cnf
authorJim Fehlig <jfehlig@suse.com>
Wed, 16 Jun 2021 21:25:33 +0000 (15:25 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 24 Jun 2021 19:54:47 +0000 (13:54 -0600)
I noticed the following denial when running confined VMs with the QEMU
driver

type=AVC msg=audit(1623865089.263:865): apparmor="DENIED" operation="open" \
profile="virt-aa-helper" name="/etc/ssl/openssl.cnf" pid=12503 \
comm="virt-aa-helper" requested_mask="r" denied_mask="r" fsuid=0 ouid=0

Allow reading the file by including the openssl abstraction in the
virt-aa-helper profile.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
src/security/apparmor/usr.lib.libvirt.virt-aa-helper.in

index 8ebb47596a1a0b329c3dec86890b1fe251b27524..ff1d46bebed6fa50f0123c038be620ae29a2ec4b 100644 (file)
@@ -2,6 +2,7 @@
 
 profile virt-aa-helper @libexecdir@/virt-aa-helper {
   #include <abstractions/base>
+  #include <abstractions/openssl>
 
   # needed for searching directories
   capability dac_override,