Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 382903

Summary: x11-apps/xdm should pass -nolisten tcp by default
Product: Gentoo Linux Reporter: William Throwe <wtt6>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal CC: mmokrejs
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description William Throwe 2011-09-14 06:44:54 UTC
It would be nice if X didn't listen on tcp by default.  This can be accomplished by adding "-nolisten tcp" to /etc/X11/xdm/Xservers .

In bug 193044 this was discussed and it was decided to default to -nolisten tcp, but this was only implemented for xinit.  I am requesting that this be added to xdm as well.

Reproducible: Always
Comment 1 Martin Mokrejš 2012-02-02 16:39:58 UTC
While I was subscribed to the already closed bug #193044 years ago I see that it is still not fixed in my eyes. I do use xdm and have:

root # cat /etc/X11/xinit/xserverrc
#!/bin/sh
exec /usr/bin/X -nolisten tcp "$@"
root #

root # netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *:x11                   *:*                     LISTEN     

I have at the moment pretty much a newly installed system with few customizations. Therefore, it seems the port is opened by default. I do not need it, where can I disable it? ;)
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-06-16 15:49:59 UTC

*** This bug has been marked as a duplicate of bug 334033 ***