HardenedBSD/lib
Bill Paul ef8f52ad53 'Fix' for esoteric misfeature discovered while searching for another bug:
select() returns EINVAL if you try to feed it a value of FD_SETSIZE greater
that 256. You can apparently adjust this by specifying a larger value of
FD_SETSIZE when configuring your kernel. However, if you set the maximum
number of open file descriptors per process to some value greater than
the FD_SETSIZE value that select() expects, many selects() within the RPC
library code will be botched because _rpc_dtablesize() will return
invalid numbers. This is to say that it will return the upper descriptor
table size limit which can be much higher than 256. Unless select() is
prepared to expect this 'unusually' high value, it will fail. (A good
example of this can be seen with NIS enabled: if you type 'unlimit' at
the shell prompt and then run any command that does NIS calls, you'll
be bombarded with errors from clnttcp_create().)

A temporary fix for this is to clamp the value returned by _rpc_dtablesize()
at FD_SETSIZE (as defined in <sys/types.h> (256)). I suppose the Right
Thing would be to provide some mechanism for select() to dynamically
adjust itself to handle FD_SETSIZE values larger than 256, but it's a
bit late in the game for that. Hopefully 256 file descriptors will be enough
to keep RPC happy for now.
1995-04-04 05:53:22 +00:00
..
csu/i386 Install the dlopen.3 manpage. 1995-03-30 06:40:31 +00:00
libc 'Fix' for esoteric misfeature discovered while searching for another bug: 1995-04-04 05:53:22 +00:00
libcom_err
libcompat
libcrypt
libcurses Use __tty_fileno instead of STDERR_FILENO when detecting window size 1995-03-28 22:20:19 +00:00
libedit
libf2c
libF77
libforms Tweak a few things just to show how form traversal might work fully. 1995-03-28 10:42:09 +00:00
libI77
libkvm
libm
libmd
libmytinfo Remove duplicates: parm rindex & scroll right 1995-03-27 05:13:31 +00:00
libncurses Fix bug using CSR for partial scrolling 1995-03-27 01:19:14 +00:00
libpam/modules
libpcap
libresolv
librpc
librpcsvc
libscsi
libskey Change strtok() to strsep(), strtok() usage is depricated 1995-03-24 17:27:22 +00:00
libss
libtelnet
libterm
libtermcap Continue of previous fix: eliminate backslashes too. 1995-03-26 00:47:02 +00:00
libutil
liby
msun
ncurses/ncurses
rpcsvc
Makefile
Makefile.inc