qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Filtering files passing through MTP devices
@ 2018-04-23 15:10 Omer Katz
  2018-04-25  9:56 ` Daniel P. Berrangé
  0 siblings, 1 reply; 7+ messages in thread
From: Omer Katz @ 2018-04-23 15:10 UTC (permalink / raw)
  To: qemu-devel

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 drivers operate on a filesystem level instead of a file level which
is what we need.

The plan is to pass the contents of each file to a program through stdin
and decide based on the exit code if the file should be allowed to pass
through to the guest or not.

Since this is the first time I'm contributing to QEMU I'd like some
guidance to where the filtering code should be.
https://github.com/qemu/qemu/blob/master/hw/usb/dev-mtp.c doesn't look that
complicated but I still need to understand it better to continue.
Furthermore, I need to know where to add such a command line option to
point QEMU to the filtering program.

Would such a patch be accepted if all the requirements above are met?

Best Regards,
Omer Katz.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2018-04-25 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-23 15:10 [Qemu-devel] Filtering files passing through MTP devices Omer Katz
2018-04-25  9:56 ` Daniel P. Berrangé
2018-04-25 10:39   ` Omer Katz
2018-04-25 16:17     ` Bandan Das
2018-04-25 18:05       ` Omer Katz
2018-04-25 20:20         ` Bandan Das
2018-04-25 20:46           ` Omer Katz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).