🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10169

SunOS 4.0 inhibits use of local, privileged ports

#10169
From: Vic Abell
Date: Thu, 12 Jan 1989 08:27
14 lines
1346 bytes
Because of the way that SunOS 4.0's bindresvport() function of libc
allocates privileged ports, a local service from inetd.conf using ports in
the 600-1023 range can sometimes be prevented from running because some
other server (e. g., the lock manager) has reserved its well known port.
Since the allocation of privileged ports in the 512-1023 range pre-dates
SunOS, it is not practical to reassign them.

One simple solution is to make sure that inetd completes its
initialization before any Sun servers are started.  This means starting
inetd first in /etc/rc.local and making a slight mod to inetd to delay its
background fork until it has completed its initialization.

A better and more complex solution is to modify bindresvport.c to make it
avoid assigning ports that have service names.
Technical Details
Message-ID: <8901041936.AA00574@mace.cc.purdue.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!ncar!mailrus!cornell!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!ames!ncar!mailrus!cornell!uw-beaver!rice!sun-spots-request
From: abe@mace.cc.purdue.edu (Vic Abell)
Newsgroups: comp.sys.sun
Subject: SunOS 4.0 inhibits use of local, privileged ports
Message-ID: <8901041936.AA00574@mace.cc.purdue.edu>
Date: 12 Jan 89 08:27:13 GMT
Sender: usenet@rice.edu
Organization: The Stepstone Corporation, Sandy Hook, CT
Lines: 14
Approved: Sun-Spots@rice.edu
Original-Date: Wed, 04 Jan 89 14:36:51 -0500
X-Sun-Spots-Digest: Volume 7, Issue 96, message 11 of 15