|
Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base perseant-exfatfs-base-20240630 perseant-exfatfs-base
|
| #
1.68 |
|
24-May-2024 |
andvar |
s/SO_ACCEPTFITLER/SO_ACCEPTFILTER/.
|
|
Revision tags: netbsd-10-1-RELEASE netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base
|
| #
1.67 |
|
12-Oct-2021 |
rillig |
inetd.8: remove trailing whitespace
|
| #
1.66 |
|
12-Oct-2021 |
rillig |
inetd.8: new sentence, new line; minor formatting issues
|
| #
1.65 |
|
12-Oct-2021 |
christos |
PR/56448: Solomon Ritzow: Various improvements.
Rate limiting code has been moved to ratelimit.c. I renamed clear_ip_list to rl_clear_ip_list and broke the code up into more functions. I have also made the per-IP rate limiting allocation more efficient. IP addresses are now stored in their network format instead of a string from getnameinfo (see inetd.h struct rl_ip_node). malloc calls use only the space needed by the structure by using offsetof on union members (I suppose this can be a bit dangerous if not done correctly...). Per-IP rate limiting still supports textual comparison using getnameinfo for address families other than AF_INET and AF_INET6, but I don't think there are any that are actually compatible or used by inetd (I haven't tested UNIX sockets with a remote bound to another file, but I did test using IPv6 with the textual format by commenting out the IPv6 specific code, and it works properly). Still potentially handy for the future. The IP node list (se_rl_ip_list) now uses the <sys/queue.h> SLIST macros instead of a custom list. I've broken rl_process up into helper functions for each type of rate limiting and created a separate function for address stringification, for use with printouts from the -d flag. I tried to reduce stack memory use by moving printing code involving string buffers into separate functions. I haven't tested rl_ipv6_eq on a 32-bit system.
The code for the positional syntax has also been moved to parse.c. Function try_biltin has been added to remove parse.c:parse_server's dependency on the biltin structure definition.
File inetd.h has been updated with the proper function prototypes, and the servtab structure has been update with the new IP node SLIST. I also moved things around a bit. The way we (a peer and myself) formatted inetd.h previously was somewhat confusing. Function and global variable prototypes are now organized by the source file they are defined in.
I also added a -f flag that I saw in another problem report (https://gnats.netbsd.org/12823) that I thought could be useful. It runs inetd in the foreground but without debug printouts or SO_DEBUG. I'm not completely sure about the line "if (foreground) setsid()" that I changed from "if (debug) setsid()".
|
| #
1.64 |
|
31-Aug-2021 |
wiz |
Use Dq.
|
| #
1.63 |
|
30-Aug-2021 |
wiz |
Wording and formatting improvements. New sentence, new line.
|
| #
1.62 |
|
29-Aug-2021 |
christos |
Inetd enhancements by James Browning, Gabe Coffland, Alex Gavin, Solomon Ritzow Described in: https://www.mail-archive.com/tech-userlevel@netbsd.org/msg03114.html And developed in: https://github.com/ritzow/src/pull/1
From their notes:
All new functionality should be explained by the updated manpage.
The manpage has been refactored a bit: A new section "Directives" has been added and the information about default hostnames and IPsec directives has been moved there, and the new file include directive information is also there.
getconfigent has the most major changes. A newline is no longer read immediately, but is called only by a "goto more" (inside an if(false) block). This allows multiple definitions or directives to exist on a single line for anything that doesn't terminate using a newline. This means a key-values service definition can be followed by another key-values service definition, a positional definition, or an ipsec, hostname, or .include directive on the same line.
memset is no longer used explicitly to clear the servtab structure, a function init_servtab() is used instead, which uses a C struct initializer.
The servtab se_group field is its own allocation now, and not just a pointer into the user:group string.
Refactored some stuff out of getconfigent to separate functions for use by parse_v2.c. These functions in inetd.c are named with the form parse_*()
parse_v2.c only has code for parsing a key-values service definition into a provided servtab. It should not have anything that affects global state other than line and line_number.
Some function prototypes, structures, and #defines have been moved from inetd.c to inetd.h.
The function config_root replaces config as the function called on a config file load/reload. The code removed from the end of config(void) is now called in config_root, so it is not run on each recursive config call.
setconfig(void) was removed and its code added into config_root because that is the only place it is called, and redundant checks for non-null globals were removed because they are always freed by endconfig. The fseek code was also removed because the config files are always closed by endconfig.
Rate limiting code was updated to add a per-service per-IP rate limiting form. Some of that code was refactored out of other places into functions with names in the form rl_*()
We have not added any of the license or version information to the new files parse_v2.c, parse_v2.h, and inetd.h and we have not updated the license or version info for inetd.c.
Security related:
The behavior when reading invalid IPsec strings has changed. Inetd no longer exits, it quits reading the current config file instead. Could this impact program security?
We have not checked for memory leaks. Solomon tried to use dmalloc without success. getconfigent seemed to have a memory leak at each "goto more". It seems like inetd has never free'd allocated strings when throwing away erroneous service definitions during parsing (i.e. when "goto more" is called when parsing fields). OpenBSD's version calls freeconfig on "goto more" (https://github.com/openbsd/src/blob/c5eae130d6c937080c3d30d124e8c8b86db7d625/usr.sbin/inetd/inetd.c#L1049) but NetBSD only calls it when service definitions are no longer needed. This has been fixed. freeconfig is called immediately before any "goto more". There shouldn't be any time when a servtab is in an invalid state where freeconfig would break.
|
|
Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 netbsd-9-2-RELEASE cjep_staticlib_x-base netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
|
| #
1.61 |
|
20-Jul-2017 |
wiz |
Simplify.
|
| #
1.60 |
|
19-Jul-2017 |
dholland |
Rework previous (and the text it modified) for clarity.
|
|
Revision tags: perseant-stdc-iso10646-base
|
| #
1.59 |
|
16-Jul-2017 |
wiz |
branches: 1.59.2; New sentence, new line.
|
| #
1.58 |
|
16-Jul-2017 |
christos |
PR/52412: Edgar Pettijohn: Describe the service/port syntax.
|
|
Revision tags: netbsd-8-3-RELEASE netbsd-8-2-RELEASE netbsd-8-1-RELEASE netbsd-8-1-RC1 netbsd-7-2-RELEASE netbsd-8-0-RELEASE netbsd-8-0-RC2 netbsd-8-0-RC1 netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE matt-nb8-mediatek-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 bouyer-socketcan-base pgoyette-localcount-20170107 netbsd-7-1-RC1 pgoyette-localcount-20161104 netbsd-7-0-2-RELEASE localcount-20160914 netbsd-7-nhusb-base pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-7-base yamt-pagecache-base9 yamt-pagecache-tag8 netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 agc-symver-base netbsd-6-1-RC2 netbsd-6-1-RC1 yamt-pagecache-base8 netbsd-6-0-1-RELEASE yamt-pagecache-base7 matt-nb6-plus-nbase yamt-pagecache-base6 netbsd-6-0-RELEASE netbsd-6-0-RC2 tls-maxphys-base matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base cherry-xenmp-base
|
| #
1.57 |
|
25-Apr-2011 |
wiz |
Use more markup.
|
|
Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231 matt-premerge-20091211
|
| #
1.56 |
|
24-Oct-2009 |
reed |
Change manpage reference from talkd to ntalkd. (Man link does exist, but no binary.)
|
| #
1.55 |
|
22-Oct-2009 |
tsarna |
Back out mDNS changes which were not discussed. There is design work that needs to be done first.
|
| #
1.54 |
|
22-Oct-2009 |
wiz |
Bump date for mDNS support.
|
| #
1.53 |
|
22-Oct-2009 |
jkunz |
Add mDNS Service Directory support to inetd(8). inetd(8) can now advertize services in the mDNS-SD. (Per service configuration option in inetd.conf(5).)
|
| #
1.52 |
|
14-Jul-2009 |
wiz |
New sentence, new line; remove trailing whitespace.
|
| #
1.51 |
|
14-Jul-2009 |
dholland |
Fix typo; also do some minor wording adjustments nearby.
|
|
Revision tags: netbsd-5-2-3-RELEASE netbsd-5-1-5-RELEASE netbsd-5-2-2-RELEASE netbsd-5-1-4-RELEASE netbsd-5-2-1-RELEASE netbsd-5-1-3-RELEASE netbsd-5-2-RELEASE netbsd-5-2-RC1 netbsd-5-1-2-RELEASE netbsd-5-1-1-RELEASE matt-nb5-mips64-premerge-20101231 matt-nb5-pq3-base netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2
|
| #
1.50 |
|
28-Aug-2008 |
wiz |
Bump date for previous.
|
| #
1.49 |
|
27-Aug-2008 |
elric |
Changed one period into a colon.
Added documentation that inetd can open UNIX-domain sockets. It's been able to do this for over a decade but it hasn't been documented and it's quite a nice feature.
|
| #
1.48 |
|
10-Aug-2008 |
tls |
Manual pages for accept_filters(9), from FreeBSD. Also, document syntax we added in NetBSD for specifying accept filters in inetd.conf.
|
|
Revision tags: wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 hpcarm-cleanup-nbase yamt-pf42-base2 wrstuden-revivesa-base
|
| #
1.47 |
|
02-May-2008 |
martin |
branches: 1.47.2; Move TNF licenses to 2 clause form
|
|
Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-base hpcarm-cleanup-base
|
| #
1.46 |
|
04-Jan-2008 |
reed |
branches: 1.46.4; Tell what happens if reaches max spawn rate.
(I added this because I forgot it was ten minutes as defined by RETRYTIME in inetd.c.)
|
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase matt-armv6-prevmlocking wrstuden-fixsa-base-1 netbsd-4-0-RELEASE cube-autoconf-base netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 matt-mips64-base wrstuden-fixsa-base abandoned-netbsd-4-base netbsd-4-base
|
| #
1.45 |
|
11-Sep-2005 |
wiz |
branches: 1.45.10; Remove useless lines. From YOMURA Masanori in private mail. While here, remove outdated comment.
|
|
Revision tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE netbsd-3-0-RELEASE netbsd-3-0-RC6 netbsd-3-0-RC5 netbsd-3-0-RC4 netbsd-3-0-RC3 netbsd-3-0-RC2 netbsd-3-0-RC1 netbsd-3-base
|
| #
1.44 |
|
02-Apr-2004 |
mrg |
note that hosts_allow does not affect internal services
|
|
Revision tags: netbsd-2-0-3-RELEASE netbsd-2-1-RELEASE netbsd-2-1-RC6 netbsd-2-1-RC5 netbsd-2-1-RC4 netbsd-2-1-RC3 netbsd-2-1-RC2 netbsd-2-1-RC1 netbsd-2-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-base netbsd-2-0-RELEASE netbsd-2-0-RC5 netbsd-2-0-RC4 netbsd-2-0-RC3 netbsd-2-0-RC2 netbsd-2-0-RC1 netbsd-2-0-base
|
| #
1.43 |
|
24-Mar-2004 |
wiz |
Bump date for previous, and use Em for emphasis instead of Sy for symbolic for marking up a warning.
|
| #
1.42 |
|
24-Mar-2004 |
fair |
Document that TCP wrappers do not work on UDP services, per PR 18960
|
| #
1.41 |
|
25-Jan-2004 |
cube |
Allow quoting using single or double quotes inside inetd.conf. Closes PR 24192 by Tyler Retzlaff.
|
| #
1.40 |
|
07-Aug-2003 |
agc |
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22366, verified by myself.
|
| #
1.39 |
|
25-Feb-2003 |
wiz |
.Nm does not need a dummy argument ("") before punctuation or for correct formatting of the SYNOPSIS any longer.
|
|
Revision tags: fvdl_fs64_base
|
| #
1.38 |
|
02-Jan-2003 |
jschauma |
Fix typos pointed out by Igor Sobrado in PR misc/19621.
|
|
Revision tags: netbsd-1-6-PATCH002-RELEASE netbsd-1-6-PATCH002 netbsd-1-6-PATCH002-RC4 netbsd-1-6-PATCH002-RC3 netbsd-1-6-PATCH002-RC2 netbsd-1-6-PATCH002-RC1 netbsd-1-6-PATCH001 netbsd-1-6-PATCH001-RELEASE netbsd-1-6-PATCH001-RC3 netbsd-1-6-PATCH001-RC2 netbsd-1-6-PATCH001-RC1 netbsd-1-6-RELEASE netbsd-1-6-RC3 netbsd-1-6-RC2 netbsd-1-6-RC1 netbsd-1-6-base
|
| #
1.37 |
|
19-Jan-2002 |
wiz |
Drop some unnecessary .Pp, sort sections and SEE ALSO.
|
| #
1.36 |
|
16-Mar-2001 |
fair |
Document TCPmux internal service, per additional discussion of PR 12325. The text was snatched directly from the comment about it in inetd.c and modified for better clarity.
|
| #
1.35 |
|
10-Mar-2001 |
fair |
Add text to more clearly document that tcpd is not needed, per PR 10754. Add a FILES section. Add a few more references to SEE ALSO. Clean up nroff nits (e.g. spaces at end of line).
|
| #
1.34 |
|
04-Mar-2001 |
bjh21 |
Mention relevant RFCs in "SEE ALSO".
|
| #
1.33 |
|
25-Jan-2001 |
jlam |
Improve grammar slightly in the description for IPsec policy settings.
|
| #
1.32 |
|
02-Dec-2000 |
hubertf |
Document that the path to the configuration file given on the command line must be absolute, unless the -d option is given on the command line.
|
| #
1.31 |
|
19-Sep-2000 |
ad |
Clean one paragraph.
|
| #
1.30 |
|
04-Jul-2000 |
itojun |
add faithd(8) support. with "faith/tcp6" protocol specification, it will open a socket with setsockopt(IPV6_FAITH).
|
|
Revision tags: netbsd-1-5-PATCH003 netbsd-1-5-PATCH002 netbsd-1-5-PATCH001 netbsd-1-5-RELEASE netbsd-1-5-BETA2 netbsd-1-5-BETA netbsd-1-5-ALPHA2 netbsd-1-5-base
|
| #
1.29 |
|
14-Jun-2000 |
itojun |
typo
|
| #
1.28 |
|
14-Jun-2000 |
itojun |
clarify tcp4/tcp6 interaction.
|
|
Revision tags: minoura-xpg4dl-base
|
| #
1.27 |
|
31-Jan-2000 |
itojun |
branches: 1.27.2; sync with latest libipsec. since outgoing and incoming policy is separated, inetd can take multiple policy specification, separated by ";".
|
|
Revision tags: wrstuden-devbsize-19991221 wrstuden-devbsize-base
|
| #
1.26 |
|
21-Nov-1999 |
itojun |
refrain using non-standard .Sh. use .Ss.
|
| #
1.25 |
|
18-Nov-1999 |
kristerw |
Typos (from OpenBSD)
|
|
Revision tags: comdex-fall-1999-base
|
| #
1.24 |
|
06-Oct-1999 |
ad |
A colon is the preferred way to split a user and group name pair; make this possible and depreciate the use of dot.
|
| #
1.23 |
|
10-Sep-1999 |
simonb |
branches: 1.23.2; s/acknowledgment/acknowledgement/
|
| #
1.22 |
|
13-Aug-1999 |
itojun |
avoid multiple BUGS section.
|
| #
1.21 |
|
02-Jul-1999 |
itojun |
clearify and woring fix.
|
| #
1.20 |
|
02-Jul-1999 |
itojun |
document tcp4/tcp6 manipulation.
|
| #
1.19 |
|
02-Jul-1999 |
itojun |
dual-stack inetd. you can write "tcp6" or "tcp4" into "protocol" field. (the style is the rough consensus among v6 implementers so it will be the standard style)
TODO: test rpc and tcpmux on IPv6. TODO: test identd over IPv6.
|
|
Revision tags: netbsd-1-4-PATCH003 netbsd-1-4-PATCH002 netbsd-1-4-PATCH001 netbsd-1-4-RELEASE netbsd-1-4-base
|
| #
1.18 |
|
22-Mar-1999 |
garbled |
More and more .Os cleanups. .Os is defined in the tmac.doc-common file, so we shouldn't override it with versions in the manpages. Many more to come.
|
| #
1.17 |
|
29-Jan-1999 |
tsarna |
Clarify the syntax a bit
|
| #
1.16 |
|
08-Jun-1998 |
lukem |
Implement a new manual page category ``SECURITY CONSIDERATIONS'' (suggested by mycroft)
|
| #
1.15 |
|
01-May-1998 |
thorpej |
Add support for specifying the send and receive socket buffer sizes. This is especially useful for TCP servers which must specify the receive socket buffer size before the connection is made so that the connection's window scale factor can be properly advertised.
Example /etc/inetd.conf configuration line:
shell stream tcp,rcvbuf=1m nowait root /usr/libexec/rshd rshd
That line will cause the rshd to advertise a 1 megabyte window, which could improve the performance of an rcp in some situations.
|
| #
1.14 |
|
11-Mar-1998 |
fair |
adjust documentation to reflect reality per PR#4859
|
| #
1.13 |
|
11-Nov-1997 |
mrg |
add missing .Nm sections
|
|
Revision tags: netbsd-1-3-base
|
| #
1.12 |
|
18-Oct-1997 |
lukem |
branches: 1.12.2; minor .Nm cleanup
|
| #
1.11 |
|
05-Oct-1997 |
mrg |
merge lite2 [actually, just update ucb sccs id's]
|
| #
1.10 |
|
30-Jun-1997 |
phil |
Rewrite of wait/nowait information in light of identd(8) use of wait. Removed some blank linkes that made bad formatting. (PR 3647)
|
| #
1.9 |
|
12-Jan-1997 |
mikel |
fix problem with restarting service after SIGHUP (PR 3093) indicate proper invocation point and RCS ID police (PR 3098)
|
| #
1.8 |
|
30-Dec-1996 |
mouse |
Get the local-address-part code in here (instead of "comsat" you can use "127.0.0.1:comsat"). While I'm here, do trailing whitespace cleanup, .Nm usage police in the manpage, and a couple of trivial text typo fixes.
|
| #
1.7 |
|
04-Dec-1996 |
mrg |
xref hosts_access.5 and hosts_options.5
|
| #
1.6 |
|
26-Nov-1996 |
mrg |
use the new libwrap functionality to provide tcpd-like functionality as part of inetd. uses /etc/hosts.{allow,deny} as tcpd does, etc. it is basically exactly like tcpd except that you don't need to change the server to /usr/local/sbin/tcpd.
XXX should document better somewhere
|
|
Revision tags: netbsd-1-2-PATCH001 netbsd-1-2-RELEASE netbsd-1-2-BETA netbsd-1-2-base netbsd-1-1-PATCH001 netbsd-1-1-RELEASE netbsd-1-1-base netbsd-1-0-PATCH06 netbsd-1-0-PATCH05 netbsd-1-0-PATCH04 netbsd-1-0-PATCH03 netbsd-1-0-PATCH02 netbsd-1-0-PATCH1 netbsd-1-0-PATCH0 netbsd-1-0-RELEASE netbsd-1-0-base
|
| #
1.5 |
|
14-Jan-1994 |
jtc |
Fix spelling errors
|
| #
1.4 |
|
13-Oct-1993 |
pk |
Allow for a group name to be specified in the ``user'' field: user[.group] Allow for max # of invocations to be specified; appended to ``wait'' field: wait/nowait[.max] Allow for RPC specifications in numeric format. Inetd now stores its pid in `/var/run/inetd.pid'. Support for AF_UNIX family.
|
| #
1.3 |
|
01-Aug-1993 |
mycroft |
Add RCS indentifiers.
|
|
Revision tags: netbsd-0-9-RELEASE netbsd-0-9-BETA netbsd-0-9-ALPHA2 netbsd-0-9-ALPHA netbsd-0-9-base
|
| #
1.2 |
|
11-Jun-1993 |
brezak |
Add support for starting RPC servers.
|
| #
1.1 |
|
21-Mar-1993 |
cgd |
branches: 1.1.1; Initial revision
|