I verified it with virt-viewer-2.0-17.el6.x86_64.
Steps:
1. Prepare a guest and a ini file and set the "usb-filter=-1,-1,-1,-1,0" to forbid any usb device.
# cat b.ini
[virt-viewer]
type=spice
host=localhost
port=5900
enable-usbredir=1
enable-usb-autoshare=1
usb-filter=-1,-1,-1,-1,0
2. Run "remote-viewer b.ini" to connect to the guest.
3. Plug a usb device into the host device.
Acutal Result:
No usb device pops up in the guest.
then modifiy usb-fileter to "usb-filter=-1,-1,-1,-1,1", open the guest and plug a usb device again.
The usb device can pop up successfully.
So it is fixed and move it from ON_QA to VERIFIED.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2017-0587.html