VirtualBox

Ignore:
Timestamp:
Dec 2, 2021 12:56:20 PM (3 years ago)
Author:
vboxsync
Message:

SUP: Added SUPR3INIT_F_DRIVERLESS as a forced driverless option and an associated SUPR3IsDriverless(). The SUPR3INIT_F_DRIVERLESS flag requires the host specific init code to allow driverless, only done so on linux thus far. Started adjusting some of the SUPR3 APIs for driverless operation. [missing hardening flag] bugref:10138

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp

    r92613 r92705  
    18651865    SUPINITOP       enmWhat = kSupInitOp_Driver;
    18661866    uint32_t        fFlags  = SUPR3INIT_F_UNRESTRICTED;
     1867    if (g_fSupHardenedMain & SUPSECMAIN_FLAGS_DRIVERLESS)
     1868        fFlags |= SUPR3INIT_F_DRIVERLESS;
    18671869    if (g_fSupHardenedMain & SUPSECMAIN_FLAGS_DRIVERLESS_IEM_ALLOWED)
    18681870        fFlags |= SUPR3INIT_F_DRIVERLESS_IEM_ALLOWED;
     
    23532355    if (!(fFlags & SUPSECMAIN_FLAGS_DONT_OPEN_DEV))
    23542356    {
     2357        if (fFlags & SUPSECMAIN_FLAGS_DRIVERLESS)
     2358            fRtInit |= (SUPR3INIT_F_DRIVERLESS              << RTR3INIT_FLAGS_SUPLIB_SHIFT) | RTR3INIT_FLAGS_TRY_SUPLIB;
    23552359        if (fFlags & SUPSECMAIN_FLAGS_DRIVERLESS_IEM_ALLOWED)
    23562360            fRtInit |= (SUPR3INIT_F_DRIVERLESS_IEM_ALLOWED  << RTR3INIT_FLAGS_SUPLIB_SHIFT) | RTR3INIT_FLAGS_TRY_SUPLIB;
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