From: Jamie Strandboge Date: Wed, 20 Dec 2017 10:56:43 +0000 (+0100) Subject: apparmor, virt-aa-helper: Allow access to /sys/bus/usb/devices X-Git-Tag: v4.0.0-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59249778705693e54df21710116ae213b194fa50;p=thirdparty%2Flibvirt.git apparmor, virt-aa-helper: Allow access to /sys/bus/usb/devices Required to generate correct profiles when using usb passthrough. Bug-Ubuntu: https://bugs.launchpad.net/bugs/565691 Signed-off-by: Stefan Bader Signed-off-by: Christian Ehrhardt Acked-by: Jamie Strandboge Acked-by: Intrigeri --- diff --git a/examples/apparmor/usr.lib.libvirt.virt-aa-helper b/examples/apparmor/usr.lib.libvirt.virt-aa-helper index 105f09e43d..6869685c05 100644 --- a/examples/apparmor/usr.lib.libvirt.virt-aa-helper +++ b/examples/apparmor/usr.lib.libvirt.virt-aa-helper @@ -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,