Fixed regression in apparmor profiles for qemu brought by 43c030f

This commit is contained in:
Cédric Bosdonnat 2014-03-24 18:20:20 +01:00 committed by Eric Blake
parent faad5582e4
commit 0500fbd4b6
1 changed files with 3 additions and 1 deletions

View File

@ -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",