openssh for UWIN

Corinna Vinschen vinschen at redhat.com
Sat Jun 8 18:40:18 EST 2002


On Fri, Jun 07, 2002 at 06:10:58PM -0500, Ben Lindstrom wrote:
> 
> Ermm.. would it not be better just to redefine IPPORT_RESERVED to 0 for
> platforms that don't honor the idea?

I'm not sure if that works.  IPPORT_RESERVED still exists and has
a meaning for other machines which connect to a Windows machine
or vice versa.  So the concept of reserved ports is known (e. g.
functions like rresvport() exist) and important for connections
with non-Windows machines.  They just aren't restricted to super
users locally.  Which means, only conditionals as

  if (port < IPPORT_RESERVED && original_real_uid != 0)

have no meaning.  Besides that, it's still a flaw in OpenSSH, IMHO,
that the uid 0 is treated as super user implicitely instead of
having a (OS dependent) function call like is_superuser() or similiar.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen at redhat.com



More information about the openssh-unix-dev mailing list