Public bug reported:

Operating system: Ubuntu 26.04 LTS
Architecture: x86_64
kernel version: Linux ubuntu 7.0.0-28-generic
libvirt version: 12.0.0
Hypervisor and version: qemu-system-x86 10.2.1+ds-1ubuntu3.2

Start a VM and attach an usb host device:

virsh attach-device --domain subVmTest1 --file /tmp/usbhostedxml
Contents of the `/tmp/usbhostedxml`:
<hostdev mode='subsystem' type='usb'>
  <source>
    <vendor id='0x1d6b'/>
    <product id='0x0001'/>
  </source>
</hostdev>

AppArmor denial:
audit: type=1400 audit(1784186108.556:533): apparmor="DENIED" operation="open" 
class="file" profile="libvirt-c13c2cda-4558-4fca-9146-9f2f8075d432" 
name="/sys/devices/pci0000:00/0000:00:01.2/uevent" pid=23339 
comm="qemu-system-x86" requested_mask="r" denied_mask="r" fsuid=64055 ouid=0

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  AppArmor denies QEMU to read
  /sys/devices/pci0000:00/0000:00:01.2/uevent

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to