Which is more secure: Non-root Xorg or Wayland?

Generally, Wayland is considered more secure than Xorg, which is known to be less secure.

However, in Linux environments using systemd or elogind, you can run Xorg as a non-root user by executing startx from the console.
Does running Xorg as a non-privileged user provide the same level of security as Wayland? Or is Wayland still more secure in this situation?

No. Wayland is more secure for other reasons like isolating processes from other processes’ windows. In Xorg any process can access the contents of any other processes’ UIs.

7 Likes