From: Guido Günther Date: Sat, 29 Aug 2015 16:05:50 +0000 (+0200) Subject: apparmor: Adjust path to domain monitor socket X-Git-Tag: v1.2.19-rc2^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee7d5c312b4d9a756f321d25a2b8485e63501072;p=thirdparty%2Flibvirt.git apparmor: Adjust path to domain monitor socket f1f68ca33 moved the monitor socket to a per domain directory. Adjust the path accordingly. --- diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index b4a8f27feb..5de56e582a 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -1361,7 +1361,7 @@ main(int argc, char **argv) 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", + virBufferAsprintf(&buf, " \"%s/lib/libvirt/qemu/domain-%s/monitor.sock\" rw,\n", LOCALSTATEDIR, ctl->def->name); virBufferAsprintf(&buf, " \"%s/run/libvirt/**/%s.pid\" rwk,\n", LOCALSTATEDIR, ctl->def->name);