Bug 1005009 - File spice-client-glib-usb-acl-helper has no suid root privilege
File spice-client-glib-usb-acl-helper has no suid root privilege
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: spice-gtk (Show other bugs)
Unspecified Unspecified
urgent Severity urgent
: rc
: ---
Assigned To: Christophe Fergeau
Desktop QE
Depends On:
  Show dependency treegraph
Reported: 2013-09-05 22:45 EDT by tingting zheng
Modified: 2014-06-17 21:04 EDT (History)
10 users (show)

See Also:
Fixed In Version: spice-gtk-0.20-6.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2014-06-13 08:07:06 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Debug info from virt-manager (6.27 KB, text/plain)
2013-09-05 22:45 EDT, tingting zheng
no flags Details

  None (edit)
Description tingting zheng 2013-09-05 22:45:49 EDT
Created attachment 794559 [details]
Debug info from virt-manager

File spice-client-glib-usb-acl-helper has no suid root privilege


How reproducible:

Steps to Reproduce:
1. Use non-root user login system.
2. Launch virt-manager,input password for authentication.
3. Configure a guest to try usb auto redirection.
4. Error shows:
spice-client-glib-usb-helper: Error setting facl: Operation not permitted

5. Check the mode of file spice-client-glib-usb-helper
# ll /usr/libexec/spice-gtk-x86_64/spice-client-glib-usb-acl-helper 
-rwxr-xr-x. 1 root root 15448 Jul 12 01:03 /usr/libexec/spice-gtk-x86_64/spice-client-glib-usb-acl-helper
6. add suid root privilege to the file,usb can be redirected successfully.

Actual results:
As description.

Expected results:
File spice-client-glib-usb-acl-helper has suid root privilege

Additional info:
Attached virt-manager debug info.
Comment 3 Christophe Fergeau 2013-09-06 12:20:24 EDT
http://download.devel.redhat.com/brewroot/packages/spice-gtk/0.20/2.el7/data/logs/x86_64/build.log has:
chown root /builddir/build/BUILDROOT/spice-gtk-0.20-2.el7.x86_64/usr/libexec/spice-gtk-x86_64//spice-client-glib-usb-acl-helper
chown: changing ownership of '/builddir/build/BUILDROOT/spice-gtk-0.20-2.el7.x86_64/usr/libexec/spice-gtk-x86_64//spice-client-glib-usb-acl-helper': Operation not permitted
chmod u+s  /builddir/build/BUILDROOT/spice-gtk-0.20-2.el7.x86_64/usr/libexec/spice-gtk-x86_64//spice-client-glib-usb-acl-helper

Iirc spice-client-glib-usb-acl-helper needs to be added to some magic list in order to be suid-able, and iirc Hans did what was needed for that to happen. Maybe just a rebuild is needed?
Comment 4 Christophe Fergeau 2013-09-13 08:02:12 EDT
Ah I guess we need http://pkgs.fedoraproject.org/cgit/spice-gtk.git/commit/?id=549771495ae0f264042487c5dff01028368178e2 as well
Comment 5 Christophe Fergeau 2013-09-13 10:14:04 EDT
Should be fixed by a new spice-gtk build.
Comment 10 Ludek Smid 2014-06-13 08:07:06 EDT
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.

Note You need to log in before you can comment on or make changes to this bug.