aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/extras/Mesa.patches_6.4.2/5003_dlopen-escalation.patch
blob: 263fee624b9732ff7246fba1e8ddb097f8c8382e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: Mesa_6.4.2/src/glx/x11/dri_glx.c
===================================================================
--- Mesa_6.4.2.orig/src/glx/x11/dri_glx.c
+++ Mesa_6.4.2/src/glx/x11/dri_glx.c
@@ -196,7 +196,7 @@ static __DRIdriver *OpenDriver(const cha
       }
    }
 
-   if (geteuid() == getuid()) {
+   if (geteuid() == getuid() && getgid() == getegid()) {
       /* don't allow setuid apps to use LIBGL_DRIVERS_PATH */
       libPaths = getenv("LIBGL_DRIVERS_PATH");
       if (!libPaths)