Changeset 84607 in vbox for trunk/src/VBox/Additions
- Timestamp:
- May 29, 2020 10:44:19 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/display-drm.cpp
r84593 r84607 106 106 static void drmConnect(struct DRMCONTEXT *pContext) 107 107 { 108 uid_t guid = getuid();109 if (setreuid(0, 0) == -1)110 {111 perror("setuid failed drm device open.");112 }113 108 unsigned i; 114 109 RTFILE hDevice; … … 150 145 } 151 146 pContext->hDevice = hDevice; 152 setreuid(guid, 0);153 147 } 154 148 … … 171 165 if (setreuid(0, 0) == -1) 172 166 { 173 perror("setuid failed drm device open."); 174 } 175 167 perror("setreuid failed during drm ioctl."); 168 } 176 169 int rc; 177 170 struct DRMVMWUPDATELAYOUT ioctlLayout;
Note:
See TracChangeset
for help on using the changeset viewer.