FS#59025 - [xorg-server] xserver by default listens on tcp sockets
Attached to Project:
Arch Linux
Opened by Tommy Schmitt (spinka) - Friday, 15 June 2018, 20:29 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 17 June 2018, 19:19 GMT
Opened by Tommy Schmitt (spinka) - Friday, 15 June 2018, 20:29 GMT
Last edited by Andreas Radke (AndyRTR) - Sunday, 17 June 2018, 19:19 GMT
|
Details
Description:
Since xorg-xserver 1.20, xserver by default listens on tcp/tcp6 sockets on all network interfaces on port 6000+n (n=display number). Probably this happens due to missing 'listen-tcp' option in new, experimental meson build system[1]. In autotools it always defaulted to disabled[2]. It's not always noticeable as many tools (sddm,gdm,lightdm) pass explicit '-nolisten tcp' xserver argument. It can be seen while using xwayland under kwin wayland session[3][4] (test by running: 'kwin_wayland --xwayland'). Listening on tcp sockets on all network interfaces may be a security issue. To fix this you can either patch meson build system or switch back to autotools which is more mature. [1] https://cgit.freedesktop.org/xorg/xserver/tree/meson_options.txt [2] https://cgit.freedesktop.org/xorg/xserver/tree/configure.ac#n422 [3] https://bugs.kde.org/show_bug.cgi?id=395419#c9 [4] https://bugs.freedesktop.org/show_bug.cgi?id=106573 Steps to reproduce: 1. start xserver without '-nolisten tcp' argument. 2. Check for listening programs on 6000+ port (i.e. 'sudo ss -tunwrap') |
This task depends upon
I tested it and it works as expected.