- Timestamp:
- Aug 20, 2014 3:25:37 AM (11 years ago)
- svn:sync-xref-src-repo-rev:
- 95604
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/hardenedmain.cpp
r49892 r52424 57 57 } 58 58 59 return SUPR3HardenedMain("VirtualBox", fFlags , argc, argv, envp);59 return SUPR3HardenedMain("VirtualBox", fFlags | SUPSECMAIN_FLAGS_TRUSTED_ERROR, argc, argv, envp); 60 60 } 61 61 -
trunk/src/VBox/HostDrivers/Support/SUPR3HardenedMain.cpp
r52403 r52424 135 135 /** The program name. */ 136 136 static const char *g_pszSupLibHardenedProgName; 137 /** The flags passed to SUPR3HardenedMain. */ 138 static uint32_t g_fSupHardenedMain; 137 139 138 140 #ifdef SUP_HARDENED_SUID … … 1538 1540 { 1539 1541 /* 1542 * Don't bother if the main() function didn't advertise any TrustedError 1543 * export. It's both a waste of time and may trigger additional problems, 1544 * confusing or obscuring the original issue. 1545 */ 1546 if (!(g_fSupHardenedMain & SUPSECMAIN_FLAGS_TRUSTED_ERROR)) 1547 return NULL; 1548 1549 /* 1540 1550 * Construct the name. 1541 1551 */ … … 1646 1656 */ 1647 1657 g_pszSupLibHardenedProgName = pszProgName; 1658 g_fSupHardenedMain = fFlags; 1648 1659 g_SupPreInitData.u32Magic = SUPPREINITDATA_MAGIC; 1649 1660 g_SupPreInitData.Data.hDevice = SUP_HDEVICE_NIL;
Note:
See TracChangeset
for help on using the changeset viewer.