VirtualBox

Changeset 86318 in vbox for trunk


Ignore:
Timestamp:
Sep 28, 2020 12:33:34 PM (4 years ago)
Author:
vboxsync
Message:

GA:Linux: bugref:9671 Non-security issue with our Linux GA binaries

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r86222 r86318  
    75167516TEMPLATE_NewVBoxGuestR3Exe_LIBS += contract
    75177517endif
     7518# Use PIE and RELRO for the GA executables to support ASLR in the guest
     7519TEMPLATE_NewVBoxGuestR3Exe_CXXFLAGS.linux       += -fPIE
     7520TEMPLATE_NewVBoxGuestR3Exe_CFLAGS.linux         += -fPIE
     7521TEMPLATE_NewVBoxGuestR3Exe_LDFLAGS.linux        += -pie -fPIE -Wl,-z,relro,-z,now,-z,noexecstack
    75187522
    75197523#
  • trunk/src/VBox/Additions/x11/VBoxClient/display-drm.cpp

    r84609 r86318  
    162162                         unsigned cHeads)
    163163{
    164     uid_t guid = getuid();
    165     if (setreuid(0, 0) == -1)
     164    uid_t curuid = getuid();
     165    if (setreuid(0, 0) != 0)
    166166        perror("setreuid failed during drm ioctl.");
    167167    int rc;
     
    176176    if (RT_FAILURE(rc) && rc != VERR_INVALID_PARAMETER)
    177177        VBClLogFatalError("Failure updating layout, rc=%Rrc\n", rc);
    178     setreuid(guid, 0);
     178    if (setreuid(curuid, 0) != 0)
     179        perror("reset of setreuid failed after drm ioctl.");
    179180}
    180181
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