Changeset 52423 in vbox
- Timestamp:
- Aug 20, 2014 3:24:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp
r52387 r52423 2589 2589 && pNtStub->u.pChild == pNtVm) 2590 2590 { 2591 /* Fine, nothing to do. */ 2591 /* Fine, reset the CSRSS hack (fixes ViRobot APT Shield 2.0 issue). */ 2592 pNtVm->fFirstProcessCreateHandle = true; 2592 2593 return; 2593 2594 } … … 2772 2773 pNtProtect->fFirstProcessCreateHandle = false; 2773 2774 2774 Log(("vboxdrv/ProcessHandlePre: ctx=%04zx/%p wants %#x to %p in pid=%04zx [%d] %s\n",2775 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),2775 Log(("vboxdrv/ProcessHandlePre: %sctx=%04zx/%p wants %#x to %p in pid=%04zx [%d] %s\n", 2776 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 2776 2777 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess, 2777 2778 pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, … … 2785 2786 pNtProtect->fFirstProcessCreateHandle = false; 2786 2787 2787 Log(("vboxdrv/ProcessHandlePre: ctx=%04zx/%p wants %#x to %p in pid=%04zx [%d] %s [debugger]\n",2788 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),2788 Log(("vboxdrv/ProcessHandlePre: %sctx=%04zx/%p wants %#x to %p in pid=%04zx [%d] %s [debugger]\n", 2789 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 2789 2790 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess, 2790 2791 pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, … … 2867 2868 } 2868 2869 2869 Log(("vboxdrv/ProcessHandlePre: ctx=%04zx/%p wants %#x to %p/pid=%04zx [%d], allow %#x => %#x; %s\n",2870 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),2870 Log(("vboxdrv/ProcessHandlePre: %sctx=%04zx/%p wants %#x to %p/pid=%04zx [%d], allow %#x => %#x; %s\n", 2871 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 2871 2872 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess, 2872 2873 pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, fAllowedRights, … … 2921 2922 } 2922 2923 2923 Log(("vboxdrv/ProcessHandlePre: ctx=%04zx/%p[%p] dup from %04zx/%p with %#x to %p in pid=%04zx [%d] %s\n",2924 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),2924 Log(("vboxdrv/ProcessHandlePre: %sctx=%04zx/%p[%p] dup from %04zx/%p with %#x to %p in pid=%04zx [%d] %s\n", 2925 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 2925 2926 pOpInfo->Parameters->DuplicateHandleInformation.TargetProcess, 2926 2927 PsGetProcessId((PEPROCESS)pOpInfo->Parameters->DuplicateHandleInformation.SourceProcess), … … 3022 3023 if (pProcess == PsGetCurrentProcess()) 3023 3024 { 3024 Log(("vboxdrv/ThreadHandlePre: ctx=%04zx/%p wants %#x to %p in pid=%04zx [%d] self\n",3025 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),3025 Log(("vboxdrv/ThreadHandlePre: %sctx=%04zx/%p wants %#x to %p in pid=%04zx [%d] self\n", 3026 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 3026 3027 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess, 3027 3028 pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind)); … … 3033 3034 else if (supdrvNtProtectIsWhitelistedDebugger(PsGetCurrentProcess())) 3034 3035 { 3035 Log(("vboxdrv/ThreadHandlePre: ctx=%04zx/%p wants %#x to %p in pid=%04zx [%d] %s [debugger]\n",3036 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),3036 Log(("vboxdrv/ThreadHandlePre: %sctx=%04zx/%p wants %#x to %p in pid=%04zx [%d] %s [debugger]\n", 3037 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 3037 3038 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess, 3038 3039 pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, … … 3082 3083 } 3083 3084 3084 Log(("vboxdrv/ThreadHandlePre: ctx=%04zx/%p wants %#x to %p in pid=%04zx [%d], allow %#x => %#x; %s\n",3085 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),3085 Log(("vboxdrv/ThreadHandlePre: %sctx=%04zx/%p wants %#x to %p in pid=%04zx [%d], allow %#x => %#x; %s\n", 3086 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 3086 3087 pOpInfo->Parameters->CreateHandleInformation.DesiredAccess, 3087 3088 pOpInfo->Object, pNtProtect->AvlCore.Key, pNtProtect->enmProcessKind, fAllowedRights, … … 3098 3099 && (PEPROCESS)pOpInfo->Parameters->DuplicateHandleInformation.TargetProcess == pProcess) 3099 3100 { 3100 Log(("vboxdrv/ThreadHandlePre: ctx=%04zx/%p[%p] dup from %04zx/%p with %#x to %p in pid=%04zx [%d] self\n",3101 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),3101 Log(("vboxdrv/ThreadHandlePre: %sctx=%04zx/%p[%p] dup from %04zx/%p with %#x to %p in pid=%04zx [%d] self\n", 3102 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 3102 3103 pOpInfo->Parameters->DuplicateHandleInformation.TargetProcess, 3103 3104 PsGetProcessId((PEPROCESS)pOpInfo->Parameters->DuplicateHandleInformation.SourceProcess), … … 3126 3127 } 3127 3128 3128 Log(("vboxdrv/ThreadHandlePre: ctx=%04zx/%p[%p] dup from %04zx/%p with %#x to %p in pid=%04zx [%d], allow %#x => %#x; %s\n",3129 PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(),3129 Log(("vboxdrv/ThreadHandlePre: %sctx=%04zx/%p[%p] dup from %04zx/%p with %#x to %p in pid=%04zx [%d], allow %#x => %#x; %s\n", 3130 pOpInfo->KernelHandle ? "k" : "", PsGetProcessId(PsGetCurrentProcess()), PsGetCurrentProcess(), 3130 3131 pOpInfo->Parameters->DuplicateHandleInformation.TargetProcess, 3131 3132 PsGetProcessId((PEPROCESS)pOpInfo->Parameters->DuplicateHandleInformation.SourceProcess),
Note:
See TracChangeset
for help on using the changeset viewer.