Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751668AbdFTHxk (ORCPT ); Tue, 20 Jun 2017 03:53:40 -0400 Received: from mail-ua0-f171.google.com ([209.85.217.171]:34947 "EHLO mail-ua0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750925AbdFTHxj (ORCPT ); Tue, 20 Jun 2017 03:53:39 -0400 MIME-Version: 1.0 In-Reply-To: <20170620070721.GA30728@amd> References: <1497286620-15027-1-git-send-email-s.mesoraca16@gmail.com> <1497286620-15027-5-git-send-email-s.mesoraca16@gmail.com> <20170620070721.GA30728@amd> From: Salvatore Mesoraca Date: Tue, 20 Jun 2017 09:53:37 +0200 Message-ID: Subject: Re: [PATCH 04/11] S.A.R.A. USB Filtering To: Pavel Machek Cc: kernel list , linux-security-module@vger.kernel.org, Kernel Hardening , Brad Spengler , PaX Team , Casey Schaufler , Kees Cook , James Morris , "Serge E. Hallyn" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 896 Lines: 21 2017-06-20 9:07 GMT+02:00 Pavel Machek : > Hmm. Given that USB device provides vendor id/product id, this does > not really stop anyone, right? > > AFAICT you can still get USB stick with vid/pid of logitech keyboard, > and kernel will recognize it as a usb stick. There are a number of ways by which a device can be assigned to a driver. vid/pid is the most common for the most esoteric devices: i.e. less used/most dangerous. However you are right, a final version of this feature should have included "interface matching" too and even something much more specific like serial matching. Anyway, because of lack of interest in having this feature included in kernel space (something similar can already be done in user-space) it has been abandoned. You are answering to an old version of S.A.R.A. that can now be considered obsolete. Thank you anyway for your comment. Salvatore