- Timestamp:
- Sep 28, 2020 12:33:34 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r86222 r86318 7516 7516 TEMPLATE_NewVBoxGuestR3Exe_LIBS += contract 7517 7517 endif 7518 # Use PIE and RELRO for the GA executables to support ASLR in the guest 7519 TEMPLATE_NewVBoxGuestR3Exe_CXXFLAGS.linux += -fPIE 7520 TEMPLATE_NewVBoxGuestR3Exe_CFLAGS.linux += -fPIE 7521 TEMPLATE_NewVBoxGuestR3Exe_LDFLAGS.linux += -pie -fPIE -Wl,-z,relro,-z,now,-z,noexecstack 7518 7522 7519 7523 # -
trunk/src/VBox/Additions/x11/VBoxClient/display-drm.cpp
r84609 r86318 162 162 unsigned cHeads) 163 163 { 164 uid_t guid = getuid();165 if (setreuid(0, 0) == -1)164 uid_t curuid = getuid(); 165 if (setreuid(0, 0) != 0) 166 166 perror("setreuid failed during drm ioctl."); 167 167 int rc; … … 176 176 if (RT_FAILURE(rc) && rc != VERR_INVALID_PARAMETER) 177 177 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."); 179 180 } 180 181
Note:
See TracChangeset
for help on using the changeset viewer.