Changeset 52425 in vbox
- Timestamp:
- Aug 20, 2014 3:45:47 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95605
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r52423 r52425 2807 2807 && pNtProtect->fFirstProcessCreateHandle 2808 2808 && pOpInfo->KernelHandle == 0 2809 && pNtProtect->hParentPid == PsGetProcessId(PsGetCurrentProcess())) 2809 && pNtProtect->hParentPid == PsGetProcessId(PsGetCurrentProcess()) 2810 && ExGetPreviousMode() != KernelMode) 2810 2811 { 2811 2812 if ( !pOpInfo->KernelHandle … … 2868 2869 } 2869 2870 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", 2871 2872 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 2872 2873 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess, 2873 2874 pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, fAllowedRights, 2874 2875 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess & fAllowedRights, 2875 PsGetProcessImageFileName(PsGetCurrentProcess()) ));2876 PsGetProcessImageFileName(PsGetCurrentProcess()), ExGetPreviousMode() )); 2876 2877 2877 2878 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess &= fAllowedRights; … … 3083 3084 } 3084 3085 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", 3086 3087 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 3087 3088 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess, 3088 3089 pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, fAllowedRights, 3089 3090 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess & fAllowedRights, 3090 PsGetProcessImageFileName(PsGetCurrentProcess()) ));3091 PsGetProcessImageFileName(PsGetCurrentProcess()), ExGetPreviousMode())); 3091 3092 3092 3093 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess &= fAllowedRights;
Note:
See TracChangeset
for help on using the changeset viewer.