mesa/include/GL
Dave Airlie 466a0b2e49 dri: add another get shm variant.
When Brian in 02c3dad0f3 restricted
the shm permissions it means we hit the fallback paths in some
scenarios we hadn't before.

When you use Xephyr to xdmcp from one user to another the new perms
stop the X server (running as user a) attaching to the SHM segments
from gnome-shell (running as user b).

In this case however only the GLX side of the code had insight into this,
and the dri could was meant of fall back, and it worked for put image
fine but the get image path was broken, since there was no indication
in the broken case of the need to fallback.

This adds a return type to a new interface member that lets the
caller know it has to fallback.

Fixes: 02c3dad0f3 ("Call shmget() with permission 0600 instead of 0777")

Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3823>
2020-02-25 01:23:01 +00:00
..
internal dri: add another get shm variant. 2020-02-25 01:23:01 +00:00
gl.h GL: drop symbols mangling support 2019-10-10 21:40:48 +01:00
glcorearb.h mesa/gl: Sync with Khronos registry 2019-09-16 16:50:43 +01:00
glext.h mesa/gl: Sync with Khronos registry 2019-09-16 16:50:43 +01:00
glx.h GL: drop symbols mangling support 2019-10-10 21:40:48 +01:00
glxext.h mesa/gl: Sync with Khronos registry 2019-09-16 16:50:43 +01:00
mesa_glinterop.h egl: Fix inclusion of egl.h+mesa_glinterop.h 2017-08-21 14:45:44 -07:00
osmesa.h osmesa: add new OSMesaCreateContextAttribs function 2015-12-16 19:38:51 -07:00
wglext.h include: sync GL headers with registry 2019-09-05 09:26:15 +02:00