Changeset 51978 in vbox for trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp
- Timestamp:
- Jul 11, 2014 2:57:40 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp
r51970 r51978 80 80 #endif 81 81 82 /******************************************************************************* 83 * Global Variables * 84 *******************************************************************************/ 85 static bool g_fHardenedVerifyInited = false; 86 87 88 int suplibOsHardenedVerifyInit(void) 89 { 90 if (!g_fHardenedVerifyInited) 91 { 92 #if defined(VBOX_WITH_HARDENING) && !defined(IN_SUP_HARDENED_R3) && !defined(IN_SUP_R3_STATIC) 93 supR3HardenedWinInitVersion(); 94 int rc = supHardenedWinInitImageVerifier(NULL); 95 if (RT_FAILURE(rc)) 96 return rc; 97 supR3HardenedWinResolveVerifyTrustApiAndHookThreadCreation(); 98 #endif 99 g_fHardenedVerifyInited = true; 100 } 101 return VINF_SUCCESS; 102 } 103 104 105 int suplibOsHardenedVerifyTerm(void) 106 { 107 /** @todo free resources... */ 108 return VINF_SUCCESS; 109 } 110 82 111 83 112 int suplibOsInit(PSUPLIBDATA pThis, bool fPreInited, bool fUnrestricted) … … 86 115 * Make sure the image verifier is fully initialized. 87 116 */ 88 #if defined(VBOX_WITH_HARDENING) && !defined(IN_SUP_HARDENED_R3) && !defined(IN_SUP_R3_STATIC) 89 supR3HardenedWinInitVersion(); 90 int rc = supHardenedWinInitImageVerifier(NULL); 117 int rc = suplibOsHardenedVerifyInit(); 91 118 if (RT_FAILURE(rc)) 92 119 return rc; 93 supR3HardenedWinResolveVerifyTrustApiAndHookThreadCreation();94 #endif95 120 96 121 /* … … 199 224 } 200 225 226 201 227 #ifndef IN_SUP_HARDENED_R3 202 228
Note:
See TracChangeset
for help on using the changeset viewer.