VirtualBox

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/Frontends/VirtualBox
Files:
2 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}
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