[Pkg-utopia-maintainers] Bug#683839: Patch to disable scanning of unsafe devices by default

Aleksander Morgado aleksander at gnu.org
Thu Sep 28 15:40:59 UTC 2017


> 
>      /* Is the device in the manual-only greylist? If so, return if this is an
>       * automatic scan. */
> -    if (!manual_scan && g_udev_device_get_property_as_boolean (physdev, "ID_MM_DEVICE_MANUAL_SCAN_ONLY")) {
> -        mm_dbg ("(%s/%s): port probed only in manual scan", subsys, name);
> +    if (!manual_scan && !g_udev_device_get_property_as_boolean (physdev, "ID_MM_DEVICE_AUTO_SCAN_SAFE")) {
> +        mm_dbg ("(%s/%s): port not known to be safe, probed only in manual scan", subsys, name);
>          goto out;
>      }

That will effectively block probing for all device ports (QMI, MBIM, net...), not only TTYs.

-- 
Aleksander

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20170928/6e9b1393/attachment.sig>


More information about the Pkg-utopia-maintainers mailing list