Submit Nicolai Hähnle's four-patch series improving the checks for
elevated privileges and culminating in using the runtime environmental
control LIBGL_DRIVERS_PATH when searching for driver .so's, as
Mesa, and hence Glamor, already do.

The fourth patch prevents a conflict that can arise if, for example,
different versions of a driver reside in user's LIBGL_DRIVER_PATH
(e.g. $HOME/local/lib/dri) and Xserver's (build-time) DRI_DRIVER_PATH
(by default /usr/local/lib64/dri).

Nicolai Hähnle (4):
  os: move xf86PrivsElevated here
  os: use PrivsElevated instead of a manual check
  xfree86: replace all uses of xf86PrivsElevated with PrivsElevated
  glx: honor LIBGL_DRIVERS_PATH when loading DRI drivers

 glx/glxdricommon.c             | 38 ++++++++++++++++++++---
 hw/xfree86/common/xf86Config.c |  2 +-
 hw/xfree86/common/xf86Init.c   | 69 ++----------------------------------------
 hw/xfree86/common/xf86Priv.h   |  2 --
 include/os.h                   |  3 ++
 os/utils.c                     | 65 ++++++++++++++++++++++++++++++++++++++-
 6 files changed, 105 insertions(+), 74 deletions(-)


_______________________________________________ X.Org development

Reply via email to