VirtualBox

Changeset 72247 in vbox


Ignore:
Timestamp:
May 17, 2018 5:28:18 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt and HostDriver/Support: bugref:9049: Hardening support for split GUI functionality (at least Win host).

Location:
trunk/src/VBox
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk

    r72246 r72247  
    8989 VirtualBoxHardenedVM_SOURCES.win = src/platform/win/VirtualBoxHardened.rc
    9090 VirtualBoxHardenedVM_NAME = VirtualBoxVM
     91 VirtualBoxHardenedVM_DEFS = VBOX_GUI_WITH_SHARED_LIBRARY
    9192 VirtualBoxHardenedVM_LDFLAGS.win = /SUBSYSTEM:$(if-expr "$(KBUILD_TYPE)" != "release",console,windows)
    9293 src/platform/win/VirtualBoxHardened.rc_INCS  = $(VirtualBox_0_OUTDIR)
  • trunk/src/VBox/Frontends/VirtualBox/src/hardenedmain.cpp

    r72219 r72247  
    6565    uint32_t fFlags = (fStartVM && !fSeparateProcess) ? 0 : SUPSECMAIN_FLAGS_DONT_OPEN_DEV;
    6666
    67 #ifdef VBOX_RUNTIME_UI
     67#ifndef VBOX_GUI_WITH_SHARED_LIBRARY
     68# ifdef VBOX_RUNTIME_UI
    6869    return SUPR3HardenedMain("VirtualBoxVM",
    6970                             fFlags | SUPSECMAIN_FLAGS_TRUSTED_ERROR | SUPSECMAIN_FLAGS_OSX_VM_APP,
    7071                             argc, argv, envp);
     72# else
     73    return SUPR3HardenedMain("VirtualBox",
     74                             fFlags | SUPSECMAIN_FLAGS_TRUSTED_ERROR,
     75                             argc, argv, envp);
     76# endif
    7177#else
    72     return SUPR3HardenedMain("VirtualBox", fFlags | SUPSECMAIN_FLAGS_TRUSTED_ERROR, argc, argv, envp);
     78    return SUPR3HardenedMain("VirtualBoxVM",
     79                             fFlags | SUPSECMAIN_FLAGS_TRUSTED_ERROR,
     80                             argc, argv, envp);
    7381#endif
    7482}
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r72005 r72247  
    148148        $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) \
    149149        $(if $(VBOX_WITH_REM),VBOX_WITH_REM,) \
     150        $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
    150151        VBOX_PERMIT_MORE \
    151152        VBOX_PERMIT_EVEN_MORE
     
    193194        $(if $(VBOX_WITHOUT_DEBUGGER_CHECKS),VBOX_WITHOUT_DEBUGGER_CHECKS,) \
    194195        $(if $(VBOX_PERMIT_VISUAL_STUDIO_PROFILING),VBOX_PERMIT_VISUAL_STUDIO_PROFILING,) \
     196        $(if $(VBOX_GUI_WITH_SHARED_LIBRARY),VBOX_GUI_WITH_SHARED_LIBRARY) \
    195197        VBOX_PERMIT_MORE \
    196198        VBOX_PERMIT_EVEN_MORE
     
    629631  VBoxDrv_DEFS           += VBOX_WITH_EFLAGS_AC_SET_IN_VBOXDRV IPRT_WITH_EFLAGS_AC_PRESERVING
    630632 endif
     633 ifdef VBOX_GUI_WITH_SHARED_LIBRARY
     634  VBoxDrv_DEFS           += VBOX_GUI_WITH_SHARED_LIBRARY
     635 endif
    631636
    632637 VBoxDrv_INCS             = . $(VBoxDrv_0_OUTDIR)
  • trunk/src/VBox/HostDrivers/Support/SUPR3HardenedVerify.cpp

    r69500 r72247  
    199199//#ifdef VBOX_WITH_QTGUI
    200200    {   kSupIFT_Exe,  kSupID_AppBin,             true, "VirtualBox" SUPLIB_EXE_SUFF },
     201# ifndef VBOX_GUI_WITH_SHARED_LIBRARY
    201202    {   kSupIFT_Dll,  kSupID_AppPrivArch,        true, "VirtualBox" SUPLIB_DLL_SUFF },
    202 # ifdef RT_OS_DARWIN
     203#  ifdef RT_OS_DARWIN
    203204    {   kSupIFT_Exe,  kSupID_AppBin,             true, "VirtualBoxVM" SUPLIB_EXE_SUFF },
     205#  endif
     206# else
     207    {   kSupIFT_Exe,  kSupID_AppBin,             true, "VirtualBoxVM" SUPLIB_EXE_SUFF },
     208    {   kSupIFT_Dll,  kSupID_AppPrivArch,        true, "VirtualBoxVM" SUPLIB_DLL_SUFF },
     209    {   kSupIFT_Dll,  kSupID_AppPrivArch,        true, "VBoxGlobal" SUPLIB_DLL_SUFF },
    204210# endif
    205211# if !defined(RT_OS_DARWIN) && !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2)
  • trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp

    r69774 r72247  
    213213{
    214214    "VBoxHeadless.exe",
     215#ifndef VBOX_GUI_WITH_SHARED_LIBRARY
    215216    "VirtualBox.exe",
     217#else
     218    "VirtualBoxVM.exe",
     219#endif
    216220    "VBoxSDL.exe",
    217221    "VBoxNetDHCP.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