VirtualBox

Changeset 83033 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Feb 10, 2020 1:40:54 PM (5 years ago)
Author:
vboxsync
Message:

/Config.kmk,/Makefile.kmk,Installer/darwin,FE/QT,SUPHard: Eliminated the symlinks under Resources/VirtualBoxVM.app to avoid confusing codesign and notarization. bugref:9466
Note! Best to do a clean build on mac (or at a minimum rm -Rf out/darwin.amd64/*/dist/VirtualBox.app/Contents/Frameworks/ out/darwin.amd64/*/dist/VirtualBox.app/Contents/plugins/).

  • SUPHard: Added new location SUPSECMAIN_FLAGS_LOC_OSX_HLP_APP (darwin only) for indicating a helper application and that hardened dylib and the rest of VirtualBox isn't in the executable directory.
  • SUPHard: Added a corresponding internal path ID kSupID_AppMacHelper (darwin only) for finding VirtualBoxVM for verification now that it is no longer in the main app binary directory.
  • /Config.kmk: Run install_name_tool after linking Qt binaries on darwin fix the Qt import paths (@executable_path/../Frameworks/ doesn't work for VirtualBoxVM any more).
  • /Makefile.kmk: Run install_name_tool during installation of Qt frameworks and plugins to use @rpath in non-hardened builds and the absolute paths in hardened ones (latter done by Installer/darwin/Makefile.kmk previously).
  • FE/Qt,Installer/darwin: Adjustments and path hacks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/sup.h

    r82968 r83033  
    11841184/** The hardened DLL has a "TrustedError" function (see FNSUPTRUSTEDERROR). */
    11851185#define SUPSECMAIN_FLAGS_TRUSTED_ERROR      RT_BIT_32(1)
    1186 /** Hack for making VirtualBoxVM use VirtualBox.dylib on Mac OS X. */
     1186/** Hack for making VirtualBoxVM use VirtualBox.dylib on Mac OS X.
     1187 * @note Not used since 6.0  */
    11871188#define SUPSECMAIN_FLAGS_OSX_VM_APP         RT_BIT_32(2)
    11881189/** Program binary location mask. */
    1189 #define SUPSECMAIN_FLAGS_LOC_MASK           UINT32_C(0x00000010)
     1190#define SUPSECMAIN_FLAGS_LOC_MASK           UINT32_C(0x00000030)
    11901191/** Default binary location is the application binary directory.  Does
    11911192 * not need to be given explicitly (it's 0).  */
     
    11941195 * default application binary directory. */
    11951196#define SUPSECMAIN_FLAGS_LOC_TESTCASE       UINT32_C(0x00000010)
    1196 /** The first process. */
    1197 #define SUPSECMAIN_FLAGS_FIRST_PROCESS      UINT32_C(0x00000020)
     1197/** The binary is located in a nested application bundle under Resources/ in the
     1198 * main Mac OS X application (think Resources/VirtualBoxVM.app).  */
     1199#define SUPSECMAIN_FLAGS_LOC_OSX_HLP_APP    UINT32_C(0x00000020)
     1200/** The first process.
     1201 * @internal  */
     1202#define SUPSECMAIN_FLAGS_FIRST_PROCESS      UINT32_C(0x00000100)
    11981203/** @} */
    11991204
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