Re: Reserving "special" port numbers in the kernel ?

From: Chris Wedgwood (cw@f00f.org)
Date: Sat Nov 16 2002 - 19:03:54 EST


On Fri, Nov 15, 2002 at 04:00:37PM -0800, Arun Sharma wrote:

> One of the Intel server platforms has a magic port number (623) that
> it uses for remote server management. However, neither the kernel
> nor glibc are aware of this special port.

Odd.

charon:~% grep -c 623 /etc/services
0

rfc1700:

[...]

WELL KNOWN PORT NUMBERS

The Well Known Ports are controlled and assigned by the IANA and on
most systems can only be used by system (or root) processes or by
programs executed by privileged users.

[...]

npmp-gui 611/tcp npmp-gui
npmp-gui 611/udp npmp-gui
# John Barnes <jbarnes@crl.com>
ginad 634/tcp ginad
ginad 634/udp ginad

I don't see port 623 in there. Where is this documented?

> As a result, when someone requests a privileged port using
> bindresvport(3), they may get this port back and bad things happen.

Indeed. It seems like they should be able to get this port.

What bad things happen?

> Has anyone run into this or similar problems before ? Thoughts on
> what's the right place to handle this issue ?

User-land. Fix broken applications.

  --cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:18 EST