361311 |
21-May-2020 |
kevans |
MFC r361000, r361036: improve inetd(8) examples
r361000: inetd(8): Provide HTTP proxy example using netcat
One of the fortunes that are included in freebsd-tips talks about how the superserver can be used to proxy connections with netcat, but there are no examples provided. This commit adds an example with comment explaining what it does.
r361036: inetd(8): Add comments to all examples |
356690 |
13-Jan-2020 |
kevans |
MFC r356601-r356602: inetd fixes for WITHOUT_* knobs
r356601: inetd: free WITHOUT_INET6_SUPPORT build of warnings
If inetd is compiled without inet6 support, we need to error out on rpc+inet6 services rather than attempting to call into rpc bits with an uninitialized netid.
v4bind is only used with INET6 support, so move it under the proper #ifdefs with v6bind.
Reported by: Pavel Timofeev <timp87 gmail com>
r356602: inetd: two more nits
Use __COPYRIGHT for copyright to simply either embed it via .ident or have it properly marked __unused
Move an ipsec reference to IPSEC |
356388 |
05-Jan-2020 |
kevans |
MFC further inetd(8) cleanup: r356204, r356215, r356217-r356218, r356246-r356248, r356254, r356318
r356204: inetd: don't leak `policy` on return
sep->se_policy gets a strdup'd version of policy, so we don't need it to stick around afterwards.
While here, remove a couple of NULL checks prior to free(policy).
r356215: inetd: knock out some clang analyze warnings
chargen_dg: clang-analyze is convinced that endring could be non-NULL at entry, and thus wants to assume that rs == NULL. Just independently initialize rs if it's NULL to appease the analyzer.
getconfigent: policy leaks on return
free_connlist: reorganize the loop to make it clear that we're not going to access `conn` after it's been freed.
cpmip/hashval: left-shifts performed will result in UB as we take signed 0xABC3D20F and left shift it by 5.
r356217: inetd: prefer strtonum(3) to strspn(3)+atoi(3), NFC
strtonum(3) does effectively the same validation as we had, but it's more concise.
r356218: inetd: prefer strlcpy to strlen(3) check + strcpy(3), NFC
This is again functionally equivalent but more concise.
r356246: inetd: add some macros for checking child limits, NFC
The main point here is capturing the maxchild > 0 check. A future change to inetd will start tracking all of the child pids so that it can give proper and consistent notification of process exit/signalling.
r356247: inetd: track all child pids, regardless of maxchild spec
Currently, child pids are only tracked if maxchildren is specified. As a consequence, without a maxchild limit we do not get a notice in syslog on children aborting abnormally. This turns out to be a great debugging aide at times.
Children are now tracked in a LIST; the management interface is decidedly less painful when there's no upper bound on the number of entries we may have at the cost of one small allocation per connection.
r356248: inetd: convert remaining bzero(3) to memset(3), NFC
This change is purely in the name of noise reduction from static analyzers that want to complain that bzero(3) is obsolete in favor of memset(3).
With this, clang-analyze at least is now noise free. WARNS= 6 also appears to have been OK for some time now, so drop the current setting and opt for the default.
r356254: inetd: final round of trivial cleanup, NFC
Highlights: - Use MAX() for maxsock raising; small readability improvement IMO - malloc(3) + memset(3) -> calloc(3) where appropriate - stop casting the return value of malloc(3) - mallloc(3) -> reallocarray(3) where appropriate
A future change may enter capability mode when forking for some of the built-in handlers.
r356318: inetd: fix WITHOUT_TCP_WRAPPERS build after r356248
After increasing WARNS, building WITHOUT_TCP_WRAPPERS failed because of some unused variables. |
356387 |
05-Jan-2020 |
kevans |
MFC r310921, r311354, r315644: Light inetd(8) cleanup
r310921: - Add static for symbols which need not to be exported. - Clean up warnings to the WARNS=6 level.
r311354: Fix build when WITHOUT_INET6 is defined.
r315644: Simplify a pipe for signal handling. |
331722 |
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re) |
330897 |
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg |
330449 |
05-Mar-2018 |
eadler |
MFC r326276:
various: general adoption of SPDX licensing ID tags.
Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task.
The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts.
No functional change intended. |
326760 |
11-Dec-2017 |
delphij |
MFC r326244:
Don't assign rs as we will assign it later. |
313203 |
04-Feb-2017 |
ngie |
MFC r312105,r312162:
r312105:
Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS
This will allow inetd to stand by itself without libwrap.
Relnotes: yes
r312162:
Fix up r312105
- Only #include tcpd.h when LIBWRAP is true to avoid header include errors - Only define whichaf when LIBWRAP is true to avoid -Wunused warning and to avoid issues with structs being defined that should only be defined when tcpd.h is included.
Pointyhat to: ngie |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
299356 |
10-May-2016 |
bapt |
Rename getline with get_line to avoid collision with getline(3)
When getline(3) in 2009 was added a _WITH_GETLINE guard has also been added. This rename is made in preparation for the removal of this guard
|
298909 |
02-May-2016 |
araujo |
Use MAX macro from sys/param.h.
MFC after: 2 weeks.
|
298114 |
16-Apr-2016 |
bapt |
Use the SOCK_CLOEXEC flags in the socket(2) 'type' attribute instead of calling fcntl(2)
MFC after: 1 week
|
298111 |
16-Apr-2016 |
bapt |
Use pipe2(2) to directly set the close-on-exec flags directly
MFC after: 1 week
|
287998 |
19-Sep-2015 |
hrs |
- Remove unused union p_un.
- Use NI_MAXHOST-long buffer for getnameinfo(). Although INET6_ADDRSTRLEN was designed to hold the longest IPv6 address in IPv4-mapped address format a long time ago, getnameinfo() can return scope identifier in addition to it.
MFC after: 1 day
|
287997 |
19-Sep-2015 |
hrs |
- Fix a crash on a rpc entry when an IPv6 address is explicitly specified in -a flag.
- Fix a bug that sockaddr_in was used where sockaddr_in6 should have been used. This was not actually harmful because offsetof(struct sockaddr_in, sin_port) is equal to offsetof(struct sockaddr_in6, sin6_port).
MFC after: 1 day
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
281736 |
19-Apr-2015 |
eadler |
identd: restore memcpy I should not be committing at 2:30am....
Reported by: pluknet
|
281735 |
19-Apr-2015 |
eadler |
identd: also zero se_rpc_highvers
Reported by: pluknet
|
281734 |
19-Apr-2015 |
eadler |
identd: remove redundant zeroing se_rpc_lowvers was set to 0 twice, so remove one of them I can not find any other variable which they may have been a typo of.
Reported by: gcc5.1
|
275054 |
25-Nov-2014 |
bapt |
Convert usr.sbin to LIBADD Reduce overlinking
|
274331 |
09-Nov-2014 |
melifaro |
Renove faith(4) and faithd(8) from base. It looks like industry have chosen different (and more traditional) stateless/statuful NAT64 as translation mechanism. Last non-trivial commits to both faith(4) and faithd(8) happened more than 12 years ago, so I assume it is time to drop RFC3142 in FreeBSD.
No objections from: net@
|
265420 |
06-May-2014 |
imp |
Use src.opts.mk in preference to bsd.own.mk except where we need stuff from the latter.
|
245696 |
20-Jan-2013 |
zont |
- Force inetd to have listen queue size to be set to the value of kern.ipc.somaxconn instead of hardcoded value 64.
Submitted by: Andrey Ignatov <rdna@rdna.ru> MFC after: 2 weeks
|
239991 |
01-Sep-2012 |
ed |
Rework all non-contributed files that use `struct timezone'.
This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype:
int gettimeofday(struct timeval *restrict tp, void *restrict tzp);
Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0.
While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead.
|
236572 |
04-Jun-2012 |
delphij |
Replace the use of wall clock time with monotonically increasing clock. In general, gettimeofday() is not appropriate interface when accounting for elasped time because it can go backward, in which case the policy code could errornously consider the limit as exceeded.
MFC after: 1 week Reported by: Mahesh Arumugam Submitted by: Dorr H. Clark via gnn Sponsored by: Citrix / NetScaler
|
229403 |
03-Jan-2012 |
ed |
Replace index() and rindex() calls with strchr() and strrchr().
The index() and rindex() functions were marked LEGACY in the 2001 revision of POSIX and were subsequently removed from the 2008 revision. The strchr() and strrchr() functions are part of the C standard.
This makes the source code a lot more consistent, as most of these C files also call into other str*() routines. In fact, about a dozen already perform strchr() calls.
|
228990 |
30-Dec-2011 |
uqs |
Spelling fixes for usr.sbin/
|
201390 |
02-Jan-2010 |
ed |
The last big commit: let usr.sbin/ use WARNS=6 by default.
|
201387 |
02-Jan-2010 |
ed |
ANSIfy some more tools in usr.sbin/.
Most of these tools build with WARNS=6, except for their use of K&R function declarations.
|
199804 |
25-Nov-2009 |
attilio |
Avoid sshd, cron, syslogd and inetd to be killed under high-pressure swap environments. Please note that this can't be done while such processes run in jails.
Note: in future it would be interesting to find a way to do that selectively for any desired proccess (choosen by user himself), probabilly via a ptrace interface or whatever.
Obtained from: Sandvine Incorporated Reviewed by: emaste, arch@ Sponsored by: Sandvine Incorporated MFC: 1 month
|
188602 |
13-Feb-2009 |
delphij |
Sync comment with actual configuration format.
|
175254 |
12-Jan-2008 |
maxim |
o inetd(8) requires wait/nowait column in inetd.conf for ONC services as well.
PR: bin/119203 Submitted by: Peter Jeremy MFC atfer: 1 week
|
171246 |
05-Jul-2007 |
bz |
Remove the -DFAST_IPSEC from Makefiles again.
This was needed during the IPSEC->FAST_IPSEC->IPSEC transition period to not break the build after picking up netipsec header files. Now that the FAST_IPSEC kernel option is gone and the default is IPSEC again those defines are superfluous.
Approved by: re (rwatson)
|
171135 |
01-Jul-2007 |
gnn |
Commit IPv6 support for FAST_IPSEC to the tree. This commit includes all remaining changes for the time being including user space updates.
Submitted by: bz Approved by: re
|
167455 |
11-Mar-2007 |
dwmalone |
Don't try to apply connection-per-ip rate limiting to unix domain sockets. Instead of rejecting all unix domain connections when the -C flag is given, allow them instead. Aragon tested an earlier version of the patch.
PR: 109315 MFC after: 2 weeks Tested-by: Aragon Gouveia <aragon@phat.za.net>
|
162305 |
14-Sep-2006 |
ru |
Removed T/TCP bits.
|
160866 |
31-Jul-2006 |
yar |
inetd and telnetd are not included in the standard release crunched floppies, but they can be included as options in src/release/picobsd (omitted by default though.) Therefore preserve the RELEASE_CRUNCH knob in their Makefiles, but tell its real purpose in a comment.
|
160753 |
27-Jul-2006 |
yar |
Obey MK_INET6_SUPPORT.
|
157820 |
17-Apr-2006 |
dwmalone |
Update a couple of comments relating to RFCs.
|
157819 |
17-Apr-2006 |
dwmalone |
Back out a Makefile change that accidently snook in.
|
157816 |
17-Apr-2006 |
dwmalone |
Port 37 (RFC 738) style times are supposed to be a 32 bit time since 1900 in network byte order. Use a uint32_t to calculate and send the time, so that we don't need to know how big ints or longs are.
I used uint32_t instead of int in the patch, on the off chance someone uses our inetd source on a system that doesnt 32 bit ints.
PR: 95290 Submitted by: Bruce Becker <hostmaster@whois.gts.net> MFC after: 2 weeks
|
155318 |
04-Feb-2006 |
ceri |
Perform minor rewording and grammatical improvement. Add a missing Xr.
|
154530 |
18-Jan-2006 |
delphij |
Revert previous commit for now, which seems to have (re)introduced some old bugs, as well as some unwanted side effects. I will do more investigation and fix these issues first.
Pointed out by: dwmalone
|
154503 |
18-Jan-2006 |
delphij |
Improves and cleanups over inetd(8):
- Teach inetd(8) about kqueue, originally implemented by jmg@[1]. - Use new C99 style function prototypes instead of K&Rs. - Raise WARNS from 2 to 6
Glanced at by: ru MFC After: 2 weeks
[1] http://people.freebsd.org/~jmg/inetd.kq.patch, http://people.freebsd.org/~jmg/inetd.kq.html
|
153885 |
30-Dec-2005 |
ceri |
inetd(8) requires that /etc/netconfig be present, and contain entries for each of udp and tcp (and their IPv6 equivalents when INET6 is enabled). Note that dependency here.
PR: docs/90435 Submitted by: Dmitry Kazarov <kazarov at mcm dot ru> Pointed out by: Daniel Gerzo <danger at rulez dot sk> MFC after: 8 days
|
150214 |
16-Sep-2005 |
pjd |
Pidfiles should be created with permission preventing users from opening them for reading. When user can open file for reading, he can also flock(2) it, which can lead to confusions.
Pointed out by: green
|
149432 |
24-Aug-2005 |
pjd |
Use pidfile(3) in inetd(8).
|
147270 |
10-Jun-2005 |
nectar |
Remove rexecd(8), a server that implements a particularly insecure method of executing commands remotely. There are no rexec clients in the FreeBSD tree, and the client function rexec(3) is present only in libcompat. It has been documented as "obsolete" since 4.3BSD, and its use has been discouraged in the man page for over 10 years.
|
146187 |
13-May-2005 |
ume |
NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now.
|
135823 |
26-Sep-2004 |
stefanf |
Prefer C99's __func__ over GCC's __FUNCTION__.
Approved by: dwmalone
|
133249 |
07-Aug-2004 |
imp |
Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software (with permission of addtional copyright holders where appropriate)
|
131500 |
02-Jul-2004 |
ru |
Mechanically kill hard sentence breaks.
|
128501 |
20-Apr-2004 |
brooks |
Remove the requirement that the "discard" service be defined in the services database. Now only services that are actually used need to be defined.
Submitted by: ume
|
127865 |
04-Apr-2004 |
dwmalone |
The list of (key,value) pairs to request_init is terminated by a 0 key, not NULL.
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> MFC after: 3 days
|
127301 |
22-Mar-2004 |
dwmalone |
On startup, warn if inetd's config file doesn't exist. This isn't exactly the same as patch from the PR, which also exited if the config file was missing. I didn't use Jeff's patch because I was worried that some people might start inetd, create the config file and then HUP inetd.
PR: 60806 Submitted by: Jeff Ito <jeffi@rcn.com> MFC after: 2 weeks
|
126407 |
29-Feb-2004 |
charnier |
Revert previous change. The effect of -w or -W option is described in another paragraph. Obtained from: David Malone <dwmalone@maths.tcd.ie>
|
126241 |
25-Feb-2004 |
charnier |
According to source code, under certain conditions, logging goes to the "auth" facility not "daemon". Submitted by: "Bill Richter (7X22KEY)" <richterb@binkley.foothill.net>
|
121766 |
30-Oct-2003 |
peter |
Rather than use the gcc -fno-builtin-log flag, just rename the 'int log' variable.
|
121559 |
26-Oct-2003 |
ume |
Since semantic of IPV6_PKTINFO was changed in RFC3542, we need to use IPV6_RECVPKTINFO instead.
Reported by: someone (I had removed the mail wrongly, sorry)
|
121555 |
26-Oct-2003 |
peter |
Use -fno-builtin-log so gcc doesn't get ideas about using a math function to log data. Clean up an unused variable that was hidden by the WARNS?=2 being commented out. Uncomment it now that it compiles cleanly again.
|
117645 |
15-Jul-2003 |
dwmalone |
Move my inetd maintainer note to src/MAINTAINERS.
|
117644 |
15-Jul-2003 |
dwmalone |
Get the connections per minute calculation right. By good fortune (or possibly testing) the previous formula worked for the default constants compiled into inetd, but if you recompiled with different values of CHTSIZE and CHTGRAN the calculation might not have worked.
PR: 54354 Submitted by: Claus Assmann <ca@sendmail.org> Submitted by: Jose Marcio Martins da Cruz <Jose-Marcio.Martins@ensmp.fr> MFC after: 5 days
|
116050 |
08-Jun-2003 |
charnier |
The .Xr utility
|
111324 |
23-Feb-2003 |
dwmalone |
Under some unusual conditions, inetd can leak a open file discriptor into a child process. Rather than closing the discriptors manually, mark all discriptors as close-on-exec.
PR: 47694 Submitted by: Max Okumoto <okumoto@ucsd.edu> Obtained from: NetBSD MFC after: 2 weeks
|
111323 |
23-Feb-2003 |
dwmalone |
After calling login_getclass, be sure to call login_close so that we don't leak memory. Only one of these two cases (reconfig) actually causes a leak because the other is usually followed by an exec.
PR: 46845 Reviewed by: David Wang <dsw@juniper.net> MFC after: 2 weeks
|
110802 |
13-Feb-2003 |
ume |
The tcp_wrappers function `fromhost()' can fail. In such cases, the `struct sockaddr' will not be allocated.
Reported by: nectar MFC after: 2 days
|
109349 |
16-Jan-2003 |
rwatson |
Using LOGIN_SETALL &~LOGIN_SETMAC to avoid setting the MAC label improperly, rather than specifically setting the process priority and resource class; otherwise, we improperly set other aspects of the login class. We have a bit more to do here, but the proper fix will probably involve breaking out MAC labels from the login class at some point, as well as further clarifying the logic here.
Pointed out by: kuriyama, max
|
108951 |
08-Jan-2003 |
rwatson |
For now, set only the resource limits and process priority associated with a class, rather than all aspects of the class when switching classes for an inetd service. Because we hard-code /daemon in the current inetd implementation, using SETALL has unfortunate side-effects involving the MAC code, and potentially other credential related settings in the future. This change maintains the DoS-resistent aspects of the class behavior, which is all that is promised in the inetd man page.
A larger set of diffs providing more pluggability and configurability was deferred for this more simple approach in the short term.
Reviewed by: ache Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
|
106054 |
27-Oct-2002 |
wollman |
Add used #include <limits.h>.
|
102939 |
04-Sep-2002 |
dwmalone |
When printing the wait status, break it down into a signal and a exit status.
PR: 41912 Submitted by: Aaron Smith <aaron@mutex.org> MFC after: 2 weeks
|
102938 |
04-Sep-2002 |
dwmalone |
Swap sense of no_v[46]bind variables and rename as v[46]bind_ok - this avoids some double negatives which are a bit difficult to parse.
Always tread v[46]bind{,_ok} as booleans.
|
102937 |
04-Sep-2002 |
dwmalone |
Fix parsing of unix domain entries after addition of IPv6 RPC support.
PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
|
102861 |
02-Sep-2002 |
dwmalone |
Don't initialise policy, v4bind and v6bind where the variables are declared - it was bad style and caused a bug. v[46]bind need to be reset whenever we go to the "more:" label.
Jean-Luc and I came up with this patch independently, so it had better be right!
PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
|
102860 |
02-Sep-2002 |
dwmalone |
tpc -> tcp in an error message.
PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
|
102859 |
02-Sep-2002 |
dwmalone |
Clear up a few warnings (unused variable, rpc versions are usigned so use %u, rename a parameter to avoid shadowing a global).
MFC after: 1 month
|
101828 |
13-Aug-2002 |
ru |
mdoc(7) police: Removed redundant .Ns calls.
|
101474 |
07-Aug-2002 |
ume |
Add capability for limiting the maximum number of simultaneous invocations of each service from a single IP address.
Requested by: matusita Reviewed by: dwmalone Tested by: matusita on snapshots.jp.FreeBSD.org MFC after: 2 weeks
|
100505 |
22-Jul-2002 |
ume |
use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.
MFC after: 1 week
|
100498 |
22-Jul-2002 |
fanf |
Fix typo: corrisponds -> corresponds
|
100127 |
15-Jul-2002 |
alfred |
add support for rpc IPv6 (rpc/udp/46 ...)
Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
|
99968 |
14-Jul-2002 |
charnier |
The .Nm utility
|
98611 |
22-Jun-2002 |
jmallett |
Replace the SWAP(var0,var1) macro with SWAP(type,var0,var1) and use it as is appropriate to avoid using typeof/__typeof__. It is worth noting that SWAP() is only ever used to swap pointer values so 'void *' assumptions would have been acceptable, but I'd gladly pay you tuesday for a cheeseburger^W cleaner interface today.
Poked into submission by: bde
|
98610 |
22-Jun-2002 |
jmallett |
Unused macro.
|
98563 |
21-Jun-2002 |
jmallett |
__FBSDID() strategic insertion.
|
98562 |
21-Jun-2002 |
jmallett |
Kill __P, yuck.
|
98561 |
21-Jun-2002 |
jmallett |
Mark unused variables __unused.
Built standalone, inetd(8) is WARNS=5 clean, WARNS=6 if you ignore %m fits.
|
98560 |
21-Jun-2002 |
jmallett |
Use __typeof__ instead of typeof.
|
98559 |
21-Jun-2002 |
jmallett |
Kill bad whitespace and do some style cleanups as a result of the protoize.
|
98558 |
21-Jun-2002 |
jmallett |
ANSI prototypes via protoize(1).
|
97293 |
26-May-2002 |
jwd |
Log invalid config entries. Make the -d option actually log to the terminal(-d fix from dwmalone).
Approved by: dwmalone MFC after: 2 weeks
|
96227 |
08-May-2002 |
ume |
Make compilable without -DINET6.
|
96224 |
08-May-2002 |
ume |
Log address family of a connection.
Requested by: matusita Reviewed by: matusita
|
94827 |
16-Apr-2002 |
dd |
Correct spacing.
|
91354 |
27-Feb-2002 |
dd |
Introduce a version field to `struct xucred' in place of one of the spares (the size of the field was changed from u_short to u_int to reflect what it really ends up being). Accordingly, change users of xucred to set and check this field as appropriate. In the kernel, this is being done inside the new cru2x() routine which takes a `struct ucred' and fills out a `struct xucred' according to the former. This also has the pleasant sideaffect of removing some duplicate code.
Reviewed by: rwatson
|
87653 |
11-Dec-2001 |
sheldonh |
Fix a typo.
Reported by: Jurrien Koopmans <jjkoopmans@home.nl>
|
83112 |
05-Sep-2001 |
dd |
Use CFLAGS, not COPTS, in the Makefile. bsd.prog.mk conveniently adds COPTS towards the end of final CFLAGS so that it can be used to override Makefile and other defaults. Using it in Makefiles risks having options set using it clobbered when somebody uses it on the command line.
Approved by: bde
|
81622 |
14-Aug-2001 |
ru |
mdoc(7) police: s/BSD/.Bx/ where appropriate.
|
80029 |
20-Jul-2001 |
obrien |
Perform a major cleanup of the usr.sbin Makefiles. These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
|
79831 |
17-Jul-2001 |
dwmalone |
Turn off WARNS stuff. When combined with -nostdinc and system header files that aren't WARNS clean it causes trouble.
|
79815 |
17-Jul-2001 |
dwmalone |
o Remove old setproctitle. o Mark unused variables. o Set WARNS?=2 o Results in no code changes.
Submitted by: Mike Barcroft <mike@q9media.com>
|
79755 |
15-Jul-2001 |
dd |
Remove whitespace at EOL.
|
79537 |
10-Jul-2001 |
ru |
mdoc(7) police: removed HISTORY info from the .Os call.
|
79454 |
09-Jul-2001 |
dd |
mdoc(7) police: remove extraneous .Pp before and/or after .Sh.
|
79288 |
05-Jul-2001 |
ru |
mdoc(7) police: fixed markup, sorted xrefs.
|
79159 |
03-Jul-2001 |
dd |
mdoc(7) police: fix spacing and punctuation issues.
|
78695 |
24-Jun-2001 |
dwmalone |
Don't add -Wall, as it's a compiler specific flag.
|
78694 |
24-Jun-2001 |
dwmalone |
Fix most of the warnings given by WARNS=2.
|
78686 |
24-Jun-2001 |
dd |
Remove duplicate words.
|
78356 |
16-Jun-2001 |
dwmalone |
Give inetd the ability to manage unix domain sockets. Details of how to use this feature are in the man page. This is based on work by Lyndon Nerenberg.
(The only difficult part about this patch is the fact that you can't fchown a unix domain socket, which means the sockets must be put in a secure directory).
Reviewed by: dillon
|
77878 |
07-Jun-2001 |
sobomax |
Correct cross-reference: portmap.8 --> rpcbind.8
Submitted by: .Xr testing script
|
77832 |
06-Jun-2001 |
dwmalone |
Get rid of se_ctladdrinitok, which doesn't do anything and seemes to have been accidently imported when ipv6 support was added to inetd.
Approved by: ume
|
77685 |
04-Jun-2001 |
dwmalone |
Correct a comment - the time service returns seconds since 1900 not 1970.
Submitted by: ru
|
77684 |
04-Jun-2001 |
dwmalone |
This patch cleans up the ident stuff in inetd. The code which has been patched so many times it was a bit of a mess. There are style, code and man page cleanups. The following are the functional changes:
The RFC only permits the returning of 4 possible error codes, make sure we only return these (PR 27636).
Use MAXLOGNAME to determine the longest usernames.
Add a -i flag, which returns the uid instead of the username (this is from a PR 25787, which also contained alot of the cleanups in this patch).
PR: 25787, 27636 Partially Submitted by: Arne.Dag.Fidjestol@idi.ntnu.no Reviewed by: Arne.Dag.Fidjestol@idi.ntnu.no, green MFC after: 3 weeks
|
77518 |
31-May-2001 |
ume |
Recently, other BSDs had faith support in inetd. Though our inetd has it already, their syntax is not compatible with ours. It will confuse users. So, we have compatibility with their syntex.
Approved by: dwmalone Obtained from: NetBSD
|
77231 |
26-May-2001 |
dwmalone |
Make dg_echo return up to the first 65536 bytes of a datagram. The patch I used isn't quite the one Lars suggested, but the size of the largest datagram you can recv isn't #defined anywhere, and probably isn't even bounded for some protocols.
PR: 25050 Submitted by: Lars Eggert <larse@isi.edu>
|
77230 |
26-May-2001 |
dwmalone |
Don't spell requester as requestor.
|
74934 |
28-Mar-2001 |
dwmalone |
Allow ident requests with trailing junk following the terminating "\n".
Reviewed by: ben Approved by: green
|
74816 |
26-Mar-2001 |
ru |
- Backout botched attempt to introduce MANSECT feature. - MAN[1-9] -> MAN.
|
74532 |
20-Mar-2001 |
ru |
Set the default manual section for usr.sbin/ to 8.
|
73233 |
28-Feb-2001 |
ru |
Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.
|
72650 |
18-Feb-2001 |
green |
Switch to using a struct xucred instead of a struct xucred when not actually in the kernel. This structure is a different size than what is currently in -CURRENT, but should hopefully be the last time any application breakage is caused there. As soon as any major inconveniences are removed, the definition of the in-kernel struct ucred should be conditionalized upon defined(_KERNEL).
This also changes struct export_args to remove dependency on the constantly-changing struct ucred, as well as limiting the bounds of the size fields to the correct size. This means: a) mountd and friends won't break all the time, b) mountd and friends won't crash the kernel all the time if they don't know what they're doing wrt actual struct export_args layout.
Reviewed by: bde
|
71898 |
01-Feb-2001 |
ru |
mdoc(7) police: split punctuation characters + misc fixes.
|
71399 |
22-Jan-2001 |
dwmalone |
Various cleanups of inetd: Avoid shadowing variables, use socklen_t instead of ints, don't cast to char *, clear up some remote name handling code which had become a little odd.
Should result in no functional changes.
|
71398 |
22-Jan-2001 |
dwmalone |
Don't mention /etc/protocols in inetd documentation or comments, as inetd doesn't actually use it.
PR: 24307 Submitted by: opentrax@email.com
|
70403 |
27-Dec-2000 |
ru |
Prepare for mdoc(7)NG.
|
69620 |
05-Dec-2000 |
dwmalone |
Add a -F option to the builtin ident service, which allows .fakeid files to contain the name of other valid users.
PR: 22837 Submitted by: Andreas Gerstenberg <andy@andy.de> Reviewed by: green Reviewed by: sheldonh
|
69546 |
03-Dec-2000 |
dwmalone |
Tidy up some prototypes: make sure there is exactly one prototype for each function, use K&R style definitions everywhere to match dominant style, make flag_signal take an int to avoid problems if we have ANSI prototypes and K&R definitions.
|
69532 |
02-Dec-2000 |
green |
Make some style changes to the ident_stream() code.
Partially submitted by: alfred Reviewed by: alfred
|
69144 |
25-Nov-2000 |
green |
Security fix: correctly set groups according to the user. Previously, root's groups' permissions were being used, so a user could read up to 16 (excluding initial whitespace) bytes of e.g. a wheel-accessible file.
Also, don't allow blocking on the opening of ~/.fakeid, so replace a fopen() with open() and fdopen(). I knew I'd be going to hell for using C file streams instead of POSIX syscalls...
|
68965 |
20-Nov-2000 |
ru |
mdoc(7) police: use the new features of the Nm macro.
|
67881 |
29-Oct-2000 |
n_hibma |
Be explicit about the fact that you can only specify one IP address/hostname
|
67514 |
24-Oct-2000 |
dwmalone |
Fix two typos in comments.
PR: 22268 Submitted by: Daniel S. Lewart <d-lewart@uiuc.edu>
|
67416 |
21-Oct-2000 |
dwmalone |
Claim maintainership of inetd.
|
67415 |
21-Oct-2000 |
dwmalone |
Don't leak a file discriptor if a service we've called accept() for loops.
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
|
66544 |
02-Oct-2000 |
dwmalone |
Make reconfiguring an external service as builtin service work.
PR: 21650 Submitted by: ben Tested by: dan@ducky.nz.freebsd.org
|
66543 |
02-Oct-2000 |
dwmalone |
Stop internal ident service spinning until the timeout if the connection goes away. Spotted by people on -STABLE about 2 weeks ago.
Submitted by: Based on a patch by alfred and Maxime Henrion <mux@qualys.com>
|
64197 |
03-Aug-2000 |
dwmalone |
Explain "-c" option more exactly and state the default in the man page.
Add ability to run "inetd -R 0" to disable the default connection per minute limit of 256 connections. Document this in man page.
Don't use maxchild as a boolean - instead check if it is greater than zero.
Reviewed by: sheldonh Based on a patch by: Alexander Langer <alex@big.endian.de>
|
64196 |
03-Aug-2000 |
dwmalone |
specifer -> specifier
|
64059 |
31-Jul-2000 |
dwmalone |
Sleep for a second after tcp wrappers rejects a connection, so we don't traumatise the parent inetd.
Requested by: wietse@porcupine.org Approved by: markm
|
63045 |
12-Jul-2000 |
dwmalone |
Make builtin ident service work if the request arrives in more than one packet. Also check that the whole request has been recieved before processing it.
The patch isn't the exact one from the PR, but a slight varient suggested by Brian.
PR: 16086 Submitted by: Hajimu UMEMOTO <ume@mahoroba.org> Reviewed by: green
|
61099 |
30-May-2000 |
green |
Fix the ident server up more: use ssize_t/size_t/socklen_t/int all in the proper places and make the fakeid parsing code a bit less stupid. Also, remove an "Rflag" that snuck in there (-R wouldn't be accepted by it, anyway).
|
61098 |
30-May-2000 |
jhb |
Fix a 64-bit'ism in the handling of the ident service. sysctlbyname() takes a size_t as its 3rd argument, which is 64-bits on the alpha. The 'len' variable used was a int, which is only 32-bits. Use size_t as the type for 'len' to work-around this.
|
59646 |
26-Apr-2000 |
sheldonh |
Clarify the use of the auth service's -d option for specifying a fallback username.
Reviewed by: green
|
58935 |
02-Apr-2000 |
ume |
Make sure to use IPv4 mapped IPv6 address when mapped address is requested in /etc/inetd.conf.
Reviewed by: shin
|
58735 |
28-Mar-2000 |
sheldonh |
Optimize those services that send only one block of data: use send(2) with the MSG_EOF flag set instead of write(2).
Submitted by: David Malone <dwmalone@maths.tcd.ie> Reviewed by: wollman
|
58712 |
28-Mar-2000 |
green |
Allow using "-d username" without "-r". Example: auth stream tcp nowait root internal auth -d "Only fools trust ident"
|
58468 |
22-Mar-2000 |
ru |
"can received" -> "can receive".
|
57906 |
11-Mar-2000 |
shin |
Make inetd compilable without INET6.
Approved by: jkh
Submitted by: jhb
|
57857 |
09-Mar-2000 |
shin |
Fix addr length argument value passed to sendto(). Some inetd internal udp servers didn't worked with problem. Also fix recvfrom() "fromlen" arg type from int * to socklen_t *.
Approved by: jkh
Submitted by: bde
|
57652 |
01-Mar-2000 |
sheldonh |
Clarify the facility used for logging with and without the wrapping options.
PR: 17017 Submitted by: Doug Barton <Doug@gorean.org>
|
57630 |
29-Feb-2000 |
sheldonh |
Remove broken hard sentence breaks, which mess up the typeset output.
|
57383 |
22-Feb-2000 |
shin |
Fix broken inet logging when wrapping options are not specified.
Approved by: jkh
Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
|
57084 |
09-Feb-2000 |
luigi |
Make inetd picobsd friendly, dont use ipsec when RELEASE_CRUNCH is defined
Approved-by: jordan
|
56973 |
03-Feb-2000 |
shin |
Fix inetd wrong AF check for RPC services
Incorrect Address Family check is done for RPC services, and fail to initialize it. The error check is replaced to new one, which checks if IPv4 bind is enabled or not. (It is disabled when IPv6 numeric addr is specified for -a bind address option.)
An review reqeust is once sent to des, but he quit MAINTAINER.
Approved by: jkh
|
56934 |
01-Feb-2000 |
des |
Drop maintainership of inetd, since nobody respects it anyway.
|
56759 |
28-Jan-2000 |
shin |
Fix inconsistent debug output. (syslog -> warnx)
Specified by: sheldonh
Reviewed by: des
|
56731 |
28-Jan-2000 |
sheldonh |
Fix English, mdoc and layout of the previous commit, as requested by the committer (shin). While I don't have permission for this change from the inetd maintainer (des), I assume that shin has permission and I'm just fixing his contribution up for him.
Okay, I couldn't resist, I made some extra changes:
* Replace ".Tn FreeBSD" with .Fx * Make the illegal TCPMUX and IPSEC sections legal subsections of the IMPLEMENTATION NOTES section.
Requested by: shin
|
56675 |
27-Jan-2000 |
shin |
Avoid verbose error messages when ipsec initialization for sockets failed usually, and print it only when debug is enabled. (This always happens when kernel is configured without IPSEC option.)
|
56590 |
25-Jan-2000 |
shin |
several tcp apps IPv6 update -inetd -rshd -rlogind -telnetd -rsh -rlogin
Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
|
56482 |
23-Jan-2000 |
charnier |
Do not dot terminate sentences inside FILES section. Lowercase inside error messages.
|
56303 |
20-Jan-2000 |
green |
I like base-36 better.
|
56298 |
19-Jan-2000 |
green |
Implement -g and -d options in my ident code. The -g flag uses a random garbage value for the username (hex garbage, that is), and the -d flag provides a default username for fallback purposes if the user cannot be looked up. That is very useful for the case where inetd auth is running on a NAT box.
While I'm here updating the manpage, clean up an English error and a few small nits.
|
53256 |
17-Nov-1999 |
peter |
Put the listening socket into non-blocking mode before doing an accept(2). This is a not really problem on -current as the accept race is fixed, however it is a MFC candidate for -stable.
This could possibly be slightly more efficient and leave the listening socket permanently in non-blocking mode, but I wasn't certain that I could catch all the stream/wait (not nowait) mode implications.
|
52219 |
13-Oct-1999 |
charnier |
Do not dot or \n terminate syslog string.
|
50479 |
28-Aug-1999 |
peter |
$Id$ -> $FreeBSD$
|
49105 |
26-Jul-1999 |
des |
Pull on my asbestos undies and claim ownership of inetd to prevent further flamage between our beloved messrs Hearn and Feldman. Further commits go through me. I urge the contestants to direct their energies at cleaning up main() in inetd.c, which has over time become a crawling horror.
|
49104 |
26-Jul-1999 |
green |
Here goes, the "clear up any possible confusion" commit. I've taken time to write up comments for the ident code tonight, so there should no longer be any confusion about the purpouse of whatever is in there. Wow, me commenting code... who'd have thought that would happen?
Reviewed by: DES
|
49102 |
26-Jul-1999 |
sheldonh |
Bring two wayward memory allocation failure messages in line with those featured in the rest of the code.
|
49089 |
25-Jul-1999 |
green |
More cleanups to ident_stream. Variables moved around, changed. Got rid of an extra variable or two, while making corrections to problems (that would probably not be a problem anyway, and worked.)
Partially Obtained from: David Malone <dwmalone@maths.tcd.ie>
|
49058 |
24-Jul-1999 |
green |
Correct a groff error in macro usage ("foo : bar" becomes "``foo: bar''"). Document the auth -n flag.
|
49057 |
24-Jul-1999 |
green |
More cleanups, asprintf() usage (proper, as opposed to using snprintf()), and addition of a -n .noident-checking flag.
|
49054 |
24-Jul-1999 |
green |
Clean up to match style(9) more closely. This should fix the problem of people having ants in their pants ;)
|
49052 |
24-Jul-1999 |
sheldonh |
Use comments to group functions by service more clearly. I've used the excuse of providing the RFC numbers for the associated services.
|
49051 |
24-Jul-1999 |
sheldonh |
Style nits: * Bring memory allocation failure handling in line with that of the rest of the code. * Nestle block curlies between case statements correctly.
I've left the in-block declarations alone, since style(9) says we should conform to the existing style within the code, and inetd already does this. I've left the asprintf()'s in there because that's how Brian wants it.
|
49034 |
23-Jul-1999 |
sheldonh |
Document the -o and -t options to the internal auth service and give an example of their usage in the sample config. Merge the two examples for the green internal auth service.
This commit failed the first time around because Brian beat me to the punch on inetd.8 . I like my descriptions better and I'm pretty sure Brian won't mind.
|
49033 |
23-Jul-1999 |
green |
Ahem. Put things back a bit. I declare variables in the scope they're used! I don't declare every variable at the top of a function because that wastes stack space. I've clarified the error a bit (for if asprintf() filas.)
|
49031 |
23-Jul-1999 |
green |
As per DES's prodding, document _all_ the arguments to inetd's auth service. This includes the -o "operating system" argument and the -t "timeout" argument.
|
49030 |
23-Jul-1999 |
sheldonh |
Style cleanups for iderror() and ident_stream(). Looks like c++ hang-over. ;-)
|
49029 |
23-Jul-1999 |
sheldonh |
Fix auth -t argument handling. It was broken for the "sec.usec" case. Add a warning for bogus -t arguments for the (debug) case.
|
49026 |
23-Jul-1999 |
des |
Don't match up TCP services with UDP sockets.
|
49015 |
23-Jul-1999 |
green |
Fixed a braino: lack of spaces in sscanf caused ident parsing to fail. Sorry, guys.
|
49005 |
22-Jul-1999 |
green |
"knobs are cheap". Here's a -t timeout option for the internal ident service. It takes a number (w/ or w/out .usec) as an argument.
|
49004 |
22-Jul-1999 |
green |
This commit encompasses the following changes to inetd: 1. Cleanups of ident_stream. "Evil" stdio is less used. 2. The BSD Copyright was added to the top of builtins.c. 3. As suggested, a timeout is now implemented in the ident service. It defaults to 10 seconds. If enough people want it, I'll make it configurable.
Suggested by: msmith
|
48991 |
22-Jul-1999 |
sheldonh |
Relegate the diagnostic descriptor counter to the -DSANITY_CHECK case.
|
48989 |
22-Jul-1999 |
sheldonh |
Remove unnecessary macro introduced in previous commit.
Also, the previous commit failed to reference:
PR: 12731 Submitted by: dwmalone@maths.tcd.ie (David "Inetd" Malone)
|
48988 |
22-Jul-1999 |
sheldonh |
Don't leak pipe descriptor to daemons on execv().
|
48985 |
22-Jul-1999 |
sheldonh |
Signal handlers should use _exit(2) and not exit(3).
|
48981 |
22-Jul-1999 |
sheldonh |
Move code for all builtin services from inetd.c to builtins.c, including the Green Piece. :-)
In future, new builtin services are less likely to need to touch the already tangled inetd.c .
|
48962 |
21-Jul-1999 |
sheldonh |
Fix for the hosts_options(5) spawn option.
Restore default SIGHUP, SIGCHLD and SIGALRM handlers in forked inetd processes. This happens to work around the fact that hosts_access() doesn't (but should) set SIG_IGN as the handler for SIGCHLD while it handles the spawn option, but it would make sense even if that were not true.
This does not address the leaking descriptors issue discussed on the same PR.
PR: 12731 Reviewed by: des Submitted by: David Malone <dwmalone@maths.tcd.ie>
|
48958 |
21-Jul-1999 |
sheldonh |
Fix horribly broken comment. The submitter of the associated code sent me the right comment and I bastardized it. :-(
|
48845 |
16-Jul-1999 |
sheldonh |
Document the new {auth,ident,tap} service and provide examples in the configuration file.
Requested by: green
|
48821 |
15-Jul-1999 |
green |
By popular demand, ident_stream now takes arguments. Ex: # This enables the old, fake ident service. auth stream tcp nowait root internal # This enables the new, real ident service. auth stream tcp nowait root internal auth -r # This enables ~/.fakeid support, too. auth stream tcp nowait root internal auth -r -f
|
48816 |
15-Jul-1999 |
green |
This is the working internal ident service. Turn it on by setting the make variable REAL_IDENT, and ~/.fakeid support can be added with FAKEID set. Note that the default behavior is the same as the old behavior.
|
48752 |
11-Jul-1999 |
green |
Fix ``:''.
PR: 12589
|
48698 |
09-Jul-1999 |
sheldonh |
Use the proctitle to indicate that we're busy wrapping a request for a service. Inetd already uses the process title to indicate that a request for an internal service is being serviced, so this addition is fairly orthogonal.
Submitted by: David Malone <dwmalone@maths.tcd.ie>
|
48697 |
09-Jul-1999 |
sheldonh |
Allow internal and external wrapping to be enabled independantly of each other. Instead of allowing the -w option to be specified twice, we now take -w (wrap external) and -W (wrap internal).
Discussed with: markm
|
48467 |
02-Jul-1999 |
sheldonh |
Allow service alias names from /etc/services to be used when specifying internal services in inetd.conf .
The inetd(8) manpage used to say that the official name of a service _must_ be used, yet inetd itself was hardcoded to used a service alias for the auth service, namely ident!
Rather than change inetd.conf and break existing configurations on next upgrade, we now allow service aliases as well as official names. This allows the software to work as expected and still support existing configurations.
This should not breaking existing wrapped configurations either and the inetd(8) manpage already states that it is the service name specified in inetd.conf that is used for calls to hosts_access(3).
PR: 11796 Reported by: Alex Charalabidis <alex@wnm.net> Approved by: des
|
48466 |
02-Jul-1999 |
sheldonh |
Clarify that the services name, as specified in inetd.conf, for an internal service should be used as the daemon name when constructing hosts_access(5) rules.
|
48383 |
30-Jun-1999 |
sheldonh |
Ommitted in previous commit message:
Submitted by: David Malone <dwmalone@maths.tcd.ie>
|
48382 |
30-Jun-1999 |
sheldonh |
Enable wrapping for dgram services and fix logging so that -l really does log all connections.
|
48315 |
28-Jun-1999 |
sheldonh |
Sync usage() with the manpage.
Approved by: mpp
|
48309 |
28-Jun-1999 |
sheldonh |
Fix broken logic: (!wrap || log) -> (!wrap && log) .
Reported by: David Malone <dwmalone@maths.tcd.ie>
|
48287 |
27-Jun-1999 |
sheldonh |
Fix the SYNOPSIS to reflect that the -w option can be specified twice.
Requested by: obrien Approved by: mpp
|
48279 |
27-Jun-1999 |
sheldonh |
Add command-line option (-w), specified once to enable wrapping and twice to enable wrapping for internal wrapping as well. If the option is not specified wrapping is turned off so that inetd will behave exactly as it used to before TCP Wrappers was imported.
Change etc/defaults/rc.conf so as to encourage wrapping on new systems.
Clarify the use of TCP Wrappers in the IMPLEMENTATION NOTES of the manual page.
Approved by: jkh
|
48070 |
21-Jun-1999 |
sheldonh |
Use Dq mdoc tag for double-quoted words.
|
48069 |
21-Jun-1999 |
sheldonh |
Fix handling of maximum children and connections per minute.
Submitted by: David Malone <dwmalone@maths.tcd.ie>
|
47972 |
17-Jun-1999 |
sheldonh |
Various fixes for inetd's TCP Wrappers support:
1) Handle forking and non-forking internal services correctly. Turn on wrapping for internal services because it works now. 2) Preserve server names for each service on HUP. 3) Honour hosts_options(5) severity option. 4) Add IMPLEMENTATION NOTES section to clarify TCP Wrappers usage and limitations.
This change may cause previously allowed builtin services (e.g. daytime) to be denied in existing configurations.
PR: 12097 Reviewed by: markm 1) Reported by: Pierre Beyssac <pb@fasterix.freenix.org> 2) Submitted by: Masachika ISHIZUKA <ishizuka@ish.org> 3) Submitted by: David Malone <dwmalone@maths.tcd.ie>
|
47015 |
11-May-1999 |
des |
Don't stop listening to the signal pipe just because you don't have anything else to do.
PR: 10468, 11594
|
46622 |
07-May-1999 |
markm |
There seems to be a problem (most likely when there is no hosts.allow) with wrapping the internal services, so do not wrap them for now.
|
46232 |
01-May-1999 |
obrien |
MFS: sort reference list and embelish history.
|
45588 |
11-Apr-1999 |
markm |
Fix the "internal" wrapping as well as a nasty bug involving the daemon name vs the path. Also fix some warnings and improve the wrapper section of the man page.
Nice debugging work by: Sheldon Hearn
|
45089 |
28-Mar-1999 |
markm |
Now inetd(8) has direct support for tcp_wrappers! Not working at the moment is support for the internal serfvices, so these are not enabled. Volunteers welcome!
|
42311 |
05-Jan-1999 |
danny |
Make machtime() function unsigned long instead of long. Reviewed by: phk
|
42250 |
02-Jan-1999 |
des |
Style cleanups.
Requested by: bde
|
42122 |
28-Dec-1998 |
des |
Back out rev. 1.42 and 1.43. Apply Graham Wheeler's signal handling patch.
Reviewed by: jkh & eivind Submitted by: Graham Wheeler <gram@cdsec.com> PR: bin/8183
|
41833 |
15-Dec-1998 |
dillon |
Remove signal mask prior to calling exec
|
41685 |
11-Dec-1998 |
dillon |
Reviewed by: freebsd-current
Fix signal/library corruption by blocking all signals except during select(). The reported corruption was with reentrancy in the malloc lib.
|
40910 |
04-Nov-1998 |
phk |
Add an "internal" driver for the "ident" protocol (tcp/113).
It will return "ERROR:HIDDEN-USER" for all requests.
To use it add: ident stream tcp nowait root internal to inetd.conf
|
38417 |
18-Aug-1998 |
jb |
Bruce says that %p is intended to format void pointers only. So use a void * cast. There are pointers and then there are _pointers_. One day I'll figure out which are which. 8-)
|
38380 |
17-Aug-1998 |
jb |
Remove a cast and print the pointer value with %p instead of %x.
|
37856 |
24-Jul-1998 |
ache |
Add (struct timezone *) cast to NULL for K&R
|
37850 |
23-Jul-1998 |
ache |
Use NULL as gettimeofday arg instead of 0 cast Add missing arg to error diagnostic Print yet one arg of error diagnostic
|
37844 |
22-Jul-1998 |
phk |
last patch misapplied.
|
37816 |
22-Jul-1998 |
phk |
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>
|
36853 |
10-Jun-1998 |
phk |
Spelling fixes.
PR: 6903 Reviewed by: phk Submitted by: Josh Gilliam <josh@quick.net>
|
36077 |
15-May-1998 |
pb |
Small typo in T/TCP patch ("speicfy" -> "specify").
|
36042 |
14-May-1998 |
guido |
On request of Garrett, ad a way to specify that a service should be reachable via T/TCP Reviewed by: Garrett Wollman
|
35948 |
11-May-1998 |
bde |
Fixed gross errors in previous commit. `sapipe' was used uninitialized to attempt to unblock SIGCHLD, but we actually want to unignore SIGPIPE.
Obtained from: OpenBSD
Finished conversion from sigvec to sigaction (don't assume that sa_mask is a scalar...). Didn't convert from sigblock to sigprocmask. Didn't fix missing error checking for sigaction...
|
35848 |
08-May-1998 |
guido |
Unblock SIGPIPE before execv(); convert from sigvec to sigaction Obtained from: OpenBSD
|
35829 |
07-May-1998 |
guido |
Redo tcpmux stuff. tcpmux handling is now performed after inetd forks. Furthermore, invalid input for tcpmux does not lead to an exiting inetd. This patch is recommended for people running tcpmux (which is NOT enabled by default)
|
35172 |
13-Apr-1998 |
wollman |
Document the requirement for TCPMUX to also be enabled as an internal service if any external TCPMUX servers are desired.
PR: 826
|
33794 |
24-Feb-1998 |
pst |
Make maxchild and max child-per-minute default values configurable from the command line or Makefile.
|
30847 |
29-Oct-1997 |
dima |
Add possibility to specify maximum number of connections per minute for a given IP address. This should be very effective against DoS attacks.
|
30807 |
28-Oct-1997 |
ache |
Implement group part now, final syntax is: user[:group][/login-class]
|
30792 |
27-Oct-1997 |
ache |
Implement login classes sepcification as user[/loginclass]
By default inetd run things with the same limits as from /etc/rc (daemon class) to not break anything as in good old days.
|
29602 |
19-Sep-1997 |
charnier |
Use err(3).
|
28907 |
29-Aug-1997 |
imp |
Remove and odd sleep found by David Holland and posted to -security. Reviewed by: Theo de Raadt (who put it into OpenBSD) Submitted by: David Holland <dholland@eecs.harvard.edu>
|
25674 |
10-May-1997 |
davidn |
login_getclass() -> login_getpwclass().
|
25253 |
28-Apr-1997 |
wollman |
Condition SO_PRIVSTATE twiddling on the definedness of SO_PRIVSTATE. (This was done as a #ifdef to keep source compatibility between 2.2 and 3.0.)
|
24428 |
31-Mar-1997 |
imp |
compare return value from getopt against -1 rather than EOF, per the final posix standard on the topic.
|
22997 |
22-Feb-1997 |
peter |
Revert $FreeBSD$ to $Id$
|
22306 |
05-Feb-1997 |
julian |
The "-a" option for inetd specifies a specific IP address for the server to bind to. This works until you send it a SIGHUP with a new service defined ... the new service is bound to INADDR_ANY.
This patch fixes this bug (in both RELENG_2_2 and -current).
This is a 2.2 candidate..(i.e. pure bug fix)
Submitted by: Archie Cobbs (archie@whistle.com)
|
21880 |
20-Jan-1997 |
wosch |
Sort cross references.
|
21673 |
14-Jan-1997 |
jkh |
Make the long-awaited change from $Id$ to $FreeBSD$
This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long.
Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
|
21640 |
13-Jan-1997 |
peter |
Implement minimal login class support (ie: does a setusercontext()). Enabled by defining LOGIN_CAP in Makefile, on by default.
|
19618 |
10-Nov-1996 |
julian |
Reviewed by: Bill fenner Submitted by: Archie Cobbs (Archie@whistle.com)
Changes to allow inted to control the number of servers to start on each service. This is a defence against a denial of service attack in which the system is made unusable by an external party. It also allows the behaviour of small memory systems to be more accuratly predicted, by bounding the extent to which processes can multiply.
|
19617 |
10-Nov-1996 |
julian |
Reviewed by: Bill fenner Submitted by: Archie Cobbs (archie@whistle.com)
changes to make inetd compile cleaner under -Wall
|
19298 |
01-Nov-1996 |
alex |
Fix incorrect length argument to memset() function. Closes PR#1937.
Submitted by: Archie Cobbs <archie@whistle.com>
|
19237 |
28-Oct-1996 |
joerg |
Do not modify a malloc()ed pointer; instead, use memmove().
Detected by: phkmalloc - AJ :)
|
17482 |
09-Aug-1996 |
julian |
Reviewed by: various Submitted by: archie@whistle.com
changes to allow inetd to bind to a single interface for more complicated options see xinetd in ports.
Obtained from: whistle.com
|
17197 |
17-Jul-1996 |
dg |
Increased listen() queue-depth limit to 64.
|
15656 |
07-May-1996 |
gpalmer |
Add $Id$
|
13956 |
07-Feb-1996 |
wollman |
Call setsockopt(SO_PRIVSTATE) to renounce SS_PRIV on all the sockets we create. (Nothing being called from inetd should use it anyway, but you can never be too careful.)
Translate the man page back into -mdoc.
|
13744 |
30-Jan-1996 |
mpp |
Fix a bunch of spelling errors in a bunch of man pages.
|
13142 |
01-Jan-1996 |
peter |
Make inetd use setproctitle from libutil instead of it's own version.
The old code can probably still be compiled with #define OLD_SETPROCTITLE
|
12024 |
03-Nov-1995 |
peter |
Workaround for the setlogin()-in-same-session-as-inetd bug.
This causes: 1: inetd to clear it's getlogin() name at startup (in case the sysadmin logged in and su'ed to root and restarted inetd) 2: inetd to start each spawned process in it's own session. 3: inetd to call setlogin() on non-root processes (eg: uucp for uucico) 4: log failures more extensively
This means that root spawned processes from inetd remain responsible for setting their login name if they change their uid. (eg: rshd, login, etc).
If they do not do so, it is safer for them to have no "login name" than a wrong one (like "root") because the getlogin() system call is documented as "secure" on 4.4BSD. inetd when started from /etc/rc would have no login name anyway, so this isn't really a change - it's making it consistant with the bootup state...
The setsid() change *may* cause something to break that is doing a setsid() itself and checking the result - it will fail now because it's already been done. The consensis seems to be that this is unlikely. David G. thinks this is acceptable as it is cleaner from an architectural point of view.
|
11933 |
30-Oct-1995 |
adam |
Implement simple quoting for command args. Previously "abc xyz" became 2 args split at the space.
|
11447 |
12-Oct-1995 |
wollman |
Record PID in /var/run/inetd.pid and document same.
|
11379 |
09-Oct-1995 |
dg |
Correct the "default rate" - it's 256/minute not 1000/minute.
|
9202 |
11-Jun-1995 |
rgrimes |
Merge RELENG_2_0_5 into HEAD
|
8857 |
30-May-1995 |
rgrimes |
Remove trailing whitespace.
|
5182 |
21-Dec-1994 |
wollman |
Disable UDP service looping attack.
|
2659 |
11-Sep-1994 |
csgr |
- increase TOOMANY, in line with 1.x - add logging option from 1.x
|
2657 |
11-Sep-1994 |
csgr |
Bring in handling of RPC services from 1.x (Guess who forgot to replace his inetd until today ;-)
|
1863 |
05-Aug-1994 |
wollman |
Get rid of update. Make man page installation work with our scheme (and rename a few in the process).
|
1554 |
26-May-1994 |
rgrimes |
This commit was generated by cvs2svn to compensate for changes in r1553, which included commits to RCS files with non-trunk default branches.
|