From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967798AbdADUr7 (ORCPT ); Wed, 4 Jan 2017 15:47:59 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:33214 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965033AbdADUr4 (ORCPT ); Wed, 4 Jan 2017 15:47:56 -0500 Date: Wed, 4 Jan 2017 21:47:04 +0100 From: Greg Kroah-Hartman To: Matthew Garrett Cc: Kees Cook , Linux Kernel Mailing List , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Ulf Hansson , Mauro Carvalho Chehab , Tomeu Vizoso , Lukas Wunner , Madalin Bucur , Sudip Mukherjee , Rasmus Villemoes , Arnd Bergmann , Andrew Morton , Russell King , Petr Tesarik , linux-pm@vger.kernel.org, kernel-hardening@lists.openwall.com Subject: Re: [PATCH] Allow userspace control of runtime disabling/enabling of driver probing Message-ID: <20170104204704.GA17642@kroah.com> References: <20170103225831.GA113525@beast> <20170104093236.GB31677@kroah.com> <20170104194707.GD25268@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 04, 2017 at 02:01:00PM -0600, Matthew Garrett wrote: > On Wed, Jan 4, 2017 at 1:47 PM, Greg Kroah-Hartman > wrote: > > You know the device type and vendor/product id before you authorize it, > > you should be able to do this type of detection otherwise it seems > > pretty pointless :) > > You know the vendor and product ID, which doesn't tell you whether one > of the endpoints is a network device or a keyboard. You need to know > that. Are you sure you don't have the configuration information as well? That should tell you... And for network devices, they are almost all just vendor/product ids, not many use the class protocol. thanks, greg k-h