Changeset 85128 in vbox
- Timestamp:
- Jul 8, 2020 11:58:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLibInternal.h
r85127 r85128 385 385 386 386 /** @copydoc RTPathAppPrivateNoArch */ 387 DECLHIDDEN(int) supR3HardenedPathAppPrivateNoArch(char *pszPath, size_t cchPath);387 DECLHIDDEN(int) supR3HardenedPathAppPrivateNoArch(char *pszPath, size_t cchPath); 388 388 /** @copydoc RTPathAppPrivateArch */ 389 DECLHIDDEN(int) supR3HardenedPathAppPrivateArch(char *pszPath, size_t cchPath);389 DECLHIDDEN(int) supR3HardenedPathAppPrivateArch(char *pszPath, size_t cchPath); 390 390 /** @copydoc RTPathSharedLibs */ 391 DECLHIDDEN(int) supR3HardenedPathAppSharedLibs(char *pszPath, size_t cchPath);391 DECLHIDDEN(int) supR3HardenedPathAppSharedLibs(char *pszPath, size_t cchPath); 392 392 /** @copydoc RTPathAppDocs */ 393 DECLHIDDEN(int) supR3HardenedPathAppDocs(char *pszPath, size_t cchPath);393 DECLHIDDEN(int) supR3HardenedPathAppDocs(char *pszPath, size_t cchPath); 394 394 /** @copydoc RTPathExecDir */ 395 DECLHIDDEN(int) supR3HardenedPathAppBin(char *pszPath, size_t cchPath);395 DECLHIDDEN(int) supR3HardenedPathAppBin(char *pszPath, size_t cchPath); 396 396 /** @copydoc RTPathFilename */ 397 DECLHIDDEN(char *) supR3HardenedPathFilename(const char *pszPath);397 DECLHIDDEN(char *) supR3HardenedPathFilename(const char *pszPath); 398 398 399 399 /** … … 422 422 * Display an error which may or may not be fatal. 423 423 */ 424 DECLHIDDEN(int) supR3HardenedErrorV(int rc, bool fFatal, const char *pszFormat, va_list va);424 DECLHIDDEN(int) supR3HardenedErrorV(int rc, bool fFatal, const char *pszFormat, va_list va); 425 425 426 426 /** 427 427 * Display an error which may or may not be fatal. 428 428 */ 429 DECLHIDDEN(int) supR3HardenedError(int rc, bool fFatal, const char *pszFormat, ...);429 DECLHIDDEN(int) supR3HardenedError(int rc, bool fFatal, const char *pszFormat, ...); 430 430 431 431 /** 432 432 * Open any startup log file specified in the argument. 433 433 */ 434 DECLHIDDEN(void) supR3HardenedOpenLog(int *pcArgs, char **papszArgs);434 DECLHIDDEN(void) supR3HardenedOpenLog(int *pcArgs, char **papszArgs); 435 435 436 436 /** 437 437 * Write to the startup log file. 438 438 */ 439 DECLHIDDEN(void) supR3HardenedLogV(const char *pszFormat, va_list va);439 DECLHIDDEN(void) supR3HardenedLogV(const char *pszFormat, va_list va); 440 440 441 441 /** 442 442 * Write to the startup log file. 443 443 */ 444 DECLHIDDEN(void) supR3HardenedLog(const char *pszFormat, ...);444 DECLHIDDEN(void) supR3HardenedLog(const char *pszFormat, ...); 445 445 446 446 /** 447 447 * Flushes the log file. 448 448 */ 449 DECLHIDDEN(void) supR3HardenedLogFlush(void);450 451 452 DECLHIDDEN(int) supR3HardenedVerifyAll(bool fFatal, const char *pszProgName, const char *pszExePath, uint32_t fMainFlags);453 DECLHIDDEN(int) supR3HardenedVerifyFixedDir(SUPINSTDIR enmDir, bool fFatal, PCSUPINSTFILE pFile);454 DECLHIDDEN(int) supR3HardenedVerifyFixedFile(const char *pszFilename, bool fFatal);455 DECLHIDDEN(int) supR3HardenedVerifyDir(const char *pszDirPath, bool fRecursive, bool fCheckFiles, PRTERRINFO pErrInfo);456 DECLHIDDEN(int) supR3HardenedVerifyFile(const char *pszFilename, RTHCUINTPTR hNativeFile, bool fMaybe3rdParty,457 PRTERRINFO pErrInfo);449 DECLHIDDEN(void) supR3HardenedLogFlush(void); 450 451 452 DECLHIDDEN(int) supR3HardenedVerifyAll(bool fFatal, const char *pszProgName, const char *pszExePath, uint32_t fMainFlags); 453 DECLHIDDEN(int) supR3HardenedVerifyFixedDir(SUPINSTDIR enmDir, bool fFatal, PCSUPINSTFILE pFile); 454 DECLHIDDEN(int) supR3HardenedVerifyFixedFile(const char *pszFilename, bool fFatal); 455 DECLHIDDEN(int) supR3HardenedVerifyDir(const char *pszDirPath, bool fRecursive, bool fCheckFiles, PRTERRINFO pErrInfo); 456 DECLHIDDEN(int) supR3HardenedVerifyFile(const char *pszFilename, RTHCUINTPTR hNativeFile, bool fMaybe3rdParty, 457 PRTERRINFO pErrInfo); 458 458 #if defined(RT_OS_DARWIN) || defined(RT_OS_LINUX) 459 DECLHIDDEN(int) supR3HardenedVerifyFileFollowSymlinks(const char *pszFilename, RTHCUINTPTR hNativeFile,460 461 #endif 462 DECLHIDDEN(void) supR3HardenedGetPreInitData(PSUPPREINITDATA pPreInitData);463 DECLHIDDEN(int) supR3HardenedRecvPreInitData(PCSUPPREINITDATA pPreInitData);459 DECLHIDDEN(int) supR3HardenedVerifyFileFollowSymlinks(const char *pszFilename, RTHCUINTPTR hNativeFile, 460 bool fMaybe3rdParty, PRTERRINFO pErrInfo); 461 #endif 462 DECLHIDDEN(void) supR3HardenedGetPreInitData(PSUPPREINITDATA pPreInitData); 463 DECLHIDDEN(int) supR3HardenedRecvPreInitData(PCSUPPREINITDATA pPreInitData); 464 464 465 465 #ifdef RT_OS_WINDOWS 466 DECLHIDDEN(void) supR3HardenedWinInit(uint32_t fFlags, bool fAvastKludge);467 DECLHIDDEN(void) supR3HardenedWinInitAppBin(uint32_t fFlags);468 DECLHIDDEN(void) supR3HardenedWinInitVersion(bool fEarlyInit);469 DECLHIDDEN(void) supR3HardenedWinInitImports(void);470 DECLHIDDEN(void) supR3HardenedWinModifyDllSearchPath(uint32_t fFlags, const char *pszAppBinPath);466 DECLHIDDEN(void) supR3HardenedWinInit(uint32_t fFlags, bool fAvastKludge); 467 DECLHIDDEN(void) supR3HardenedWinInitAppBin(uint32_t fFlags); 468 DECLHIDDEN(void) supR3HardenedWinInitVersion(bool fEarlyInit); 469 DECLHIDDEN(void) supR3HardenedWinInitImports(void); 470 DECLHIDDEN(void) supR3HardenedWinModifyDllSearchPath(uint32_t fFlags, const char *pszAppBinPath); 471 471 # ifdef IPRT_INCLUDED_nt_nt_h 472 DECLHIDDEN(void) supR3HardenedWinGetVeryEarlyImports(uintptr_t uNtDllAddr, PFNNTWAITFORSINGLEOBJECT *ppfnNtWaitForSingleObject,473 PFNNTSETEVENT *ppfnNtSetEvent);472 DECLHIDDEN(void) supR3HardenedWinGetVeryEarlyImports(uintptr_t uNtDllAddr, PFNNTWAITFORSINGLEOBJECT *ppfnNtWaitForSingleObject, 473 PFNNTSETEVENT *ppfnNtSetEvent); 474 474 # endif 475 DECLHIDDEN(void) supR3HardenedWinInitImportsEarly(uintptr_t uNtDllAddr);476 DECLHIDDEN(void) supR3HardenedWinInitSyscalls(bool fReportErrors, PRTERRINFO pErrInfo);477 DECLHIDDEN(PFNRT) supR3HardenedWinGetRealDllSymbol(const char *pszDll, const char *pszProcedure);478 DECLHIDDEN(void) supR3HardenedWinEnableThreadCreation(void);479 DECLHIDDEN(void) supR3HardenedWinResolveVerifyTrustApiAndHookThreadCreation(const char *pszProgName);480 DECLHIDDEN(void) supR3HardenedWinFlushLoaderCache();481 DECLHIDDEN(bool) supR3HardenedWinIsReSpawnNeeded(int iWhich, int cArgs, char **papszArgs);482 DECLHIDDEN(int) supR3HardenedWinReSpawn(int iWhich);475 DECLHIDDEN(void) supR3HardenedWinInitImportsEarly(uintptr_t uNtDllAddr); 476 DECLHIDDEN(void) supR3HardenedWinInitSyscalls(bool fReportErrors, PRTERRINFO pErrInfo); 477 DECLHIDDEN(PFNRT) supR3HardenedWinGetRealDllSymbol(const char *pszDll, const char *pszProcedure); 478 DECLHIDDEN(void) supR3HardenedWinEnableThreadCreation(void); 479 DECLHIDDEN(void) supR3HardenedWinResolveVerifyTrustApiAndHookThreadCreation(const char *pszProgName); 480 DECLHIDDEN(void) supR3HardenedWinFlushLoaderCache(); 481 DECLHIDDEN(bool) supR3HardenedWinIsReSpawnNeeded(int iWhich, int cArgs, char **papszArgs); 482 DECLHIDDEN(int) supR3HardenedWinReSpawn(int iWhich); 483 483 # ifdef _WINDEF_ 484 DECLHIDDEN(void) supR3HardenedWinCreateParentWatcherThread(HMODULE hVBoxRT);484 DECLHIDDEN(void) supR3HardenedWinCreateParentWatcherThread(HMODULE hVBoxRT); 485 485 # endif 486 DECLHIDDEN(void *) supR3HardenedWinLoadLibrary(const char *pszName, bool fSystem32Only, uint32_t fMainFlags);486 DECLHIDDEN(void *) supR3HardenedWinLoadLibrary(const char *pszName, bool fSystem32Only, uint32_t fMainFlags); 487 487 extern RTUTF16 g_wszSupLibHardenedExePath[1024]; 488 488 # ifdef RTPATH_MAX 489 489 extern char g_szSupLibHardenedExePath[RTPATH_MAX]; 490 490 # endif 491 DECLHIDDEN(void) supR3HardenedWinCompactHeaps(void);492 DECLHIDDEN(void) supR3HardenedMainOpenDevice(void);493 DECLHIDDEN(char *) supR3HardenedWinReadErrorInfoDevice(char *pszErrorInfo, size_t cbErrorInfo, const char *pszPrefix);494 DECLHIDDEN(void) supR3HardenedWinReportErrorToParent(const char *pszWhere, SUPINITOP enmWhat, int rc,495 const char *pszFormat, va_list va);491 DECLHIDDEN(void) supR3HardenedWinCompactHeaps(void); 492 DECLHIDDEN(void) supR3HardenedMainOpenDevice(void); 493 DECLHIDDEN(char *) supR3HardenedWinReadErrorInfoDevice(char *pszErrorInfo, size_t cbErrorInfo, const char *pszPrefix); 494 DECLHIDDEN(void) supR3HardenedWinReportErrorToParent(const char *pszWhere, SUPINITOP enmWhat, int rc, 495 const char *pszFormat, va_list va); 496 496 #else /* !RT_OS_WINDOWS */ 497 DECLHIDDEN(void) supR3HardenedPosixInit(void);497 DECLHIDDEN(void) supR3HardenedPosixInit(void); 498 498 #endif /* !RT_OS_WINDOWS */ 499 499 500 SUPR3DECL(int) 501 SUPR3DECL(int) 500 SUPR3DECL(int) supR3PageLock(void *pvStart, size_t cPages, PSUPPAGE paPages); 501 SUPR3DECL(int) supR3PageUnlock(void *pvStart); 502 502 503 503 RT_C_DECLS_END
Note:
See TracChangeset
for help on using the changeset viewer.