- Timestamp:
- Jul 2, 2014 10:56:54 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyImage-win.cpp
r51824 r51826 151 151 152 152 #ifdef IN_RING3 153 /** Timestamp hack working around issues with old DLLs that we ship. */ 153 /** Timestamp hack working around issues with old DLLs that we ship. 154 * See supHardenedWinVerifyImageByHandle() for details. */ 154 155 static uint64_t g_uBuildTimestampHack = 0; 155 156 #endif … … 866 867 if (RT_SUCCESS(rc)) 867 868 { 868 #ifdef IN_RING3 869 if ((fFlags & SUPHNTVI_F_REQUIRE_BUILD_CERT) && pNtViRdr->uTimestamp < g_uBuildTimestampHack) 869 #ifdef IN_RING3 /* Hack alert! (see above) */ 870 if ( (fFlags & SUPHNTVI_F_REQUIRE_KERNEL_CODE_SIGNING) 871 && (fFlags & SUPHNTVI_F_REQUIRE_SIGNATURE_ENFORCEMENT) 872 && pNtViRdr->uTimestamp < g_uBuildTimestampHack) 870 873 pNtViRdr->uTimestamp = g_uBuildTimestampHack; 871 874 #endif … … 873 876 rc = RTLdrVerifySignature(hLdrMod, supHardNtViCallback, pNtViRdr, pErrInfo); 874 877 875 #ifdef IN_RING3 878 #ifdef IN_RING3 /* Hack alert! (see above) */ 876 879 if ((fFlags & SUPHNTVI_F_REQUIRE_BUILD_CERT) && g_uBuildTimestampHack == 0 && RT_SUCCESS(rc)) 877 880 g_uBuildTimestampHack = pNtViRdr->uTimestamp; 878 881 #endif 879 880 882 881 883 /*
Note:
See TracChangeset
for help on using the changeset viewer.