launcher-direct: allow non-root on non-seat0

Graphics / Wayland / Weston - Pekka Paalanen [collabora.com] - 11 December 2020 10:18 UTC

If the launcher is told to use a non-default seat (not seat0), there will not be a VT or tty to set up. VT/tty setup requires privileges.

This patch allows a non-root user to use launcher-direct, provided that the seat is not the default. There is still the problem of opening DRM and input devices, which is left for the user to solve.

This mode of operation is useful for developers who can set up a secondary seat on their machine. You can run Weston/DRM from a terminal window by pointing it to a non-default seat. You have to arrange a DRM device by having an extra unused graphics card in the machine. You also need dedicated input devices. Both the DRM device and the input devices must be assigned to the secondary seat and device file permissions adjusted so that they can be opened.

Doing so is an obvious security risk, as input could easily be eavesdropped.

4e9f4d04 launcher-direct: allow non-root on non-seat0
libweston/launcher-direct.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

Upstream: cgit.freedesktop.org


  • Share