Bug#785495: xorg: Xorg does not honour absense of "-nolisten tcp"

2015-05-16 Thread Antti Järvinen
Package: xorg
Version: 1:7.7+9
Severity: normal

Dear Maintainer,

After todays update of xserver-xorg-core:amd64 (1.16.4-1 -> 1.17.1-2)
X server is not listening at tcp port 6000 any more. 

I have gdm3 as my display manager and I've tried carefully to configure it
so that X is started without "-nolisten tcp" flags as I frequently 
connect X clients from remote boxen via tcp. This still seems to happen, 
as

$ ps ax | grep X
 1988 tty7 Ss+0:04 /usr/bin/Xorg :0 -novtswitch -background none 
-noreset -verbose 3 -auth /var/run/gdm3/auth-for-Debian-gdm-IvBQDp/database 
-seat seat0 vt7
 2848 pts/1S+ 0:00 grep X
$

so there is no -nolisten flag. Telnetting to localhost port 6000
gives me "Connection refused" as is also indicated by X clients from
remote hosts.  Man page of xorg states that
"   TCPIP
   Xorg listens on port 6000+n, where n is the display  number.   This
   connection  type can be disabled with the -nolisten option (see the
   Xserver(1) man page for details)."
so either documentation is wrong, X server is wrong or gdm3 does not know
how to properly communicate the tcp listening requirement to X server. 
With gdm3 the setting is done in file /etc/gdm3/daemon.conf by adding
lines

[security]
DisallowTCP=false

and this has worked all right before the update. Gdm3 version is 3.14.1-7 
if that matters.

Thank you for attention, 

--
Antti Järvinen


-- Package-specific info:
X server symlink status:

lrwxrwxrwx 1 root root 13 Apr 19  2011 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 2384712 May  5 02:24 /usr/bin/Xorg

Diversions concerning libGL are in place

diversion of /usr/lib/arm-linux-gnueabihf/libGL.so.1.2.0 to 
/usr/lib/mesa-diverted/arm-linux-gnueabihf/libGL.so.1.2.0 by glx-diversions
diversion of /usr/lib/libGL.so.1 to /usr/lib/mesa-diverted/libGL.so.1 by 
glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2.0.0 to 
/usr/lib/mesa-diverted/arm-linux-gnueabihf/libGLESv2.so.2.0.0 by glx-diversions
diversion of /usr/lib/libGLESv2.so.2 to /usr/lib/mesa-diverted/libGLESv2.so.2 
by glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGL.so to 
/usr/lib/mesa-diverted/arm-linux-gnueabihf/libGL.so by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so.1.1.0 to 
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGLESv1_CM.so.1.1.0 by glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so to 
/usr/lib/mesa-diverted/arm-linux-gnueabihf/libGLESv1_CM.so by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGLESv2.so.2 to 
/usr/lib/mesa-diverted/i386-linux-gnu/libGLESv2.so.2 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGLESv2.so.2 to 
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGLESv2.so.2 by glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGL.so.1.2 to 
/usr/lib/mesa-diverted/arm-linux-gnueabihf/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/libGLESv1_CM.so.1.1.0 to 
/usr/lib/mesa-diverted/libGLESv1_CM.so.1.1.0 by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGLESv1_CM.so.1 to 
/usr/lib/mesa-diverted/i386-linux-gnu/libGLESv1_CM.so.1 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGLESv1_CM.so to 
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGLESv1_CM.so by glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGLESv1_CM.so.1.1.0 to 
/usr/lib/mesa-diverted/arm-linux-gnueabihf/libGLESv1_CM.so.1.1.0 by 
glx-diversions
diversion of /usr/lib/libGL.so.1.2.0 to /usr/lib/mesa-diverted/libGL.so.1.2.0 
by glx-diversions
diversion of /usr/lib/libGLESv2.so to /usr/lib/mesa-diverted/libGLESv2.so by 
glx-diversions
diversion of /usr/lib/libGL.so.1.2 to /usr/lib/mesa-diverted/libGL.so.1.2 by 
glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGLESv1_CM.so.1.1.0 to 
/usr/lib/mesa-diverted/i386-linux-gnu/libGLESv1_CM.so.1.1.0 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1.2.0 to 
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0 by glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGLESv2.so to 
/usr/lib/mesa-diverted/arm-linux-gnueabihf/libGLESv2.so by glx-diversions
diversion of /usr/lib/libGL.so to /usr/lib/mesa-diverted/libGL.so by 
glx-diversions
diversion of /usr/lib/arm-linux-gnueabihf/libGLESv2.so.2 to 
/usr/lib/mesa-diverted/arm-linux-gnueabihf/libGLESv2.so.2 by glx-diversions
diversion of /usr/lib/x86_64-linux-gnu/libGL.so.1.2 to 
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2 by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGLESv2.so to 
/usr/lib/mesa-diverted/i386-linux-gnu/libGLESv2.so by glx-diversions
diversion of /usr/lib/libGLESv1_CM.so to /usr/lib/mesa-diverted/libGLESv1_CM.so 
by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGL.so.1.2.0 to 
/usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.2.0 by glx-diversions
diversion of /usr/lib/i386-linux-gnu/libGL.so to 
/usr/lib/mes

Bug#785495: xorg: Xorg does not honour absense of "-nolisten tcp"

2015-05-19 Thread Antti Järvinen
Julien Cristau writes:

 > -nolisten tcp is now the default:
 > http://cgit.freedesktop.org/xorg/xserver/commit/?id=cc59be38
 > 
 > I don't know if gdm has a way to pass -listen options.
 > 
 > You should really use ssh forwarding rather than remote X11 directly,
 > though.

Yes Sir,

bug 785495 appears to be closed but please find attached patch anyway, works
for me, has only 3 additional lines of code.

--
Antti Järvinen



tcp_nolisten.patch
Description: Patch enabling flag -listen tcp