[PATCH xserver] Search for DRI drivers at LIBGL_DRIVERS_PATH environment variable.

Alan Coopersmith alan.coopersmith at oracle.com
Tue Apr 12 18:08:39 UTC 2016


On 04/12/16 10:59 AM, Carlos Alberto Lopez Perez wrote:
>    * The Mesa driver uses this environment variable to override the
>      default compiled search path for DRI drivers.
>
>    * This is useful for testing purposes when the user needs to
>      override the system default one at runtime.

> +    dri_driver_path = getenv("LIBGL_DRIVERS_PATH");

Yeah, I really would rather not have a setuid-root program dlopen and execute
code from a user supplied path.  Can we have something in there to prevent
disasters, such as issetugid() or secure_getenv()?

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list