VirtualBox

Changeset 104502 in vbox for trunk/src/VBox/Devices/USB


Ignore:
Timestamp:
May 3, 2024 11:56:27 AM (10 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163024
Message:

Devices/USB/USBProxyDevice-darwin.cpp: Request authorization for capturing the device from the user, bugref:10684, second attempt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/USB/darwin/USBProxyDevice-darwin.cpp

    r104501 r104502  
    6666/** An experiment... */
    6767//#define USE_LOW_LATENCY_API 1
     68/** Some older SDKs we build with don't know about this. */
     69#define OSX_kIOServiceInteractionAllowed 0x00000001
    6870
    6971
     
    12181220
    12191221    /*
     1222     * Ask for authorization (which only works with the com.apple.vm.device-access entitlement).
     1223     */
     1224    irc = IOServiceAuthorize(USBDevice, OSX_kIOServiceInteractionAllowed);
     1225    if (irc != kIOReturnSuccess)
     1226        LogRel(("Failed to get device authorization, capturing the device might now work: irc=%#x\n", irc));
     1227
     1228    /*
    12201229     * Create a plugin interface for the device and query its IOUSBDeviceInterface.
    12211230     */
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