VirtualBox

Ignore:
Timestamp:
Aug 8, 2013 8:09:42 PM (11 years ago)
Author:
vboxsync
Message:

GuestCtrl: Fixed per-session command filtering, added command to disable the filter again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r47551 r47620  
    10801080    if (RT_SUCCESS(rc))
    10811081    {
    1082         /* Set session filter. */
     1082        /* Set session filter. This prevents the guest control
     1083         * host service to send messages which belong to another
     1084         * session we don't want to handle. */
    10831085        uint32_t uFilterAdd =
    10841086            VBOX_GUESTCTRL_CONTEXTID_MAKE_SESSION(pSession->StartupInfo.uSessionID);
    1085 
    1086         rc = VbglR3GuestCtrlMsgSetFilter(uClientID, uFilterAdd, 0 /* Filter remove */);
    1087         VBoxServiceVerbose(3, "Setting message filterAdd=%RU32 returned %Rrc\n",
     1087        uFilterAdd |= 0x7FFFFFF; /* We only want to filter for session IDs. */
     1088
     1089        rc = VbglR3GuestCtrlMsgFilterSet(uClientID, uFilterAdd, 0 /* Filter remove */);
     1090        VBoxServiceVerbose(3, "Setting message filterAdd=0x%x returned %Rrc\n",
    10881091                           uFilterAdd, rc);
    10891092
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