LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-02-2019, 07:14 AM   #1
Bozhok Zahar
LQ Newbie
 
Registered: Mar 2019
Location: Ukraine
Posts: 1

Rep: Reputation: Disabled
Question USB kernel filtering module/driver


Currently I'm trying to write Linux kernel module which should filter all kinds of USB devices. It should filter devices by their ids, just be vendor id and device id.

What should I do to filter them. Should I unload other drivers/modules, or how to load my module before all USB drivers. The question is what should I do in order to filter USB devices.
Now my tmp code can handle USB mass storage devices and just show when they are connected /disconnect.
 
Old 03-24-2019, 07:23 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,397
Blog Entries: 55

Rep: Reputation: 3569Reputation: 3569Reputation: 3569Reputation: 3569Reputation: 3569Reputation: 3569Reputation: 3569Reputation: 3569Reputation: 3569Reputation: 3569Reputation: 3569
Have a look at existing code, say usbguard.github.io?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Driver core binding device to driver and Udev loading driver module-difference? ayyasprings Linux - Embedded & Single-board computer 0 01-23-2016 01:44 PM
content filtering with layer7- filtering rose1366m Linux - Networking 1 05-04-2011 11:10 AM
adding a new kernel module to wireless driver module nandan.amar Linux - Newbie 2 04-22-2010 09:21 AM
nvidia driver 8762 kernel module mismatch x module openfun Ubuntu 5 06-27-2006 10:02 PM
Sendmail Spam filtering and Virus filtering MrJoshua Linux - General 2 04-03-2003 10:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration