Comment 7 for bug 460271

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This is fixed in 0.7.0-1ubuntu13.1.

$ sudo rm -f /etc/apparmor.d/libvirt/libvirt-a22e3930-d87a-584e-22b2-1d8950212ba*
$ cat /tmp/460271.xml | sudo virt-aa-helper -u libvirt-a22e3930-d87a-584e-22b2-1d8950212bac -c --dryrun
virt-aa-helper: warning: 127.0.0.1
virt-aa-helper: warning: skipped non-absolute path
virt-aa-helper:
/etc/apparmor.d/libvirt/libvirt-a22e3930-d87a-584e-22b2-1d8950212bac.files
virt-aa-helper:
  "/var/log/libvirt/**/testqemu.log" w,
  "/var/run/libvirt/**/testqemu.monitor" rw,
  "/var/run/libvirt/**/testqemu.pid" rwk,
  "/home/jamie/tmp/test.img" rw,

virt-aa-helper:
/etc/apparmor.d/libvirt/libvirt-a22e3930-d87a-584e-22b2-1d8950212bac
virt-aa-helper:
libvirt-a22e3930-d87a-584e-22b2-1d8950212bac
virt-aa-helper:
  #include <libvirt/libvirt-a22e3930-d87a-584e-22b2-1d8950212bac.files>

$ cat /tmp/460271.xml | sudo virt-aa-helper -u libvirt-a22e3930-d87a-584e-22b2-1d8950212bac -r --dryrun
virt-aa-helper: warning: 127.0.0.1
virt-aa-helper: warning: skipped non-absolute path
virt-aa-helper:
/etc/apparmor.d/libvirt/libvirt-a22e3930-d87a-584e-22b2-1d8950212bac.files
virt-aa-helper:
  "/var/log/libvirt/**/testqemu.log" w,
  "/var/run/libvirt/**/testqemu.monitor" rw,
  "/var/run/libvirt/**/testqemu.pid" rwk,
  "/home/jamie/tmp/test.img" rw,