summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd
Commit message (Collapse)AuthorAgeFilesLines
* Nobody ever seemed to be interested in reviewing these changes, and ijoerg1997-05-032-10/+284
| | | | | | | | | | | | | | | | | | found that my syslogd is now running them for several months... Add an option to syslogd to restrict the IP addresses that are allowed to log to this syslogd. It's too late to develop the inter-syslogd communications protocol mentioned in the BUGS section, some 10 years too late. Thus, restricting the IP address range is about the most effective change we can do if we want to allow incoming syslog messages at all. IMHO, we should encourage the system administrators to use this option, and thus provide a knob in /etc/rc.* for it, defaulting to -a 127.0.0.1/32 (just as a hint about the usage). Please state opinions about whether to merge this change into 2.2 or not (i've got it running on RELENG_2_2 anyway).
* add an Id line, minor mdoc fix upsjmg1997-04-292-35/+63
| | | | | | add ftp to list of facilities in syslog.conf Closes PR#3389 Submitted-by: Pius Fischer
* Whoops -- code inspection showed I forgot to clean up getopt stringpst1997-04-261-2/+2
|
* Secure mode (-s) incorrectly disabled both sending and receiving of syslogpst1997-04-262-22/+15
| | | | packets over UDP. Secure boxes should still be able to send packets.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-2/+2
| | | | posix standard on the topic.
* Save and restore the state of the variable Initialized inside die().joerg1997-03-141-1/+4
| | | | | Otherwise, the shutdown message will print out with 15 NUL bytes in front, due to a missing timestamp.
* Typo police.mpp1997-02-221-4/+4
|
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* The "burn-in" phase has finished: this set of patches seems to runjoerg1997-02-222-7/+287
| | | | | | | | | | | | | stable now at a customer's site. Finally add the ability to syslogd to pipe particular messages through an arbitrary filtering command. Idea stolen from IRIX. This code is courtesy of the interface business GmbH, Dresden. Comment about whether to also merge this into 2.2 or not, please. Reviewed by: (long ago) peter
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | 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.
* Unlink LogName before attempting to open it. Since we now have a lovelyjkh1997-01-031-1/+2
| | | | | | bug in syslogd which causes it to die after random amounts of time (widely reported), this at least allows the administrator to easily restart it without wondering why it simply exits again each time.
* Revert part of the previous change. syslogd (when logging to ttys)peter1996-12-101-5/+3
| | | | | | | | | | | has always held an open file descriptor. This allowed logging to spare virtual consoles and being able to switch to them. My previous change removed this since all writes were done with ttymsg() which opens it's own fd, and hence syslogd didn't need it's own fd to send messages on... but this caused an unexpected behavior change. This should close PR#2176
* Don't close f->f_file on F_TTY types on error returns from ttymsg() sincepeter1996-11-261-4/+1
| | | | it wasn't open in the first place..
* Make the handling of the /dev/ prefix for tty names more consistant.peter1996-11-261-20/+28
| | | | | | | | | ttymsg() insists on them not being there. Also, since ttymsg() opens the tty "on demand", don't keep an fd open ourselves. This would interfere with HUPCL etc. This should close PR#2103 from <xaa@stack.nl>
* put on my flame resistant suit and tempt fate by attempting to fix some ofpeter1996-11-181-51/+69
| | | | | | | | | | | | | | | | | | | the races in my previous commits here, and fix some other problems with syslogd as well. - if the child process exited early (eg: could not bind to the socket), the boot process would hang for 30 seconds. The parent was not noticing that the child had exited. (my fault) - when writing to tty devices, instead of treating them like files that need \r\n instead of \n, actually use ttymsg() which has specific code intended to write to potentially blocking ttys safely. I had a machine lock up last night because /dev/console on a serial port got flow control blocked. Setting comcontrol drainwait fixed everything but syslogd which was going into a spin trying to write to the console and completely ignoreing everything else. - fix a couple of nonsensical bits of code while here.. eg: wait3 takes a pointer to an int. There is no sense in declaring it as 'union wait', then casting the pointer to (int *), then forgetting about it.
* Back out the entire change from rev 1.11 of syslogd.c. It was bogus.joerg1996-10-282-53/+8
| | | | Correct the man page to reflect the new reality.
* Reviewed by: various (mailing list feedback)julian1996-10-232-7/+57
| | | | | | | | Submitted by: whistle communications move the socket from /dev to /var/run by default TRANSITIONALLY make syslog add a symlink.. I PROMISE I'll remove that as soon as I have the makefiles etc fixed as well.
* syslogd has always bugged me with it's async startup at boot time.peter1996-10-051-6/+71
| | | | | | | | | | | | | | | | | | | For me, more often than not, the backgrounded syslogd daemon is not yet ready to process log messages before other things (such as named) want to log a heap of them. It seems that it's the O_SYNC writes of the stuff coming in from /dev/klog that's the slowdown. Anyway, instead of using the libc daemon, roll a modified version. This one has a timeout. The child will wait for either the timeout to expire or the child process to signal it to let it know that it's "ready" and the /dev/log socket is set up and active, so it's safe to continue the boot. It adds a small fraction of a second pause to the boot time, but on the other hand the overall boot time is *quicker* since the disk is not being thrashed while the log messages are getting written out synchronously one by one while other daemons are loading in parallel. The timeout is in case the child segfaults or something before becoming fully operational.
* Add info field.pst1996-09-271-1/+1
| | | | Closes pr docs/1679.
* Bring in some fixes from NetBSD and re-hack our syslogd to be option-compatiblepst1996-07-222-19/+28
| | | | | | | | | with theirs (change the -I option to -s (but leave -I in for backwards compat.) Also eliminate an make sane some magic numbers, and fix a small bug where we'd send to an unopened socket. Reviewed by: wollman Obtained from: NetBSD
* Correct synopsis (-d, -I options were missing because -mdoc mistookwollman1996-05-201-2/+2
| | | | the dI in `.Op Fl dI' for the name of an internal mdoc command).
* With the recent 'make install' change in the kernel build makefiles, anpeter1995-11-141-2/+4
| | | | | | | | | | `interesting' feature of syslogd turned up. It calls getbootfile() for each log entry. Since the kernel makefile now changes kern.bootfile when doing a 'make install', it's quite startling to see the syslog lines change. This change makes it call getbootfile() once at startup and cache it, saving a syscall per loop, and keeping something a little more asthetically pleasing in /var/log/messages...
* Add a command-line option `-I' to disable logging from UDP.wollman1995-10-122-14/+38
| | | | | | | Document `-d' and `-I'. Add a BUGS section noting that logging from UDP is an unauthenticated remote disk-filling service, and probably should be disabled by default in the absence of some sort of authentication.
* Remove unconditional unlink at startup and conditionalised the unlink at exitpaul1995-09-111-3/+5
| | | | | | | | | so that it only unlinks the file if syslogd knows it created it. If the path specified for the socket already exists then syslogd will now exit with an "address already in use" error which is more sensible than blindly unlinking the existing filename. This stops syslogd -d foo/bar from unlinking foo/bar if it's a real file.
* Fix up warning about const being lost.pst1995-08-231-2/+2
|
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* Updates from Peter da Silva to match the recent syslogd changes.jkh1995-01-041-3/+34
| | | | Submitted by: pds
* Extend syslogd to allow selection of log destinations by program.wollman1994-12-291-9/+72
| | | | | | Use getbootfile() to determine the kernel name. Submitted by: Peter da Silva
* Get rid of update. Make man page installation work with our schemewollman1994-08-051-2/+2
| | | | (and rename a few in the process).
* Converted 'vmunix' to 'kernel'.dg1994-08-051-1/+1
|
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-265-0/+1526
OpenPOWER on IntegriCloud