summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
Commit message (Collapse)AuthorAgeFilesLines
* Make builtin ident service work if the request arrives in more thandwmalone2000-07-121-15/+38
| | | | | | | | | | | | 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
* Fix the ident server up more: use ssize_t/size_t/socklen_t/int all in thegreen2000-05-301-23/+22
| | | | | | 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).
* Fix a 64-bit'ism in the handling of the ident service. sysctlbyname() takesjhb2000-05-301-1/+2
| | | | | | 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.
* Clarify the use of the auth service's -d option for specifyingsheldonh2000-04-261-6/+15
| | | | | | a fallback username. Reviewed by: green
* Make sure to use IPv4 mapped IPv6 address when mapped address isume2000-04-021-5/+6
| | | | | | requested in /etc/inetd.conf. Reviewed by: shin
* Optimize those services that send only one block of data: use send(2)sheldonh2000-03-281-4/+4
| | | | | | | with the MSG_EOF flag set instead of write(2). Submitted by: David Malone <dwmalone@maths.tcd.ie> Reviewed by: wollman
* Allow using "-d username" without "-r". Example:green2000-03-282-5/+20
| | | | auth stream tcp nowait root internal auth -d "Only fools trust ident"
* "can received" -> "can receive".ru2000-03-221-1/+1
|
* Make inetd compilable without INET6.shin2000-03-112-2/+4
| | | | | | Approved by: jkh Submitted by: jhb
* Fix addr length argument value passed to sendto().shin2000-03-091-10/+10
| | | | | | | | | 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
* Clarify the facility used for logging with and without the wrappingsheldonh2000-03-011-7/+20
| | | | | | | options. PR: 17017 Submitted by: Doug Barton <Doug@gorean.org>
* Remove broken hard sentence breaks, which mess up the typeset output.sheldonh2000-02-291-16/+32
|
* Fix broken inet logging when wrapping options are not specified.shin2000-02-221-2/+2
| | | | | | Approved by: jkh Submitted by: Ben Smithurst <ben@scientia.demon.co.uk>
* Make inetd picobsd friendly, dont use ipsec when RELEASE_CRUNCHluigi2000-02-091-3/+6
| | | | | | is defined Approved-by: jordan
* Fix inetd wrong AF check for RPC servicesshin2000-02-031-2/+3
| | | | | | | | | | | | 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
* Drop maintainership of inetd, since nobody respects it anyway.des2000-02-011-1/+0
|
* Fix inconsistent debug output. (syslog -> warnx)shin2000-01-281-12/+8
| | | | | | Specified by: sheldonh Reviewed by: des
* Fix English, mdoc and layout of the previous commit, as requested bysheldonh2000-01-281-60/+81
| | | | | | | | | | | | | | 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
* Avoid verbose error messages when ipsec initialization for sockets failedshin2000-01-271-2/+4
| | | | | usually, and print it only when debug is enabled. (This always happens when kernel is configured without IPSEC option.)
* several tcp apps IPv6 updateshin2000-01-255-111/+702
| | | | | | | | | | | | -inetd -rshd -rlogind -telnetd -rsh -rlogin Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
* Do not dot terminate sentences inside FILES section. Lowercasecharnier2000-01-232-10/+10
| | | | inside error messages.
* I like base-36 better.green2000-01-201-4/+18
|
* Implement -g and -d options in my ident code. The -g flag uses a randomgreen2000-01-192-18/+67
| | | | | | | | | | 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.
* Put the listening socket into non-blocking mode before doing anpeter1999-11-171-0/+8
| | | | | | | | | 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.
* Do not dot or \n terminate syslog string.charnier1999-10-131-3/+3
|
* $Id$ -> $FreeBSD$peter1999-08-286-6/+6
|
* Pull on my asbestos undies and claim ownership of inetd to prevent furtherdes1999-07-261-1/+2
| | | | | | 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.
* Here goes, the "clear up any possible confusion" commit.green1999-07-261-11/+65
| | | | | | | | | 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
* Bring two wayward memory allocation failure messages in line withsheldonh1999-07-261-3/+3
| | | | those featured in the rest of the code.
* More cleanups to ident_stream. Variables moved around, changed.green1999-07-251-16/+11
| | | | | | | 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>
* Correct a groff error in macro usage ("foo : bar" becomes "``foo: bar''").green1999-07-241-3/+9
| | | | Document the auth -n flag.
* More cleanups, asprintf() usage (proper, as opposed to using snprintf()),green1999-07-241-12/+36
| | | | and addition of a -n .noident-checking flag.
* Clean up to match style(9) more closely. This should fix the problem ofgreen1999-07-241-6/+5
| | | | people having ants in their pants ;)
* Use comments to group functions by service more clearly. I've used thesheldonh1999-07-241-2/+31
| | | | excuse of providing the RFC numbers for the associated services.
* Style nits:sheldonh1999-07-241-5/+8
| | | | | | | | | | | * 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.
* Document the -o and -t options to the internal auth service and give ansheldonh1999-07-231-7/+9
| | | | | | | | | 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.
* Ahem. Put things back a bit. I declare variables in the scope they'regreen1999-07-231-9/+13
| | | | | | 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.)
* As per DES's prodding, document _all_ the arguments to inetd's authgreen1999-07-231-2/+8
| | | | | service. This includes the -o "operating system" argument and the -t "timeout" argument.
* Style cleanups for iderror() and ident_stream(). Looks like c++ hang-over.sheldonh1999-07-231-25/+24
| | | | ;-)
* Fix auth -t argument handling. It was broken for the "sec.usec" case.sheldonh1999-07-231-4/+5
| | | | Add a warning for bogus -t arguments for the (debug) case.
* Don't match up TCP services with UDP sockets.des1999-07-231-3/+4
|
* Fixed a braino: lack of spaces in sscanf caused ident parsing to fail.green1999-07-231-2/+2
| | | | Sorry, guys.
* "knobs are cheap". Here's a -t timeout option for the internal identgreen1999-07-221-2/+18
| | | | service. It takes a number (w/ or w/out .usec) as an argument.
* This commit encompasses the following changes to inetd:green1999-07-222-32/+85
| | | | | | | | | | 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
* Relegate the diagnostic descriptor counter to the -DSANITY_CHECK case.sheldonh1999-07-221-4/+10
|
* Remove unnecessary macro introduced in previous commit.sheldonh1999-07-221-4/+5
| | | | | | | Also, the previous commit failed to reference: PR: 12731 Submitted by: dwmalone@maths.tcd.ie (David "Inetd" Malone)
* Don't leak pipe descriptor to daemons on execv().sheldonh1999-07-221-4/+6
|
* Signal handlers should use _exit(2) and not exit(3).sheldonh1999-07-221-2/+2
|
* Move code for all builtin services from inetd.c to builtins.c, includingsheldonh1999-07-224-583/+648
| | | | | | | the Green Piece. :-) In future, new builtin services are less likely to need to touch the already tangled inetd.c .
* Fix for the hosts_options(5) spawn option.sheldonh1999-07-211-5/+9
| | | | | | | | | | | | | | | 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>
OpenPOWER on IntegriCloud