]> xenbits.xensource.com Git - libvirt.git/commitdiff
apparmor, virt-aa-helper: Allow access to /sys/bus/usb/devices
authorJamie Strandboge <jamie@ubuntu.com>
Wed, 20 Dec 2017 10:56:43 +0000 (11:56 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Tue, 9 Jan 2018 09:08:57 +0000 (10:08 +0100)
Required to generate correct profiles when using usb passthrough.

Bug-Ubuntu: https://bugs.launchpad.net/bugs/565691

Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Acked-by: Jamie Strandboge <jamie@ubuntu.com>
Acked-by: Intrigeri <intrigeri@boum.org>
examples/apparmor/usr.lib.libvirt.virt-aa-helper

index 105f09e43d5fde06c17ea6fb325e77b6fbd49cfa..6869685c053d13c7bb1e562362e6eb5151d7bd7c 100644 (file)
@@ -22,6 +22,7 @@ profile virt-aa-helper /usr/{lib,lib64}/libvirt/virt-aa-helper {
   # for hostdev
   /sys/devices/ r,
   /sys/devices/** r,
+  /sys/bus/usb/devices/ r,
   deny /dev/sd* r,
   deny /dev/vd* r,
   deny /dev/dm-* r,