Changeset 59810 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Feb 25, 2016 2:48:09 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 105692
- Location:
- trunk/src/VBox/HostDrivers/Support
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h
r56817 r59810 452 452 DECLHIDDEN(void) supR3HardenedWinInit(uint32_t fFlags, bool fAvastKludge); 453 453 DECLHIDDEN(void) supR3HardenedWinInitAppBin(uint32_t fFlags); 454 DECLHIDDEN(void) supR3HardenedWinInitVersion( void);454 DECLHIDDEN(void) supR3HardenedWinInitVersion(bool fEarlyInit); 455 455 DECLHIDDEN(void) supR3HardenedWinInitImports(void); 456 456 DECLHIDDEN(void) supR3HardenedWinModifyDllSearchPath(uint32_t fFlags, const char *pszAppBinPath); -
trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyImage-win.cpp
r58731 r59810 2772 2772 * Called from suplibHardenedWindowsMain and suplibOsInit. 2773 2773 */ 2774 DECLHIDDEN(void) supR3HardenedWinInitVersion( void)2774 DECLHIDDEN(void) supR3HardenedWinInitVersion(bool fEarly) 2775 2775 { 2776 2776 /* … … 2778 2778 * GetVersion might not be telling the whole truth (8.0 on 8.1 depending on 2779 2779 * the application manifest). 2780 * 2781 * Note! Windows 10 build 14267+ touches BSS when calling RtlGetVersion, so we 2782 * have to use the fallback for the call from the early init code. 2780 2783 */ 2781 2784 OSVERSIONINFOEXW NtVerInfo; … … 2783 2786 RT_ZERO(NtVerInfo); 2784 2787 NtVerInfo.dwOSVersionInfoSize = sizeof(RTL_OSVERSIONINFOEXW); 2785 if (!NT_SUCCESS(RtlGetVersion((PRTL_OSVERSIONINFOW)&NtVerInfo))) 2788 if ( fEarly 2789 || !NT_SUCCESS(RtlGetVersion((PRTL_OSVERSIONINFOW)&NtVerInfo))) 2786 2790 { 2787 2791 RT_ZERO(NtVerInfo); … … 2789 2793 NtVerInfo.dwMajorVersion = pPeb->OSMajorVersion; 2790 2794 NtVerInfo.dwMinorVersion = pPeb->OSMinorVersion; 2791 NtVerInfo.dwBuildNumber = pPeb->OS PlatformId;2795 NtVerInfo.dwBuildNumber = pPeb->OSBuildNumber; 2792 2796 } 2793 2797 -
trunk/src/VBox/HostDrivers/Support/win/SUPLib-win.cpp
r57358 r59810 93 93 { 94 94 #if defined(VBOX_WITH_HARDENING) && !defined(IN_SUP_HARDENED_R3) && !defined(IN_SUP_R3_STATIC) 95 supR3HardenedWinInitVersion( );95 supR3HardenedWinInitVersion(false /*fEarly*/); 96 96 int rc = supHardenedWinInitImageVerifier(NULL); 97 97 if (RT_FAILURE(rc)) -
trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp
r58730 r59810 5480 5480 * SUPHardenedVerfiyImage-win.cpp.) 5481 5481 */ 5482 supR3HardenedWinInitVersion( );5482 supR3HardenedWinInitVersion(false /*fEarly*/); 5483 5483 g_enmSupR3HardenedMainState = SUPR3HARDENEDMAINSTATE_WIN_VERSION_INITIALIZED; 5484 5484 … … 5704 5704 * Init g_uNtVerCombined as well as we can at this point. 5705 5705 */ 5706 supR3HardenedWinInitVersion( );5706 supR3HardenedWinInitVersion(true /*fEarly*/); 5707 5707 5708 5708 /* … … 5719 5719 char **papszArgs = suplibCommandLineToArgvWStub(CmdLineStr.Buffer, CmdLineStr.Length / sizeof(WCHAR), &cArgs); 5720 5720 supR3HardenedOpenLog(&cArgs, papszArgs); 5721 SUP_DPRINTF(("supR3HardenedVmProcessInit: uNtDllAddr=%p \n", uNtDllAddr));5721 SUP_DPRINTF(("supR3HardenedVmProcessInit: uNtDllAddr=%p g_uNtVerCombined=%#x\n", uNtDllAddr, g_uNtVerCombined)); 5722 5722 5723 5723 /*
Note:
See TracChangeset
for help on using the changeset viewer.