HardenedBSD/sys
Peter Wemm 33b3ac0633 Make the default behavior of local port assignment match traditional
systems (my last change did not mix well with some firewall
configurations).  As much as I dislike firewalls, this is one thing I
I was not prepared to break by default.. :-)

Allow the user to nominate one of three ranges of port numbers as
candidates for selecting a local address to replace a zero port number.
The ranges are selected via a setsockopt(s, IPPROTO_IP, IP_PORTRANGE, &arg)
call.  The three ranges are: default, high (to bypass firewalls) and
low (to get a port below 1024).

The default and high port ranges are sysctl settable under sysctl
net.inet.ip.portrange.*

This code also fixes a potential deadlock if the system accidently ran out
of local port addresses. It'd drop into an infinite while loop.

The secure port selection (for root) should reduce overheads and increase
reliability of rlogin/rlogind/rsh/rshd if they are modified to take
advantage of it.

Partly suggested by: pst
Reviewed by: wollman
1996-02-22 21:32:23 +00:00
..
alpha Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
amd64 Correct & Update the printing of CPU features. We have printed rubbish 1996-02-13 10:30:36 +00:00
compat/linux This is an extract of changes from what I am currently running... 1996-02-16 18:40:50 +00:00
compile
conf Kill XNS. 1996-02-13 18:16:31 +00:00
ddb Remove some now unused printfoids. 1996-01-23 21:17:59 +00:00
dev Remove limit of port I/O addresses to 65K, since PCI specifies 32 bit 1996-02-19 00:30:40 +00:00
fs Kill XNS. 1996-02-13 18:16:31 +00:00
geom Fix one warning and fix one bug found while looking at another warning (but 1996-01-31 11:25:46 +00:00
gnu Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
i386 . move out the error and status register def's for wt into 1996-02-22 00:31:49 +00:00
isa use devfs_add_devswf and avoid local variable. 1996-02-13 14:15:13 +00:00
isofs/cd9660
kern Fix a problem that select did not work with direct writes. Make 1996-02-22 03:33:52 +00:00
libkern Extend to handle all radix < 37 1996-01-24 20:51:26 +00:00
miscfs really stupid mistake that stopped devices from appearing on the fly in mounted 1996-02-18 07:29:53 +00:00
modules Correct some man page cross references and some file 1996-02-05 17:32:16 +00:00
msdosfs Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
net Make tundebug sysctl writable. 1996-02-09 09:23:56 +00:00
netinet Make the default behavior of local port assignment match traditional 1996-02-22 21:32:23 +00:00
netipx Kill XNS. 1996-02-13 18:16:31 +00:00
netns finish killing off netns. (For some reason, CVS `undeleted' these 1996-02-13 18:19:17 +00:00
nfs Kill XNS. 1996-02-13 18:16:31 +00:00
nfsclient Kill XNS. 1996-02-13 18:16:31 +00:00
nfsserver Kill XNS. 1996-02-13 18:16:31 +00:00
pc98/pc98 Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
pccard Removed un-used code. 1996-02-21 23:31:03 +00:00
pci Remove limit of port I/O addresses to 65K, since PCI specifies 32 bit 1996-02-19 00:30:40 +00:00
powerpc/include Add commands for ptrace get/set registers.. (Same numbers as NetBSD) 1996-01-24 18:51:48 +00:00
rpc Fix a bunch of spelling errors in the comment fields 1996-01-30 23:33:04 +00:00
scsi cosmetic fixes plus bring the cdevsw and bdevsw entries 1996-02-19 09:36:23 +00:00
sys Kill XNS. 1996-02-13 18:16:31 +00:00
tools
ufs Fix a bunch of spelling errors in the comment fields of 1996-01-30 23:02:38 +00:00
vm Add a "NO_SWAPPING" option to disable swapping. This was originally done 1996-02-22 10:57:37 +00:00
Makefile Removed almost all traces of libkern.a. The objects that were in 1995-12-26 13:58:31 +00:00