VirtualBox

Changeset 89018 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
May 12, 2021 4:28:56 PM (4 years ago)
Author:
vboxsync
Message:

SUPDev,IPRT: On darwin allow Mac dev certs as long as it is a build using test signing. bugref:10004

Location:
trunk/src/VBox/HostDrivers/Support
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r88587 r89018  
    635635 if defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE)
    636636  VBoxDrv_DEFS.darwin    += VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION
     637  ifeq ($(VBOX_SIGNING_MODE),test)
     638   VBoxDrv_DEFS.darwin   += VBOX_WITH_DARWIN_R0_TEST_SIGN
     639  endif
    637640 endif
    638641 ifdef VBOX_WITH_NETFLT
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r87700 r89018  
    13201320        uint32_t cDevIdApp  = 0;
    13211321        uint32_t cDevIdKext = 0;
     1322        uint32_t cDevIdMacDev = 0;
    13221323        for (uint32_t i = 0; i < pCert->TbsCertificate.T3.Extensions.cItems; i++)
    13231324        {
     
    13371338                                       "Dev ID kext certificate extension is not flagged critical");
    13381339            }
    1339         }
     1340            else if (RTAsn1ObjId_CompareWithString(&pExt->ExtnId, RTCR_APPLE_CS_DEVID_MAC_SW_DEV_OID) == 0)
     1341            {
     1342                cDevIdMacDev++;
     1343                if (!pExt->Critical.fValue)
     1344                    rc = RTErrInfoSetF(pErrInfo, VERR_GENERAL_FAILURE,
     1345                                       "Dev ID MAC SW dev certificate extension is not flagged critical");
     1346            }
     1347        }
     1348# ifdef VBOX_WITH_DARWIN_R0_TEST_SIGN
     1349        /*
     1350         * Mac application software development certs do not have the usually required extensions.
     1351         */
     1352        if (cDevIdMacDev)
     1353        {
     1354            cDevIdApp++;
     1355            cDevIdKext++;
     1356        }
     1357# endif
    13401358        if (cDevIdApp == 0)
    13411359            rc = RTErrInfoSetF(pErrInfo, VERR_GENERAL_FAILURE,
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