VirtualBox

Changeset 36958 in vbox for trunk/src/VBox/RDP


Ignore:
Timestamp:
May 4, 2011 2:50:32 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
71554
Message:

Main/linux/USB: better permissions checking and code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/RDP/client/vrdp/rdpusb.c

    r36409 r36958  
    888888rdpusb_init(void)
    889889{
    890         PCUSBDEVTREELOCATION pcLocation = USBProxyLinuxGetDeviceRoot(false);
    891         g_fUseSysfs       = pcLocation->fUseSysfs;
    892         g_pcszDevicesRoot = pcLocation->szDevicesRoot;
     890    /** @todo re-use the proxy service code */
     891        if (USBProxyLinuxCheckDeviceRoot("/dev/vboxusb", true))
     892        {
     893            g_fUseSysfs       = true;
     894            g_pcszDevicesRoot = "/dev/vboxusb";
     895        }
     896        else
     897        {
     898            g_fUseSysfs       = false;
     899            g_pcszDevicesRoot = "/proc/bus/usb";
     900        }
    893901        rdpusb_channel =
    894902                channel_register("vrdpusb", CHANNEL_OPTION_INITIALIZED | CHANNEL_OPTION_ENCRYPT_RDP,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette