From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Subject: Re: [RFC] Create an audit record of USB specific details Date: Mon, 4 Apr 2016 05:56:26 -0700 Message-ID: <20160404125626.GB6197@kroah.com> References: <1459742562-22803-1-git-send-email-wmail@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1459742562-22803-1-git-send-email-wmail@redhat.com> Sender: linux-kernel-owner@vger.kernel.org To: wmealing Cc: linux-audit@redhat.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org List-Id: linux-audit@redhat.com On Mon, Apr 04, 2016 at 12:02:42AM -0400, wmealing wrote: > From: Wade Mealing > > Gday, > > I'm looking to create an audit trail for when devices are added or removed > from the system. Then please do it in userspace, as I suggested before, that way you catch all types of devices, not just USB ones. Also I don't think you realize that USB interfaces are what are bound to drivers, not USB devices, so that is going to mess with any attempted audit trails here. How are you going to distinguish between the 5 different devices that just got plugged in that all have 0000/0000 as vid/pid for them because they are "cheap" devices from China, yet do totally different things because they are different _types_ of devices? Again, do this in userspace please, that is where it belongs. greg k-h