Re: [Qemu-devel] Filtering files passing through MTP devices

2018-04-25 Thread Omer Katz
I didn't really want MTP. Someone suggested it on IRC. What I really wanted is to be able to run my filters while using the normal QEMU USB driver. I'm not sure how MTP even works so I figured that before I learn anything about MTP I'll check here to see if I can implement this easily and

Re: [Qemu-devel] Filtering files passing through MTP devices

2018-04-25 Thread Bandan Das
Omer Katz writes: > What would be a simpler way to do this so that the guest machine would > still be able to recognize the USB drive? > Right now we're triggering a script whenever udev recognizes that a USB > drive is plugged in. > The script copies the allowed files to a

Re: [Qemu-devel] Filtering files passing through MTP devices

2018-04-25 Thread Omer Katz
What would be a simpler way to do this so that the guest machine would still be able to recognize the USB drive? Right now we're triggering a script whenever udev recognizes that a USB drive is plugged in. The script copies the allowed files to a certain folder. The guest has a cron job that

Re: [Qemu-devel] Filtering files passing through MTP devices

2018-04-25 Thread Bandan Das
Omer Katz writes: > We're connecting USB drives that we want the guests to copy files from. > The user should only be allowed to copy certain files into the system. > The same thing goes for copying files to the USB drive. We only allow > certain files to be exported from

Re: [Qemu-devel] Filtering files passing through MTP devices

2018-04-25 Thread Omer Katz
We're connecting USB drives that we want the guests to copy files from. The user should only be allowed to copy certain files into the system. The same thing goes for copying files to the USB drive. We only allow certain files to be exported from the guest. On Wed, Apr 25, 2018, 12:57 PM Daniel

Re: [Qemu-devel] Filtering files passing through MTP devices

2018-04-25 Thread Daniel P . Berrangé
On Mon, Apr 23, 2018 at 03:10:32PM +, Omer Katz wrote: > Hi everyone, > > We have a use case that requires us to only allow certain files to pass > through to the guest machine from USB storage devices. > > I was told on IRC that such a feature does not exist but the easiest way to > achieve

[Qemu-devel] Filtering files passing through MTP devices

2018-04-23 Thread Omer Katz
Hi everyone, We have a use case that requires us to only allow certain files to pass through to the guest machine from USB storage devices. I was told on IRC that such a feature does not exist but the easiest way to achieve our goal is to contribute a patch the the MTP device driver since other