Changeset 92705 in vbox
- Timestamp:
- Dec 2, 2021 12:56:20 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/sup.h
r92697 r92705 1258 1258 * main Mac OS X application (think Resources/VirtualBoxVM.app). */ 1259 1259 #define SUPSECMAIN_FLAGS_LOC_OSX_HLP_APP UINT32_C(0x00000020) 1260 /** Force driverless mode. */ 1261 #define SUPSECMAIN_FLAGS_DRIVERLESS RT_BIT_32(8) 1260 1262 /** Driverless IEM-only mode is allowed, so don't fail fatally just because 1261 1263 * the VBox support driver is unavailable. */ 1262 #define SUPSECMAIN_FLAGS_DRIVERLESS_IEM_ALLOWED RT_BIT_32( 8)1264 #define SUPSECMAIN_FLAGS_DRIVERLESS_IEM_ALLOWED RT_BIT_32(9) 1263 1265 #ifdef VBOX_WITH_DRIVERLESS_NEM_FALLBACK 1264 1266 /** Driverless NEM is a fallback posibility, so don't fail fatally just … … 1266 1268 * This may imply checking NEM requirements, depending on the host. 1267 1269 * @note Not supported on Windows. */ 1268 # define SUPSECMAIN_FLAGS_DRIVERLESS_NEM_FALLBACK RT_BIT_32( 9)1270 # define SUPSECMAIN_FLAGS_DRIVERLESS_NEM_FALLBACK RT_BIT_32(10) 1269 1271 #endif 1270 1272 -
trunk/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp
r92613 r92705 1865 1865 SUPINITOP enmWhat = kSupInitOp_Driver; 1866 1866 uint32_t fFlags = SUPR3INIT_F_UNRESTRICTED; 1867 if (g_fSupHardenedMain & SUPSECMAIN_FLAGS_DRIVERLESS) 1868 fFlags |= SUPR3INIT_F_DRIVERLESS; 1867 1869 if (g_fSupHardenedMain & SUPSECMAIN_FLAGS_DRIVERLESS_IEM_ALLOWED) 1868 1870 fFlags |= SUPR3INIT_F_DRIVERLESS_IEM_ALLOWED; … … 2353 2355 if (!(fFlags & SUPSECMAIN_FLAGS_DONT_OPEN_DEV)) 2354 2356 { 2357 if (fFlags & SUPSECMAIN_FLAGS_DRIVERLESS) 2358 fRtInit |= (SUPR3INIT_F_DRIVERLESS << RTR3INIT_FLAGS_SUPLIB_SHIFT) | RTR3INIT_FLAGS_TRY_SUPLIB; 2355 2359 if (fFlags & SUPSECMAIN_FLAGS_DRIVERLESS_IEM_ALLOWED) 2356 2360 fRtInit |= (SUPR3INIT_F_DRIVERLESS_IEM_ALLOWED << RTR3INIT_FLAGS_SUPLIB_SHIFT) | RTR3INIT_FLAGS_TRY_SUPLIB;
Note:
See TracChangeset
for help on using the changeset viewer.