summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
Commit message (Collapse)AuthorAgeFilesLines
* Update a couple of comments relating to RFCs.dwmalone2006-04-171-2/+5
|
* Back out a Makefile change that accidently snook in.dwmalone2006-04-171-1/+1
|
* Port 37 (RFC 738) style times are supposed to be a 32 bit time sincedwmalone2006-04-172-7/+7
| | | | | | | | | | | | 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
* Perform minor rewording and grammatical improvement. Add a missing Xr.ceri2006-02-041-31/+40
|
* Revert previous commit for now, which seems to have (re)introduced somedelphij2006-01-183-150/+227
| | | | | | | old bugs, as well as some unwanted side effects. I will do more investigation and fix these issues first. Pointed out by: dwmalone
* Improves and cleanups over inetd(8):delphij2006-01-183-227/+150
| | | | | | | | | | | | - 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
* inetd(8) requires that /etc/netconfig be present, and contain entriesceri2005-12-301-0/+29
| | | | | | | | | | 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
* Pidfiles should be created with permission preventing users from openingpjd2005-09-161-1/+1
| | | | | | | 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
* Use pidfile(3) in inetd(8).pjd2005-08-241-8/+16
|
* Remove rexecd(8), a server that implements a particularly insecurenectar2005-06-101-1/+0
| | | | | | | 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.
* NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 definesume2005-05-131-17/+8
| | | | | NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special for it, now.
* Prefer C99's __func__ over GCC's __FUNCTION__.stefanf2004-09-261-9/+9
| | | | Approved by: dwmalone
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareimp2004-08-074-16/+0
| | | | (with permission of addtional copyright holders where appropriate)
* Mechanically kill hard sentence breaks.ru2004-07-021-14/+29
|
* Remove the requirement that the "discard" service be defined in thebrooks2004-04-201-1/+5
| | | | | | | services database. Now only services that are actually used need to be defined. Submitted by: ume
* The list of (key,value) pairs to request_init is terminated by a 0 key,dwmalone2004-04-041-1/+1
| | | | | | | not NULL. Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at> MFC after: 3 days
* On startup, warn if inetd's config file doesn't exist. This isn'tdwmalone2004-03-221-0/+2
| | | | | | | | | | | 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
* Revert previous change. The effect of -w or -W option is described incharnier2004-02-291-1/+1
| | | | | another paragraph. Obtained from: David Malone <dwmalone@maths.tcd.ie>
* According to source code, under certain conditions, logging goes to thecharnier2004-02-251-1/+1
| | | | | "auth" facility not "daemon". Submitted by: "Bill Richter (7X22KEY)" <richterb@binkley.foothill.net>
* Rather than use the gcc -fno-builtin-log flag, just rename the 'int log'peter2003-10-302-5/+4
| | | | variable.
* Since semantic of IPV6_PKTINFO was changed in RFC3542, we need toume2003-10-261-1/+1
| | | | | | use IPV6_RECVPKTINFO instead. Reported by: someone (I had removed the mail wrongly, sorry)
* Use -fno-builtin-log so gcc doesn't get ideas about using a math functionpeter2003-10-262-2/+3
| | | | | 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.
* Move my inetd maintainer note to src/MAINTAINERS.dwmalone2003-07-151-2/+0
|
* Get the connections per minute calculation right. By good fortunedwmalone2003-07-151-1/+1
| | | | | | | | | | | (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
* The .Xr utilitycharnier2003-06-081-4/+6
|
* Under some unusual conditions, inetd can leak a open file discriptordwmalone2003-02-231-7/+23
| | | | | | | | | | 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
* After calling login_getclass, be sure to call login_close so thatdwmalone2003-02-231-1/+6
| | | | | | | | | 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
* The tcp_wrappers function `fromhost()' can fail. In suchume2003-02-131-2/+16
| | | | | | | cases, the `struct sockaddr' will not be allocated. Reported by: nectar MFC after: 2 days
* Using LOGIN_SETALL &~LOGIN_SETMAC to avoid setting the MAC label improperly,rwatson2003-01-161-1/+1
| | | | | | | | | | 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
* For now, set only the resource limits and process priority associatedrwatson2003-01-081-1/+2
| | | | | | | | | | | | | | | | | 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
* Add used #include <limits.h>.wollman2002-10-271-3/+4
|
* When printing the wait status, break it down into a signal and a exit status.dwmalone2002-09-041-4/+10
| | | | | | PR: 41912 Submitted by: Aaron Smith <aaron@mutex.org> MFC after: 2 weeks
* Swap sense of no_v[46]bind variables and rename as v[46]bind_ok -dwmalone2002-09-041-19/+19
| | | | | | | this avoids some double negatives which are a bit difficult to parse. Always tread v[46]bind{,_ok} as booleans.
* Fix parsing of unix domain entries after addition of IPv6 RPC support.dwmalone2002-09-041-38/+39
| | | | | PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Don't initialise policy, v4bind and v6bind where the variables aredwmalone2002-09-021-3/+10
| | | | | | | | | | | 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>
* tpc -> tcp in an error message.dwmalone2002-09-021-2/+2
| | | | | PR: 40771 Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* Clear up a few warnings (unused variable, rpc versions are usigned so use %u,dwmalone2002-09-021-8/+7
| | | | | | rename a parameter to avoid shadowing a global). MFC after: 1 month
* mdoc(7) police: Removed redundant .Ns calls.ru2002-08-131-1/+1
|
* Add capability for limiting the maximum number of simultaneousume2002-08-073-4/+315
| | | | | | | | | 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
* use IPV6_V6ONLY instead of non standard IPV6_BINDV6ONLY.ume2002-07-221-4/+2
| | | | MFC after: 1 week
* Fix typo: corrisponds -> correspondsfanf2002-07-221-1/+1
|
* add support for rpc IPv6 (rpc/udp/46 ...)alfred2002-07-152-33/+103
| | | | Submitted by: Jean-Luc Richier <Jean-Luc.Richier@imag.fr>
* The .Nm utilitycharnier2002-07-141-9/+6
|
* Replace the SWAP(var0,var1) macro with SWAP(type,var0,var1) and use it asjmallett2002-06-221-9/+9
| | | | | | | | | 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
* Unused macro.jmallett2002-06-221-1/+0
|
* __FBSDID() strategic insertion.jmallett2002-06-212-5/+6
|
* Kill __P, yuck.jmallett2002-06-213-46/+46
|
* Mark unused variables __unused.jmallett2002-06-212-5/+5
| | | | Built standalone, inetd(8) is WARNS=5 clean, WARNS=6 if you ignore %m fits.
* Use __typeof__ instead of typeof.jmallett2002-06-211-1/+1
|
* Kill bad whitespace and do some style cleanups as a result of the protoize.jmallett2002-06-211-30/+20
|
OpenPOWER on IntegriCloud