OpenSSH_4.3p1 configure patch

Darren Tucker dtucker at zip.com.au
Wed Feb 8 12:41:21 EST 2006


On Tue, Feb 07, 2006 at 05:18:42PM -0800, Tim Rice wrote:
> I don't like the monitor.c patch. The loggong will dissapear without
> jumping through chroot logging hoops.
> 
> How about this instead?
> Skip the monitor.c patch and use this.
> 
> --- auth2.c.old	2005-09-29 16:59:21.603708001 -0700
> +++ auth2.c	2006-02-07 17:09:36.211231000 -0800
> @@ -243,7 +243,9 @@
>  #endif /* _UNICOS */
>  
>  	/* Log before sending the reply */
> +#ifndef DISABLE_FD_PASSING
>  	auth_log(authctxt, authenticated, method, " ssh2");
> +#endif
>  
>  	if (authctxt->postponed)
>  		return;

Won't that not log at all when DISABLE_FD_PASSING is defined and
privsep=no?  Maybe:

#ifndef DISABLE_FD_PASSING
	if (!use_privsep)
#endif
		auth_log(authctxt, authenticated, method, " ssh2");

It still looks like there's got to be a nicer solution in there somewhere
rather than something that's composed almost entirely of corner cases :-)

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list