VirtualBox

Changeset 104166 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 4, 2024 6:45:02 PM (10 months ago)
Author:
vboxsync
Message:

SUPR3HardenedMain: Prevent hardened binaries from starting in unknown location (fix Linux packages), bugref:10626.

File:
1 edited

Legend:

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

    r104160 r104166  
    13471347    /* Make sure binary is located in known location (unix-like hosts only). */
    13481348#if defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD) || defined(RT_OS_SOLARIS) || defined(RT_OS_DARWIN)
    1349     if (strncmp(RTPATH_APP_PRIVATE, g_szSupLibHardenedAppBinPath, sizeof(RTPATH_APP_PRIVATE)) != 0)
     1349    if (strncmp(RTPATH_APP_PRIVATE_ARCH, g_szSupLibHardenedAppBinPath, sizeof(RTPATH_APP_PRIVATE_ARCH)) != 0)
    13501350        supR3HardenedFatal("supR3HardenedExecDir: refusing to start binary from unknown location %s\n",
    13511351                           g_szSupLibHardenedAppBinPath);
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