VirtualBox

Changeset 51490 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Jun 2, 2014 3:37:51 PM (11 years ago)
Author:
vboxsync
Message:

Additions: Darwin: apply the same approach as in r94097 when preventing 3rd party Apps from connecting to VBox IOServices.

Location:
trunk/src/VBox/Additions/common
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-darwin.cpp

    r51115 r51490  
    981981    if (!OwningTask)
    982982        return false;
     983
     984    if (u32Type != VBOXGUEST_DARWIN_IOSERVICE_COOKIE)
     985    {
     986        Log(("org_virtualbox_VBoxGuestClient::initWithTask: Bad cookie %#x\n", u32Type));
     987        return false;
     988    }
     989
    983990    if (IOUserClient::initWithTask(OwningTask, pvSecurityId , u32Type))
    984991    {
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3Lib.cpp

    r48938 r51490  
    219219
    220220    io_connect_t uConnection;
    221     kr = IOServiceOpen(ServiceObject, mach_task_self(), 0, &uConnection);
     221    kr = IOServiceOpen(ServiceObject, mach_task_self(), VBOXGUEST_DARWIN_IOSERVICE_COOKIE, &uConnection);
    222222    IOObjectRelease(ServiceObject);
    223223    if (kr != kIOReturnSuccess)
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