Updated Cray patch against openssh SNAP-20010725

William L. Jones jones at mail.utexas.edu
Fri Jul 27 00:11:12 EST 2001


This patch fixes my botched attempted to patch deattack.c.
I created a bsd-cray.h file and cleaned up a few error cases
in bsd-cray.c.  Fixed cray_setup call to pass uid and login name
in session.c and moved its call so that its called with root privs.

Its been tested on a irix, sun, aix, unicos(SV1) and unicosmk(T3E)
systems.

If you are building this on a T3E you may have to edit the Makefile
and edit out "-lrpc -lyp -lrpc".  There a patch for sco that
incorrectly assume that you have a yp library if you 
have a rpc library.  I will submit a generic fix to this list
latter since it is generic problem.


I decided to go into a little more detail about the patches to
each module:

 channels.c    - Use a new subroutine from packet.c to get a singed
	            integer.   The original bsd code use the fact
	            that you can set a 32bit unsigned int to a 32 bit
                 signed variable and recover the sign bit.
 	            CRAY ints are 64 bit so the trick can't work.
 configure.in  - Add OSSH_PATH_ENTROPY_PROG(PROG_SAR, sar).
		       I missed this in the last patch.  It is need for the
		       sar entry in  ssh_prng_cmds.in 
 deattack.c    - Modified to not depend on u_int16_t
		       being 16bit in size.   
 packet.c      - Add new subroutine to return an explicit signed 
		       integer.  
 scp.c         - Modified to use alarm instead of setitimer. 
		       Unicos does not support setitier. 
 serverloop.c	- Modified sigchld_handler to only reset 
		       SIGCLD if HAVE_SIGACTION is not set.  This is the
		       only case its needs to be reset, the side effect
   	            is it fixes the problem with a infinite signal loop
 			  under unicos and unicosmk.
		       Modified waitpid to keep trying if it gets an EINTR,
 		       this can happen due to job termination signal on unicos and
		       unicosmk.
 session.c     - Added unicos/unicosmk job termination signal handler. 
		       Add TMPDIR envireent variable.
			  Add code to set up a unicos/unicosmk job and system
		       limits.
 sshpty.c      - Unicos/unicosk pty support.

In openbsd-compat directory:
 bindresvport.c & - Code around the fact that the address of  sin_port 
 rresvport.c.       really is 64 bit aligned on a SV1.
 bsd-cray.c       - New - cray support routines.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: craypatch-20010725
Type: application/octet-stream
Size: 15439 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010726/14d5bb9e/attachment.obj 


More information about the openssh-unix-dev mailing list