From mboxrd@z Thu Jan 1 00:00:00 1970 From: apawar.linux@gmail.com (Abhijit Pawar) Date: Thu, 17 Nov 2011 14:15:35 +0530 Subject: Filtering USB storage data in kernel module Message-ID: <4EC4C9AF.8090008@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi All, I need to filter the data written/read to and from the USB storage disk. Now the way USB is made known to OS is through SCSI and then respective filesystem ( mostly usbfs). So is there any way I can intercept this stack and have my kernel module invoked so that I will get the data. I have been thinking on two approaches: 1. Use VFS and write a proxy filesystem for USB device which will filter the data. 2. checking SCSI and any intercepting point. I am currently looking at USBMONITOR source code as well. Please let me know if there is any other way to achieve this. Regards, Abhijit Pawar