]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
apparmor: Adjust path to domain monitor socket
authorGuido Günther <agx@sigxcpu.org>
Sat, 29 Aug 2015 16:05:50 +0000 (18:05 +0200)
committerGuido Günther <agx@sigxcpu.org>
Sat, 29 Aug 2015 16:15:49 +0000 (18:15 +0200)
f1f68ca33 moved the monitor socket to a per domain directory. Adjust the
path accordingly.

src/security/virt-aa-helper.c

index b4a8f27feb52e3b8602607a90a2ba8858262797d..5de56e582aca4c9b8202f3a734977b0926fdbd33 100644 (file)
@@ -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);