VirtualBox

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


Ignore:
Timestamp:
Aug 14, 2015 2:08:02 PM (9 years ago)
Author:
vboxsync
Message:

tstGIP-2: Hardening.

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

Legend:

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

    r56817 r57351  
    108108 *       the time being we're building the linux packages with SharedLib pointing to
    109109 *       AppPrivArch (lazy bird).
     110 *
     111 * @remarks If you add executables here, you might need to update
     112 *          g_apszSupNtVpAllowedVmExes in SUPHardenedVerifyProcess-win.cpp.
    110113 */
    111114static SUPINSTFILE const    g_aSupInstallFiles[] =
     
    232235        {   kSupIFT_TestDll, kSupID_Testcase, true, a_szName SUPLIB_DLL_SUFF }
    233236    HARDENED_TESTCASE_ENTRY("tstCFGM"),
     237    HARDENED_TESTCASE_ENTRY("tstGIP-2"),
    234238    HARDENED_TESTCASE_ENTRY("tstIntNet-1"),
    235239    HARDENED_TESTCASE_ENTRY("tstMMHyperHeap"),
  • trunk/src/VBox/HostDrivers/Support/testcase/Makefile.kmk

    r56293 r57351  
    4141        tstLow \
    4242        tstPin \
    43         tstGIP-2 \
    4443        tstGetPagingMode \
    4544        tstSupLoadModule \
     
    8786tstPage_SOURCES       = tstPage.cpp
    8887
    89 tstGIP-2_TEMPLATE     = VBOXR3TSTEXE
    90 tstGIP-2_SOURCES      = tstGIP-2.cpp
     88#
     89# tstGIP-2
     90#
     91ifdef VBOX_WITH_TESTCASES
     92 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     93  PROGRAMS += tstGIP-2Hardened
     94  DLLS += tstGIP-2
     95 else
     96  PROGRAMS += tstGIP-2
     97 endif
     98endif
     99
     100tstGIP-2Hardened_TEMPLATE = VBoxR3HardenedTstExe
     101tstGIP-2Hardened_DEFS = PROGRAM_NAME_STR=\"tstGIP-2\"
     102tstGIP-2Hardened_SOURCES = ../SUPR3HardenedMainTemplateTestcase.cpp
     103tstGIP-2Hardened_NAME = tstGIP-2
     104
     105if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
     106  tstGIP-2_TEMPLATE := VBoxR3HardenedTstDll
     107else
     108  tstGIP-2_TEMPLATE := VBOXR3TSTEXE
     109endif
     110tstGIP-2_SOURCES = tstGIP-2.cpp
    91111
    92112tstGetPagingMode_TEMPLATE = VBOXR3TSTEXE
  • trunk/src/VBox/HostDrivers/Support/testcase/tstGIP-2.cpp

    r57349 r57351  
    4141#include <iprt/x86.h>
    4242
    43 int main(int argc, char **argv)
     43
     44/**
     45 *  Entry point.
     46 */
     47extern "C" DECLEXPORT(int) TrustedMain(int argc, char **argv)
    4448{
    4549    RTR3InitExe(argc, &argv, 0);
     
    310314}
    311315
     316#ifndef VBOX_WITH_HARDENING
     317/**
     318 * Main entry point.
     319 */
     320int main(int argc, char **argv)
     321{
     322    return TrustedMain(argc, argv);
     323}
     324#endif /* !VBOX_WITH_HARDENING */
     325
     326
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp

    r56293 r57351  
    206206/**
    207207 * VBox executables allowed to start VMs.
    208  * @remarks Remember to keep in sync with SUPR3HardenedVerify.cpp.
     208 * @remarks Remember to keep in sync with g_aSupInstallFiles in
     209 *          SUPR3HardenedVerify.cpp.
    209210 */
    210211static const char *g_apszSupNtVpAllowedVmExes[] =
     
    222223    "tstVMREQ.exe",
    223224    "tstCFGM.exe",
     225    "tstGIP-2.exe",
    224226    "tstIntNet-1.exe",
    225227    "tstMMHyperHeap.exe",
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