[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] usb-redir: Add the posibility to filter out cer
From: |
Jan Kiszka |
Subject: |
Re: [Qemu-devel] [PATCH] usb-redir: Add the posibility to filter out certain devices from redirecion |
Date: |
Thu, 12 Jan 2012 17:50:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
On 2012-01-12 17:31, Hans de Goede wrote:
> This patch adds the posibility to filter out certain devices from redirecion.
> To use this pass the filter property to -device usb-redir. The filter
> property takes a string consisting of filter rules, the format for a rule is:
> <class>:<vendor>:<product>:<version>:<allow>
>
> -1 can be used to allow any value for a field.
>
> Muliple rules can be concatonated using | as a separator. Note that if
> a device matches none of the passed in rules, redirecting it will not be
> allowed!
>
Hmm, '|' makes quoting mandatory. And the :<allow> is also not that
beautiful IMHO.
What about
[+]|-<class>:<vendor>:<product>:<version>[/[+]|-<class>:...]
? Optional '+' means allow, '-' disallow. An empty field could also
serve as wildcard (instead of explicit -1 which would collide with
disallow).
Jan
--
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux