回复: usbredir doesn't hide/filter specific usb devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try this parameter --spice-usbredir-redirect-on-connect="-1,0x0bda,-1,-1,0"


smart_fool@xxxxxxxxxxx
 
发件人: Li, Zhijian
发送时间: 2022-02-15 21:41
收件人: spice-devel@xxxxxxxxxxxxxxxxxxxxx
主题:  usbredir doesn't hide/filter specific usb devices
Hi guys
 
I intended to not allow redirecting some of my usb devices(HID) to the guest, i thought https://www.spice-space.org/usbredir.html
could help on this.
 
My host has below usb devices
 
lizj@FNSTPC:~/workspace/vgt/virt-viewer/src$ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 006: ID 04d8:0b2a Microchip Technology, Inc.
Bus 001 Device 021: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 001 Device 004: ID 0424:2137 Standard Microsystems Corp.
Bus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
802.11n WLAN Adapter
Bus 001 Device 002: ID 0bda:8771 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
 
$ remote-viewer
--spice-usbredir-auto-redirect-filter="-1,0x0bda,-1,-1,0" --spice-debug
spice://localhost:5900
 
For testing, i just want to hide produce id 0x0bda from remote-viewer
with above command line. But acutally
 
i am still able to redirec both Realtek device to the guest through
remote-viewer.
 
So is there something with my usage ? Feel free to let me know if there
is something wrong.
 
Thanks
 
Zhijian
 
 
 

[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]