freebsd-src/usr.sbin
Poul-Henning Kamp 02c589d9e9 This may apply to all known versions of inetd.
For a tcp/nowait connection, inetd invokes accept(2) for
each pending connection; this call returns a file descriptor
associated with the new connection.

Twelve years ago, code was added to inetd to detect "failing
servers".  The heuristic that identifies a failing server is
one that has been invoked a large number of times over some
specified interval (e.g., more than 128 ftp services started
in 60 seconds may flag the ftp service as "failing").  These
compile-time constants vary depending on vendor.

The problem is that, when a failing server is detected, the
code neglects to close the file descriptor returned by the
accept(2).

Security-Implications:
I suppose someone with ample free time could orchestrate an
attack buy pummeling services until the inetd process finally
runs out of file descriptors thus rendering inetd useless to
any new connections that require a new descriptor.

PR:		7286
Reviewed by:	phk
Submitted by:	Jeff Forys <jeff@forys.cranbury.nj.us>
1998-07-22 05:53:53 +00:00
..
ac /var/log/wtmp entries for ptys are treated differently in ac, since 1998-07-02 05:34:08 +00:00
accton Use err(3). 1997-09-01 06:12:37 +00:00
adduser Always ask for homedir. 1998-06-07 18:38:32 +00:00
amd Don't assume that time_t is long. 1998-06-29 17:25:46 +00:00
apm .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
apmconf .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
arp Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
bad144 Fixed printing of and comparison with d_typename[]. It is not always 1997-12-12 18:01:57 +00:00
bootparamd #include <arpa/inet.h> for inet_* definitions. 1998-06-12 14:39:00 +00:00
cdcontrol Mention all the environment variables that can be used 1998-06-13 19:28:51 +00:00
chkgrp Inserted missing .Bl in the FILES section. 1998-07-14 07:55:27 +00:00
chown Backed out previous commit. chown(8) doesn't follow symlinks by 1998-05-03 04:17:48 +00:00
chroot Remove unused #include. Statisize usage(). 1997-09-15 06:32:01 +00:00
ckdist Put includes in alphabetical order. various cosmetics. 1997-09-15 06:33:52 +00:00
config Dump out ISA device resources for alpha. 1998-07-21 21:47:51 +00:00
cron Fixed printf format errors. 1998-07-06 20:28:08 +00:00
crunch .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
ctm Spellint fixes. 1998-06-10 12:33:41 +00:00
dev_mkdb Use err(3) instead of local redefinition. 1997-09-17 06:26:06 +00:00
diskpart Fix: too many arguments passed to fprintf(). 1997-11-18 05:56:03 +00:00
dpt Undouble. 1998-05-01 15:51:23 +00:00
edquota Use err(3). Add prototypes. 1997-09-17 06:29:23 +00:00
fdcontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
fdformat fd(4) referenced in HISTORY has nothing to do with floppy disks; 1998-04-20 11:34:47 +00:00
fdwrite Typo. 1998-06-27 21:29:35 +00:00
inetd This may apply to all known versions of inetd. 1998-07-22 05:53:53 +00:00
iostat Use err(3). 1997-09-19 06:27:30 +00:00
ipfstat Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipftest Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipmon Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipnat Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipresend Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipsend Added y.tab.h to SRCS. This should have been used to get dependencies 1998-05-05 13:16:35 +00:00
iptest Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
IPXrouted Major IPXrouted rework. 1997-07-06 07:38:36 +00:00
kbdcontrol Fix the search sequence for keymaps. 1998-05-05 19:02:01 +00:00
kbdmap .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
kernbb Typo fix. 1997-10-12 11:51:25 +00:00
keyadmin Use err(3). Make it -Wall friendly. Typo fix in man page. 1997-09-23 06:32:33 +00:00
keyserv Fixed the usual dependency bugs. This Makefile accidentally usually 1998-05-09 13:32:37 +00:00
kgmon Use err(3). Add usage() and prototypes. 1997-09-23 06:38:54 +00:00
kvm_mkdb Always support an elf kernel when given one. 1998-06-12 16:25:18 +00:00
lpr Remove -Werror from CFLAGS on i386 because with -nostdinc gcc spits 1998-06-11 03:53:23 +00:00
lptcontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
manctl Stylistic changes in man page. 1997-09-25 06:38:17 +00:00
mixer fix a core dump problem when you don't give -f a parameter... also compare 1998-05-07 14:13:16 +00:00
mount_portalfs Correct use of .Nm. Spelling. Add rcsid and remove unused #includes. 1998-07-06 07:19:27 +00:00
mountd Correct improper use of .Sm. Document -d flag. Correct use of .Nm. Remove 1998-07-15 06:21:41 +00:00
moused Reviewed by: Amancio 1998-06-14 20:05:27 +00:00
mptable .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
mrouted Don't assume that time_t is long. Fixed printf format errors (don't 1998-06-29 17:51:39 +00:00
mtest Use AF_LINK rather than AF_UNSPEC to set an ethernet multicast address. 1998-05-28 07:31:30 +00:00
mtree There is no need to make nochange imply ignore as well. 1998-06-10 06:45:08 +00:00
named bsd.dep.mk doesn't know about -idirafter, and doesn't parse -I the 1998-06-11 10:42:58 +00:00
named.reload These are no longer shipped with bind, but are a well established 1998-05-03 05:11:52 +00:00
named.restart These are no longer shipped with bind, but are a well established 1998-05-03 05:11:52 +00:00
natd Fix inconsistent port numbering in man page. 1998-07-15 03:32:45 +00:00
ncrcontrol Remove printing of variable "reselect" which is not really maintained 1998-07-12 20:30:11 +00:00
ndc Update for bind-8. Also use /proc in preference to the (seemingly) always 1998-05-03 05:14:04 +00:00
newsyslog Add optional config file field: signal number to send (defaulted to HUP) 1998-06-09 18:24:04 +00:00
nfsd Do not dot terminate syslog() string. Remove unused #includes. Add rcsid. -Wall. 1998-07-15 06:33:15 +00:00
nologin Add Id. .Nm nologin -> .Nm. 1998-07-15 06:37:07 +00:00
nslookup Simplified by using new lex rules. 1998-05-04 20:00:14 +00:00
nsupdate New bind8 program 1998-05-03 05:10:23 +00:00
pccard Keywords "iosize" and "memsize" are unused since 1.5. Removed. 1998-04-25 18:10:10 +00:00
pciconf Sync usage string with man page. 1997-10-06 11:38:30 +00:00
pcvt $@ deprecated, use long form. 1998-06-09 05:14:43 +00:00
periodic .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
pkg_install Clarify "Cannot delete file as directory" errmessage. 1998-07-18 22:19:11 +00:00
pnpinfo Style police. 1998-03-12 12:54:25 +00:00
portmap Don't clobber errno when reaping child processes. 1998-04-26 01:00:00 +00:00
ppp Add missing braces - without them, the IP & label were mis-selected 1998-07-19 21:07:24 +00:00
pppctl .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENT 1998-05-13 07:57:49 +00:00
pppd Forgot to resync the RELNOTES to 2.3.5 1998-06-23 21:41:58 +00:00
pppstats Remove illegal ".Nm". This file is still using -man, not -mdoc. 1998-07-09 04:53:11 +00:00
procctl Use err(3). Change Synopsis to SYNOPSIS (needed for macro expansion) and 1998-01-05 07:19:15 +00:00
pstat Fixed printf format errors. 1998-07-06 20:28:08 +00:00
pw Fix race condition in pw caused by multiple instances of pwd_mkdb being 1998-07-16 17:18:25 +00:00
pwd_mkdb Fix usage string 1998-06-09 20:19:59 +00:00
quot .Sh ENVIRONMENT VARIABLES -> .Sh ENVIRONMENT 1998-05-13 07:57:49 +00:00
quotaon Use err(3). Add prototypes. Cosmetic in usage string. 1997-10-13 11:01:33 +00:00
rarpd Fix bug in rarpd: 1998-04-02 13:20:15 +00:00
repquota Make it compatible with long usernames 1998-06-14 22:56:31 +00:00
rmt Hide sccsid[]. Typo in man page. 1997-10-13 11:06:30 +00:00
rndcontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
rpc.lockd Removed bogus dependencies of generated .c files on generated headers. 1998-05-10 16:03:17 +00:00
rpc.statd Removed bogus dependencies of generated .c files on generated headers. 1998-05-10 16:03:17 +00:00
rpc.yppasswdd Protect errno in signal handlers, like in portmap. 1998-06-04 15:11:32 +00:00
rpc.ypupdated Removed bogus dependencies of generated .c files on generated headers. 1998-05-10 16:03:17 +00:00
rpc.ypxfrd Darnit, that last commit was only supposed to change files in the 1998-06-04 15:37:05 +00:00
rtprio Treat RTP_PRIO_FIFO the same as RTP_PRIO_REALTIME for status display. 1998-05-19 20:52:31 +00:00
rwhod There is no "rwho" service, it's "who" 1998-04-23 19:12:41 +00:00
sa .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
sade MF22: various fixes for new XFree86 dist and cdrom warnings. 1998-07-21 06:44:42 +00:00
sendmail $@ is deprecated, use longer forms of single char macros 1998-06-09 05:36:48 +00:00
sgsc .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
sicontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
sliplogin Insist that the user has group network. 1997-09-05 23:11:28 +00:00
slstat Removed bogus #ifdef INET - <net/if_slvar.h> no longer depends on it. 1998-07-06 20:09:36 +00:00
spkrtest Typo. 1997-10-20 12:43:03 +00:00
spray Fix usage in man page. Remove progname. 1997-10-20 12:44:53 +00:00
stallion Remove optind (getopt() already knows about it). 1998-01-12 08:01:40 +00:00
sysctl Document sef's recent changes in the corefile naming. 1998-07-21 18:16:16 +00:00
sysinstall MF22: various fixes for new XFree86 dist and cdrom warnings. 1998-07-21 06:44:42 +00:00
syslogd Fixed printf format errors. 1998-07-06 20:28:08 +00:00
tcpdump .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
timed Don't assume that time_t is long. Fixed printf format errors. 1998-06-29 18:12:08 +00:00
traceroute $@ is deprecated, use longer forms of single char macros 1998-06-09 05:36:48 +00:00
trpt Use err(3). Add usage() and prototypes. 1997-10-22 06:23:12 +00:00
tzsetup Minor brace gymnastics so that /etc/wall_cmos_clock is really 1998-01-10 15:55:11 +00:00
vidcontrol ioctl() request args are unsigned longs, so don't attempt to store 1998-07-14 10:32:27 +00:00
vipw Statisize usage(). 1997-10-27 07:53:22 +00:00
vnconfig Use err(3). Add prototypes. Document -s and -r flags. 1997-10-27 07:55:31 +00:00
watch .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
wlconfig Removed most unused includes of <net/if_var.h> outside the kernel. 1998-01-16 17:38:56 +00:00
wormcontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
xntpd #include <arpa/inet.h> instead of rolling own prototype. 1998-06-12 14:58:03 +00:00
xten .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
yp_mkdb .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
ypbind .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
yppoll .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
yppush Don't assume that time_t is long. 1998-06-29 18:15:21 +00:00
ypserv Allow blank lines in /var/yp/securenets. 1998-07-15 11:56:28 +00:00
ypset .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-23 08:31:20 +00:00
zic PR: docs/5986 1998-06-06 15:37:23 +00:00
Makefile Drop mkdosfs (replaced by newfs_msdos). 1998-07-19 13:41:08 +00:00
Makefile.inc BSD 4.4 Lite usr.sbin Sources 1994-05-26 05:23:31 +00:00