Public bug reported:

Certain cases are mis-debugged for quite a while and users are confused
on a bad apparmor profile (for a guest) being reporte as:

error: internal error: Process exited prior to exec: libvirt:  error :
unable to set AppArmor profile 'libvirt-5a0e5825-717b-4edb-857a-
b7bab2f7083a' for '/usr/bin/kvm-spice': No such file or directory


To reproduce use a forbidden char, so any of the bad chars [1] in e.g. a file 
name of an image.
Then start the domain.

The error should be more descriptive to what failed.

[1]: https://libvirt.org/git/?p=libvirt.git;a=blobdiff;f=src/security
/virt-aa-
helper.c;h=07ece730e27d2be4be92adcabb54d788825659f0;hp=ee3913d66ac3a867bae6af71609ebcd25dd25ae2;hb=a150b86c4c3afc82e2d2f591ae19328b1c81bf7e;hpb=a50b45a2971a4c70f005a8e8821ea7a794e87e7b

** Affects: libvirt (Ubuntu)
     Importance: Low
         Status: Triaged


** Tags: libvirt-18.10

** Changed in: libvirt (Ubuntu)
       Status: New => Triaged

** Changed in: libvirt (Ubuntu)
   Importance: Undecided => Low

** Tags added: libvirt-18.10

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1767934

Title:
  breaking the apparmor profile leads to misleading error messages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1767934/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to