Changeset 51999 in vbox
- Timestamp:
- Jul 11, 2014 9:43:11 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
include/iprt/asn1.h (modified) (1 diff)
-
src/VBox/HostDrivers/Support/Makefile.kmk (modified) (2 diffs)
-
src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp (modified) (6 diffs)
-
src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/asn1.h
r51770 r51999 26 26 #ifndef ___iprt_asn1_h 27 27 #define ___iprt_asn1_h 28 29 #if defined(DEBUG_bird) && !defined(IN_SUP_HARDENED_R3) && defined(IN_RING3) /* TEMPORARY! */30 # define RTMEM_WRAP_TO_EF_APIS /* TEMPORARY! */31 # include <iprt/mem.h> /* TEMPORARY! */32 #endif /* TEMPORARY! */33 28 34 29 #include <iprt/time.h> -
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r51973 r51999 182 182 $(if $(VBOX_WITH_MAIN),VBOX_WITH_MAIN,) \ 183 183 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) \ 184 $(if $(VBOX_WITHOUT_DEBUGGER_CHECKS),VBOX_WITHOUT_DEBUGGER_CHECKS,) 184 $(if $(VBOX_WITHOUT_DEBUGGER_CHECKS),VBOX_WITHOUT_DEBUGGER_CHECKS,) \ 185 $(if $(VBOX_PERMIT_VISUAL_STUDIO_PROFILING),VBOX_PERMIT_VISUAL_STUDIO_PROFILING,) 185 186 ifdef VBOX_WITH_VISTA_NO_SP 186 187 SUPR3HardenedStatic_DEFS.win += VBOX_WITH_VISTA_NO_SP … … 531 532 VBoxDrv_DEFS += VBOX_WITHOUT_DEBUGGER_CHECKS 532 533 endif 534 ifdef VBOX_PERMIT_VISUAL_STUDIO_PROFILING 535 VBoxDrv_DEFS += VBOX_PERMIT_VISUAL_STUDIO_PROFILING 536 endif 533 537 #VBoxDrv_DEFS.debug += DEBUG_DARWIN_GIP 534 538 VBoxDrv_DEFS.darwin := VBOX_WITH_HOST_VMX -
trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp
r51977 r51999 122 122 * The array is large enough to hold the executable, all allowed DLLs, and one 123 123 * more so we can get the image name of the first unwanted DLL. */ 124 SUPHNTVPIMAGE aImages[1+6+1]; 124 SUPHNTVPIMAGE aImages[1 + 6 + 1 125 #ifdef VBOX_PERMIT_VISUAL_STUDIO_PROFILING 126 + 16 127 #endif 128 ]; 125 129 /** Memory compare scratch buffer.*/ 126 130 uint8_t abMemory[_4K]; … … 150 154 "apphelp.dll", 151 155 "apisetschema.dll", 152 "sfc.dll" 156 "sfc.dll", 157 #ifdef VBOX_PERMIT_VISUAL_STUDIO_PROFILING 158 "psapi.dll", 159 "msvcrt.dll", 160 "advapi32.dll", 161 "sechost.dll", 162 "rpcrt4.dll", 163 "SamplingRuntime.dll", 164 #endif 153 165 }; 154 166 … … 817 829 pImage->fDll = true; 818 830 831 #ifndef VBOX_PERMIT_VISUAL_STUDIO_PROFILING 819 832 /* The directory name must match the one we've got for System32. */ 820 833 if ( cwcDirName * sizeof(WCHAR) != g_System32NtPath.UniStr.Length … … 825 838 "Expected %ls to be loaded from %ls.", 826 839 pImage->Name.UniStr.Buffer, g_System32NtPath.UniStr.Buffer); 827 840 #endif 828 841 break; 829 842 } … … 1038 1051 * Executable memory? 1039 1052 */ 1053 #ifndef VBOX_PERMIT_VISUAL_STUDIO_PROFILING 1040 1054 else if (MemInfo.Protect & (PAGE_EXECUTE | PAGE_EXECUTE_READ | PAGE_EXECUTE_READWRITE | PAGE_EXECUTE_WRITECOPY)) 1041 1055 { … … 1050 1064 MemInfo.AllocationBase, 1051 1065 MemInfo.AllocationProtect); 1052 # ifdef IN_RING31066 # ifdef IN_RING3 1053 1067 /* Continue add more information about the problematic process. */ 1054 # else1068 # else 1055 1069 return pThis->rcResult; 1056 # endif1070 # endif 1057 1071 } 1072 #endif 1058 1073 1059 1074 /* -
trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp
r51945 r51999 624 624 g_offSupLibHardenedExeNtName * sizeof(WCHAR)) == 0) 625 625 fFlags |= SUPHNTVI_F_REQUIRE_KERNEL_CODE_SIGNING | SUPHNTVI_F_REQUIRE_SIGNATURE_ENFORCEMENT; 626 #ifdef VBOX_PERMIT_VISUAL_STUDIO_PROFILING 627 /* Hack to allow profiling our code with Visual Studio. */ 628 else if ( uBuf.UniStr.Length > sizeof(L"\\SamplingRuntime.dll") 629 && memcmp(uBuf.UniStr.Buffer + (uBuf.UniStr.Length - sizeof(L"\\SamplingRuntime.dll") + sizeof(WCHAR)) / sizeof(WCHAR), 630 L"\\SamplingRuntime.dll", sizeof(L"\\SamplingRuntime.dll") - sizeof(WCHAR)) == 0 ) 631 { 632 if (hMyFile != hFile) 633 NtClose(hMyFile); 634 return g_pfnNtCreateSectionReal(phSection, fAccess, pObjAttribs, pcbSection, fProtect, fAttribs, hFile); 635 } 636 #endif 626 637 else 627 638 {
Note:
See TracChangeset
for help on using the changeset viewer.

