Is this still an issue? 1. I do not see Failed to begin udev enumeration.
2. In about:usb-internals I see my mouse and webcam. 3. The Chromium's Apparmor profile has all these: ---> /run/udev/data/c116:[0-9]* r, /run/udev/data/+sound:card[0-9]* r, /run/udev/data/c16[67]:[0-9] r, # ACM USB modems /run/udev/data/b180:* r, # various USB block devices /run/udev/data/c18[089]:* r, # various USB character devices: USB serial converters, etc. /run/udev/data/+usb:* r, /run/udev/data/c13:{[0-9],[12][0-9],3[01]} r, /run/udev/data/c13:{6[5-9],[7-9][0-9],[1-9][0-9][0-9]*} r, /run/udev/data/c23[4-9]:* r, /run/udev/data/c24[0-9]:* r, /run/udev/data/c25[0-4]:* r, /run/udev/data/+power_supply:hid* r, /run/udev/data/c14:[0-9]* r, /run/udev/data/c13:[0-9]* r, /run/udev/data/+input:* r, /run/udev/data/+drm:card* r, /run/udev/data/+pci:[0-9a-f]* r, /run/udev/data/+platform:soc:gpu* r, # /run/udev/data/<type><major>:<minor> r, /run/udev/data/c226:[0-9]* r, # 226 drm /run/udev/data/c13:[0-9]* r, /run/udev/data/+input:* r, /run/udev/data/+platform:* r, /run/udev/data/+power_supply:* r, /run/udev/data/** r, # Various files in /run/udev/data needed by Chrome Settings. Leaks device /run/udev/data/c1:[0-9]* r, # /dev/psaux /run/udev/data/c10:[0-9]* r, # /dev/adbmouse /run/udev/data/c13:[0-9]* r, # /dev/input/* /run/udev/data/c180:[0-9]* r, # /dev/vrbuttons /run/udev/data/c4:[0-9]* r, # /dev/tty*, /dev/ttyS* /run/udev/data/c5:[0-9]* r, # /dev/tty, /dev/console, etc /run/udev/data/c7:[0-9]* r, # /dev/vcs* /run/udev/data/+hid:* r, /run/udev/data/+input:input[0-9]* r, /run/udev/data/c29:[0-9]* r, # /dev/fb* /run/udev/data/+backlight:* r, /run/udev/data/+leds:* r, /run/udev/data/c116:[0-9]* r, # alsa /run/udev/data/+sound:card[0-9]* r, /run/udev/data/c108:[0-9]* r, # /dev/ppp /run/udev/data/c189:[0-9]* r, # USB serial converters /run/udev/data/c89:[0-9]* r, # /dev/i2c-* /run/udev/data/c81:[0-9]* r, # video4linux (/dev/video*, etc) /run/udev/data/c202:[0-9]* r, # /dev/cpu/*/msr /run/udev/data/c203:[0-9]* r, # /dev/cuse /run/udev/data/+acpi:* r, /run/udev/data/+hwmon:hwmon[0-9]* r, /run/udev/data/+i2c:* r, /run/udev/data/n[0-9]* r, /run/udev/data/+bluetooth:hci[0-9]* r, /run/udev/data/+rfkill:rfkill[0-9]* r, /run/udev/data/c241:[0-9]* r, # /dev/vhost-vsock /run/udev/data/b1:[0-9]* r, # /dev/ram* /run/udev/data/b7:[0-9]* r, # /dev/loop* /run/udev/data/b8:[0-9]* r, # /dev/sd* /run/udev/data/b11:[0-9]* r, # /dev/scd* and sr* /run/udev/data/b230:[0-9]* r, # /dev/zvol* /run/udev/data/c21:[0-9]* r, # /dev/sg* /run/udev/data/+usb:[0-9]* r, /run/udev/data/b252:[0-9]* r, /run/udev/data/b253:[0-9]* r, /run/udev/data/b259:[0-9]* r, /run/udev/data/c24[0-9]:[0-9]* r, /run/udev/data/c25[0-4]:[0-9]* r, /run/udev/data/c81:[0-9]* r, # video4linux (/dev/video*, etc) /run/udev/data/+usb:* r, <--- -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to chromium-browser in Ubuntu. https://bugs.launchpad.net/bugs/1905458 Title: [snap] Chromium USB enumeration fails when usbmon module is loaded Status in chromium-browser package in Ubuntu: Confirmed Bug description: Version: chromium 87.0.4280.66 1411 Steps to reproduce: 1. Have Chromium snap, with raw-usb plug connected. 2. sudo modprobe usbmon. 3. Open Chromium and try to use a webpage that has webusb. Result: Chromium cannot see any USB devices on the system, regardless of whether it has raw-usb or not. The following errors are printed on dmesg: ``` [3701471.283584] audit: type=1400 audit(1606101844.664:6015): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/run/udev/data/c508:4" pid=3120526 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [3701471.283636] audit: type=1400 audit(1606101844.664:6016): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/run/udev/data/c508:2" pid=3120526 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [3701471.283700] audit: type=1400 audit(1606101844.664:6017): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/run/udev/data/c508:0" pid=3120526 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [3701471.283786] audit: type=1400 audit(1606101844.664:6018): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/run/udev/data/c508:7" pid=3120526 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [3701471.283869] audit: type=1400 audit(1606101844.664:6019): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/run/udev/data/c508:5" pid=3120526 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 [3701471.283982] audit: type=1400 audit(1606101844.664:6020): apparmor="DENIED" operation="open" profile="snap.chromium.chromium" name="/run/udev/data/c508:3" pid=3120526 comm="ThreadPoolForeg" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0 ``` Chromium will then print this on stderr: ``` [3121487:3121626:1123/032552.888385:ERROR:udev_watcher.cc(97)] Failed to begin udev enumeration. ``` Why this happens: Chromium enumerates USB devices by querying udev. Specifically by using udev_enumerate_scan_devices. When usbmon module is loaded, some new device nodes are created for the monitor endpoints. They are only readable by root. When Chromium scans for normal USB devices, it finds the monitors and tries to probe them. Apparmor blocks it, which causes udev_enumerate_scan_devices to fail. Impact: There is no way for the user to know this error has occurred unless they happen to be watching dmesg or the stderr of Chromium (which requires they ran it from a terminal). Unless they check both of these places and realize that the error messages are connected, Chromium will just appear to behave as if there are no USB devices connected to the system at all. If the user does realize that usbmon is causing a problem, they must restart Chromium after unloading it, because it will not retry if enumeration ever fails. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1905458/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp