Skip to content
Commit f51c06d8 authored by Olivier Fourdan's avatar Olivier Fourdan
Browse files

xwayland: Check permissions on /tmp/.X11-unix

For Xwayland, mutter creates the sockets in the standard /tmp/.X11-unix
directory.

Yet, if that directory already exists, it may have been created by
another user with full control over the created socket.

To avoid that issue, if the directory /tmp/.X11-unix already exists,
check that the permissions are as we expect, i.e. the directory belongs
to either root or the user herself, is writable and has the sticky bit.

Thanks to fabian@ritter-vogt.de for reporting that issue.

https://gitlab.gnome.org/GNOME/mutter/-/issues/1708
(cherry picked from commit 3a08fcf2accb4b42fe85f98ddf83223200db928e)

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1788>
parent dbfdde19
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment