VirtualBox

Changeset 52425 in vbox


Ignore:
Timestamp:
Aug 20, 2014 3:45:47 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95605
Message:

SUPDrv: Revised fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r52423 r52425  
    28072807                    && pNtProtect->fFirstProcessCreateHandle
    28082808                    && pOpInfo->KernelHandle == 0
    2809                     && pNtProtect->hParentPid == PsGetProcessId(PsGetCurrentProcess()))
     2809                    && pNtProtect->hParentPid == PsGetProcessId(PsGetCurrentProcess())
     2810                    && ExGetPreviousMode() != KernelMode)
    28102811                {
    28112812                    if (   !pOpInfo->KernelHandle
     
    28682869                }
    28692870
    2870                 Log(("vboxdrv/ProcessHandlePre: %sctx=%04zx/%p wants %#x to %p/pid=%04zx [%d], allow %#x => %#x; %s\n",
     2871                Log(("vboxdrv/ProcessHandlePre: %sctx=%04zx/%p wants %#x to %p/pid=%04zx [%d], allow %#x => %#x; %s [prev=%#x]\n",
    28712872                     pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),
    28722873                     pOpInfo->Parameters->CreateHandleInformation.DesiredAccess,
    28732874                     pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, fAllowedRights,
    28742875                     pOpInfo->Parameters->CreateHandleInformation.DesiredAccess & fAllowedRights,
    2875                      PsGetProcessImageFileName(PsGetCurrentProcess())));
     2876                     PsGetProcessImageFileName(PsGetCurrentProcess()), ExGetPreviousMode() ));
    28762877
    28772878                pOpInfo->Parameters->CreateHandleInformation.DesiredAccess &= fAllowedRights;
     
    30833084                }
    30843085
    3085                 Log(("vboxdrv/ThreadHandlePre: %sctx=%04zx/%p wants %#x to %p in pid=%04zx [%d], allow %#x => %#x; %s\n",
     3086                Log(("vboxdrv/ThreadHandlePre: %sctx=%04zx/%p wants %#x to %p in pid=%04zx [%d], allow %#x => %#x; %s [prev=%#x]\n",
    30863087                     pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),
    30873088                     pOpInfo->Parameters->CreateHandleInformation.DesiredAccess,
    30883089                     pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, fAllowedRights,
    30893090                     pOpInfo->Parameters->CreateHandleInformation.DesiredAccess & fAllowedRights,
    3090                      PsGetProcessImageFileName(PsGetCurrentProcess())));
     3091                     PsGetProcessImageFileName(PsGetCurrentProcess()), ExGetPreviousMode()));
    30913092
    30923093                pOpInfo->Parameters->CreateHandleInformation.DesiredAccess &= fAllowedRights;
Note: See TracChangeset for help on using the changeset viewer.

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