summaryrefslogtreecommitdiffstats
path: root/usr.sbin/inetd
Commit message (Collapse)AuthorAgeFilesLines
* Give inetd the ability to manage unix domain sockets. Details ofdwmalone2001-06-163-12/+169
| | | | | | | | | | | 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
* Correct cross-reference:sobomax2001-06-071-1/+1
| | | | | | portmap.8 --> rpcbind.8 Submitted by: .Xr testing script
* Get rid of se_ctladdrinitok, which doesn't do anything and seemesdwmalone2001-06-062-16/+0
| | | | | | | to have been accidently imported when ipv6 support was added to inetd. Approved by: ume
* Correct a comment - the time service returns seconds since 1900 not 1970.dwmalone2001-06-041-1/+1
| | | | Submitted by: ru
* This patch cleans up the ident stuff in inetd. The code which hasdwmalone2001-06-043-123/+145
| | | | | | | | | | | | | | | | | | | 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
* Recently, other BSDs had faith support in inetd. Though our inetd hasume2001-05-311-1/+7
| | | | | | | | 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
* Make dg_echo return up to the first 65536 bytes of a datagram.dwmalone2001-05-261-1/+1
| | | | | | | | | 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>
* Don't spell requester as requestor.dwmalone2001-05-261-1/+1
|
* Allow ident requests with trailing junk following the terminating "\n".dwmalone2001-03-281-1/+3
| | | | | Reviewed by: ben Approved by: green
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for usr.sbin/ to 8.ru2001-03-201-1/+0
|
* Eliminate mdocNG warnings caused by misplaced or extraneous macro calls.ru2001-02-281-2/+2
|
* Switch to using a struct xucred instead of a struct xucred when notgreen2001-02-181-1/+1
| | | | | | | | | | | | | | | | | 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
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-2/+4
|
* Various cleanups of inetd: Avoid shadowing variables, use socklen_tdwmalone2001-01-222-20/+18
| | | | | | | 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.
* Don't mention /etc/protocols in inetd documentation or comments, as inetddwmalone2001-01-222-5/+4
| | | | | | | doesn't actually use it. PR: 24307 Submitted by: opentrax@email.com
* Prepare for mdoc(7)NG.ru2000-12-271-1/+1
|
* Add a -F option to the builtin ident service, which allows .fakeid filesdwmalone2000-12-052-3/+17
| | | | | | | | | to contain the name of other valid users. PR: 22837 Submitted by: Andreas Gerstenberg <andy@andy.de> Reviewed by: green Reviewed by: sheldonh
* Tidy up some prototypes:dwmalone2000-12-033-7/+10
| | | | | | | 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.
* Make some style changes to the ident_stream() code.green2000-12-021-14/+20
| | | | | Partially submitted by: alfred Reviewed by: alfred
* Security fix: correctly set groups according to the user. Previously,green2000-11-251-6/+15
| | | | | | | | | 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...
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-3/+3
|
* Be explicit about the fact that you can only specify one IP address/hostnamen_hibma2000-10-291-1/+1
|
* Fix two typos in comments.dwmalone2000-10-242-2/+2
| | | | | PR: 22268 Submitted by: Daniel S. Lewart <d-lewart@uiuc.edu>
* Claim maintainership of inetd.dwmalone2000-10-211-0/+2
|
* Don't leak a file discriptor if a service we've called accept() fordwmalone2000-10-211-0/+3
| | | | | | loops. Submitted by: Ian Dowse <iedowse@maths.tcd.ie>
* Make reconfiguring an external service as builtin service work.dwmalone2000-10-021-0/+1
| | | | | | PR: 21650 Submitted by: ben Tested by: dan@ducky.nz.freebsd.org
* Stop internal ident service spinning until the timeout if thedwmalone2000-10-021-0/+2
| | | | | | | 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>
* Explain "-c" option more exactly and state the default in the mandwmalone2000-08-032-8/+13
| | | | | | | | | | | | | 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>
* specifer -> specifierdwmalone2000-08-031-1/+1
|
* Sleep for a second after tcp wrappers rejects a connection, so wedwmalone2000-07-311-1/+3
| | | | | | | don't traumatise the parent inetd. Requested by: wietse@porcupine.org Approved by: markm
* 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.)
OpenPOWER on IntegriCloud