From: Cédric Bosdonnat Date: Mon, 24 Mar 2014 17:20:20 +0000 (+0100) Subject: Fixed regression in apparmor profiles for qemu brought by 43c030f X-Git-Tag: v1.2.3-rc2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0500fbd4b66870a28896306960fbae5586710752;p=thirdparty%2Flibvirt.git Fixed regression in apparmor profiles for qemu brought by 43c030f --- diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index ed8b4f27bb..506707f02a 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -1281,7 +1281,9 @@ main(int argc, char **argv) if (vah_add_file(&buf, ctl->newfile, "rw") != 0) goto cleanup; } else { - if (ctl->def->virtType == VIR_DOMAIN_VIRT_QEMU) { + if (ctl->def->virtType == VIR_DOMAIN_VIRT_QEMU || + ctl->def->virtType == VIR_DOMAIN_VIRT_KQEMU || + ctl->def->virtType == VIR_DOMAIN_VIRT_KVM) { virBufferAsprintf(&buf, " \"%s/log/libvirt/**/%s.log\" w,\n", LOCALSTATEDIR, ctl->def->name); virBufferAsprintf(&buf, " \"%s/lib/libvirt/**/%s.monitor\" rw,\n",