Bug 1327525

Summary: "usb-filter" field of vv-file is ignored
Product: Red Hat Enterprise Linux 6 Reporter: Xiaodai Wang <xiaodwan>
Component: virt-viewerAssignee: Eduardo Lima (Etrunko) <elima>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 6.8CC: cfergeau, dblechte, elima, fidencio, juzhou, mxie, mzhan, pgrunt, rbalakri, spice-qe-bugs, tpelka, tzheng, uril, virt-viewer-maint, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-viewer-2.0-15.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1309634 Environment:
Last Closed: 2017-03-21 09:18:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1309634    
Bug Blocks:    

Comment 6 Xiaodai Wang 2016-12-07 07:51:15 UTC
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.

Comment 8 errata-xmlrpc 2017-03-21 09:18:43 UTC
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