martinpitt / umockdev

Mock hardware devices for creating unit tests and bug reporting
https://launchpad.net/umockdev
GNU Lesser General Public License v2.1
308 stars 54 forks source link

preload: Don't read udev cache data from system #214

Closed hadess closed 1 year ago

hadess commented 1 year ago

Never read the udev cache data from the system, as this might make properties of system devices leak through our mocked udev, such as headsets showing up as internal devices.

Closes: https://github.com/martinpitt/umockdev/issues/213

martinpitt commented 1 year ago

Thanks! The change makes sense, I'll just check if I can add a unit test. (Probaby difficult as there's not a lot of udev data on trivial devices which are available in a container, but let's see..)