Subject: xsrc/30489: /usr/X11R6/lib/X11/xdm/Xwilling must be executable
To: None <xsrc-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Rhialto <rhialto@falu.nl>
List: netbsd-bugs
Date: 06/10/2005 08:25:01
>Number:         30489
>Category:       xsrc
>Synopsis:       /usr/X11R6/lib/X11/xdm/Xwilling must be executable
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 10 08:25:01 +0000 2005
>Originator:     Rhialto
>Release:        NetBSD 2.0.2
>Organization:
	
>Environment:
	
	
System: NetBSD radl.falu.nl 2.0.2 NetBSD 2.0.2 (RADLs Doordringend Onjuiste Akkoord) #3: Wed Jun 8 23:15:34 CEST 2005 rhialto@radl.falu.nl:/usr/src/sys/arch/amd64/compile/RADL amd64
Architecture: x86_64
Machine: amd64
>Description:
	If /usr/X11R6/lib/X11/xdm/Xwilling is not executable, remote
	logins via xdm will not work, and in fact, xdm will loop
	infinitely and use 100% cpu. At that point, it will not even
	terminate if interrupted.
>How-To-Repeat:

radl:~$ sudo xdm -config /etc/X11/xdm-config -nodaemon -debug 10
DisplayManager.errorLogFile/DisplayManager.ErrorLogFile value  /var/log/xdm
DisplayManager.daemonMode/DisplayManager.DaemonMode value  false
DisplayManager.pidFile/DisplayManager.PidFile value  /var/run/xdm.pid
DisplayManager.lockPidFile/DisplayManager.LockPidFile value true
DisplayManager.authDir/DisplayManager.authDir value /usr/X11R6/lib/X11/xdm
DisplayManager.autoRescan/DisplayManager.AutoRescan value true
DisplayManager.removeDomainname/DisplayManager.RemoveDomainname value true
DisplayManager.keyFile/DisplayManager.KeyFile value  /usr/X11R6/lib/X11/xdm/xdm-keys
DisplayManager.accessFile/DisplayManager.AccessFile value  /etc/X11/Xaccess
DisplayManager.exportList/DisplayManager.ExportList value 
DisplayManager.greeterLib/DisplayManager.GreeterLib value /usr/X11R6/lib/X11/xdm/libXdmGreet.so
DisplayManager.choiceTimeout/DisplayManager.ChoiceTimeout value 15
DisplayManager.sourceAddress/DisplayManager.SourceAddress value false
DisplayManager.willing/DisplayManager.Willing value  su -m nobody -c /usr/X11R6/lib/X11/xdm/Xwilling
Created chooser socket 4
creating socket to listen on port 177 of address 0.0.0.0
WaitForSomething
select returns 1.  Rescan: 0  ChildReady: 0
ProcessRequestSocket
header: 1 1 1
ConvertAddr returning 0 for family 2
all_query_respond: conntype=0, addr=10.0.0.10, len=4
/usr/X11R6/lib/X11/xdm/Xwilling: Permission denied.
^CShutting down entire manager
^CShutting down entire manager

	(meanwhile xdm is NOT shutting down, it needs a kill -9)

>Fix:
	chmod a+x /usr/X11R6/lib/X11/xdm/Xwilling

	is merely a workaround, since xdm should not fail in this way if
	this script is not executable.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert                            --  rhialto/at/falu.nl
\X/ Hi! I'm a signature virus! Copy me to your .signature to help me spread!

>Unformatted: