Commits on Source (4)
-
Olivier Fourdan authored
Most X servers, even those which do not have specific configuration files, can use the directory specified by SERVER_MISC_CONFIG_PATH when they have either the XSECURITY or XSELINUX extensions enabled, or when support for DTRACE is enabled at build time, because this is also where the "protocol.txt" file is searched for at runtime. Unfortunately, the SERVER_MISC_CONFIG_PATH is set from serverconfigdir which is hardcoded in the build system to "$prefix/$libdir/xorg", and all X server builds share the same path. That makes it harder for different X servers such as Xwayland to install in the same path without sharing the same server configuration path (and hence the same "protocol.txt" file). Allow for the customization of server configuration path from the build options so that different X servers can use completely different and independent paths. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
-
This is preparation work to restrict access to Xwayland properties. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.com>
-
Xwayland offers a way for the window and compositing manager to hold the surface commits through an X11 property _XWAYLAND_ALLOW_COMMITS. Xwayland, however, does not actually check if the X11 client changing the value of that property is indeed the X11 window manager, so any X11 client can potentially interfere with the Wayland surface mechanism. Restrict access to the _XWAYLAND_ALLOW_COMMITS property to read-only, except for the X11 window manager and the Xserver itself. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Daniel Stone <daniels@collabora.com> Reviewed-by:
Pekka Paalanen <pekka.paalanen@collabora.com>
-
The Wayland interfaces have a "name" field that we can use instead of hardcoding their name. Change the code to use that name instead of the static strings. This was inspired by a similar change in mutter by Robert Mader <robert.mader@collabora.com>. Signed-off-by:
Olivier Fourdan <ofourdan@redhat.com> Reviewed-by:
Peter Hutterer <peter.hutterer@who-t.net>
Showing
- hw/xwayland/xwayland-glamor-eglstream.c 3 additions, 3 deletionshw/xwayland/xwayland-glamor-eglstream.c
- hw/xwayland/xwayland-glamor-gbm.c 2 additions, 2 deletionshw/xwayland/xwayland-glamor-gbm.c
- hw/xwayland/xwayland-input.c 7 additions, 7 deletionshw/xwayland/xwayland-input.c
- hw/xwayland/xwayland-screen.c 39 additions, 9 deletionshw/xwayland/xwayland-screen.c
- meson.build 4 additions, 1 deletionmeson.build
- meson_options.txt 2 additions, 0 deletionsmeson_options.txt