VirtualBox

Changeset 51826 in vbox for trunk/src


Ignore:
Timestamp:
Jul 2, 2014 10:56:54 PM (11 years ago)
Author:
vboxsync
Message:

Fixed the first timestamp hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyImage-win.cpp

    r51824 r51826  
    151151
    152152#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.  */
    154155static uint64_t             g_uBuildTimestampHack = 0;
    155156#endif
     
    866867            if (RT_SUCCESS(rc))
    867868            {
    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)
    870873                    pNtViRdr->uTimestamp = g_uBuildTimestampHack;
    871874#endif
     
    873876                rc = RTLdrVerifySignature(hLdrMod, supHardNtViCallback, pNtViRdr, pErrInfo);
    874877
    875 #ifdef IN_RING3
     878#ifdef IN_RING3 /* Hack alert! (see above) */
    876879                if ((fFlags & SUPHNTVI_F_REQUIRE_BUILD_CERT) && g_uBuildTimestampHack == 0 && RT_SUCCESS(rc))
    877880                    g_uBuildTimestampHack = pNtViRdr->uTimestamp;
    878881#endif
    879 
    880882
    881883                /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette