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

Julien Cristau jcristau at debian.org
Tue Apr 12 18:08:02 UTC 2016


On Tue, Apr 12, 2016 at 19:59:14 +0200, 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.
> 
> Signed-off-by: Carlos Alberto Lopez Perez <clopez at igalia.com>
> ---
>  glx/glxdricommon.c | 40 ++++++++++++++++++++++++++++++----------
>  1 file changed, 30 insertions(+), 10 deletions(-)
> 
NAK.  The server doesn't trust the environment today, and there are
still cases where we are setuid, so I don't think we should go down this
road.  Or if we do, at least make it if (geteuid() != 0).

Not to mention repurposing somebody else's env var feels wrong...

Cheers,
Julien


More information about the xorg-devel mailing list