summaryrefslogtreecommitdiff
path: root/usr.sbin/syslogd
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$Peter Wemm1999-08-293-3/+3
| | | | Notes: svn path=/stable/3/; revision=50581
* MFC: fight with false newlines.Dmitrij Tejblum1999-05-061-37/+64
| | | | Notes: svn path=/stable/3/; revision=46560
* MFC rev 1.50, and somebody pass me the pointy hat please...Dag-Erling Smørgrav1999-05-041-2/+2
| | | | Notes: svn path=/stable/3/; revision=46429
* MFC: Fascist mode (do not open a datagram socket at all).Dag-Erling Smørgrav1999-05-012-7/+9
| | | | Notes: svn path=/stable/3/; revision=46230
* Ensure a terminating null when processing hostname strings fromChris Timmons1998-12-291-4/+7
| | | | | | | | arbitrary sources. Obtained from: OpenBSD Notes: svn path=/head/; revision=42154
* Accept "!*" as a valid all-programs tag line as documented.Chris Timmons1998-12-291-2/+2
| | | | | | | | PR: 8447 Submitted by: Gaspar Chilingarov <nightmar@lemming.acc.am> Notes: svn path=/head/; revision=42148
* Block SIGHUP during call to gethostbyaddr().Chris Timmons1998-12-281-1/+6
| | | | | | | | | PR: 5548 Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Obtained from: OpenBSD Notes: svn path=/head/; revision=42114
* Allow either tabs or spaces in configuration files.Jordan K. Hubbard1998-12-042-10/+22
| | | | | | | | PR: 8762 Submitted by: Igor Roshchin <str@giganda.komkon.org> Notes: svn path=/head/; revision=41498
* When warning about discarding packets in secure mode, include the IPDavid Greenman1998-11-051-2/+3
| | | | | | | address of the most recent offender. Notes: svn path=/head/; revision=40930
* Submitted by: archie@whistle.comJulian Elischer1998-08-252-3/+4
| | | | | | | quieten cc -Wall Notes: svn path=/head/; revision=38547
* Harlan.Stenn@pfcs.com added two (very interesting) options to syslogd forPoul-Henning Kamp1998-07-271-3/+3
| | | | | | | | | | | | | -current (Thanks Harald). However, on my attempt to try this on -STABLE, I found that when forwarding to another host the actual messages gets lost. This is due to a wrong index because when the -v option was added, the indexes shifted one place. PR: 7407 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Notes: svn path=/head/; revision=37886
* Add -u, -v and -vv options to syslogd, this improves the control andPoul-Henning Kamp1998-07-223-17/+147
| | | | | | | | | | logging verbosity about facility & priority levels. PR: 7278 Reviewed by: phk Submitted by: Harlan Stenn <Harlan.Stenn@pfcs.com> Notes: svn path=/head/; revision=37820
* Fixed printf format errors.Bruce Evans1998-07-061-2/+2
| | | | Notes: svn path=/head/; revision=37450
* Fix off by 1 error.Guido van Rooij1998-07-021-2/+2
| | | | Notes: svn path=/head/; revision=37344
* Note in log file if messages are being forwarded from aSteve Price1998-06-271-2/+9
| | | | | | | | | | remote machine. PR: 7055 Submitted by: Edwin Groothus <edwin@nwm.wan.philips.com> Notes: svn path=/head/; revision=37209
* Implement new argument -l (OpenBSD has -a but we already use that).Guido van Rooij1998-06-252-59/+98
| | | | | | | | | | This allows one to specify additional sockets in the unix domain that syslogd listens to. Its primary use is to create log sockets in chroot environments. Obtained from:OpenBSD (with a bug fixed d Notes: svn path=/head/; revision=37156
* Reviewed by: guido@mouse.gvr.orgJulian Elischer1998-06-241-25/+18
| | | | | | | | | Submitted by: Archie@whistle.com redo the last patch to allow differentiated kernel logging in a much better way. Notes: svn path=/head/; revision=37145
* Allow syslogd to separate out kernel log messages with a knownJulian Elischer1998-06-102-6/+22
| | | | | | | | | | | | category. e.g. separate out ipfw entries to a separate file. Reviewed by: (briefly) phk Submitted by: archie@whistle.com Obtained from: Whistle source tree Notes: svn path=/head/; revision=36837
* Remove a bogus dependency on the size of the inkernel msgbuf.Poul-Henning Kamp1998-05-191-4/+3
| | | | | | | | | | | | This change is likely to introduce a few linebreaks in the boot messages, but that is not easy to solve without breaking syslogd semantics. Maybe the right fix is to return an integral number of lines from the kernel driver. Noticed by: dg Notes: svn path=/head/; revision=36184
* Make syslogd function in non-secure mode.Brian Somers1998-05-071-4/+4
| | | | | | | Log the correct ^2 packet as per the last commit comment. Notes: svn path=/head/; revision=35819
* Augment the last change after some deliberation with rgrimes & peter.Poul-Henning Kamp1998-04-242-24/+34
| | | | | | | | | | | It is important that we keep the ability to send packets to a remote server and that the packets come from our well-known port, also in that case. Reviewed by: peter, rgrimes. Notes: svn path=/head/; revision=35428
* Even with '-s', syslogd still creates an AF_INET socket, althoughPoul-Henning Kamp1998-04-221-21/+20
| | | | | | | | | | | it is not bind(2)ed. PR: 6366 Reviewed by: phk Submitted by: Soren S. Jorvang <soren@dt.dk> Notes: svn path=/head/; revision=35382
* Don't assume sigset_t and int are equivalent. Also, getJames Raynard1998-02-281-6/+8
| | | | | | | sigprocmask arguments the right way round. Notes: svn path=/head/; revision=33921
* Cosmetic in usage string.Philippe Charnier1997-10-203-21/+23
| | | | Notes: svn path=/head/; revision=30603
* Documentation for the LOG_NTP facility. While i was at it, added aJoerg Wunsch1997-10-061-2/+9
| | | | | | | | bit of a warning about not all systems providing for the same set of syslog facilities. Notes: svn path=/head/; revision=30184
* Use snprintf() instead of sprintf() most of the time.Brian Somers1997-09-192-13/+13
| | | | | | | | | Obtained from: OpenBSD Make usage() consistent with man page. Notes: svn path=/head/; revision=29623
* Explain a little more about the piping feature.Joerg Wunsch1997-09-141-3/+7
| | | | | | | PR: 4122 Notes: svn path=/head/; revision=29376
* Nobody ever seemed to be interested in reviewing these changes, and iJoerg Wunsch1997-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). Notes: svn path=/head/; revision=25437
* add an Id line, minor mdoc fix upsJohn-Mark Gurney1997-04-292-35/+63
| | | | | | | | | add ftp to list of facilities in syslog.conf Closes PR#3389 Submitted-by: Pius Fischer Notes: svn path=/head/; revision=25276
* Whoops -- code inspection showed I forgot to clean up getopt stringPaul Traina1997-04-261-2/+2
| | | | Notes: svn path=/head/; revision=25155
* Secure mode (-s) incorrectly disabled both sending and receiving of syslogPaul Traina1997-04-262-22/+15
| | | | | | | packets over UDP. Secure boxes should still be able to send packets. Notes: svn path=/head/; revision=25154
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-311-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24428
* Save and restore the state of the variable Initialized inside die().Joerg Wunsch1997-03-141-1/+4
| | | | | | | | Otherwise, the shutdown message will print out with 15 NUL bytes in front, due to a missing timestamp. Notes: svn path=/head/; revision=23868
* Typo police.Mike Pritchard1997-02-221-4/+4
| | | | Notes: svn path=/head/; revision=23004
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-222-2/+2
| | | | Notes: svn path=/head/; revision=22997
* The "burn-in" phase has finished: this set of patches seems to runJoerg Wunsch1997-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 Notes: svn path=/head/; revision=22984
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Unlink LogName before attempting to open it. Since we now have a lovelyJordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21248
* Revert part of the previous change. syslogd (when logging to ttys)Peter Wemm1996-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 Notes: svn path=/head/; revision=20290
* Don't close f->f_file on F_TTY types on error returns from ttymsg() sincePeter Wemm1996-11-261-4/+1
| | | | | | | it wasn't open in the first place.. Notes: svn path=/head/; revision=19963
* Make the handling of the /dev/ prefix for tty names more consistant.Peter Wemm1996-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> Notes: svn path=/head/; revision=19962
* put on my flame resistant suit and tempt fate by attempting to fix some ofPeter Wemm1996-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. Notes: svn path=/head/; revision=19854
* Back out the entire change from rev 1.11 of syslogd.c. It was bogus.Joerg Wunsch1996-10-282-53/+8
| | | | | | | Correct the man page to reflect the new reality. Notes: svn path=/head/; revision=19224
* Reviewed by: various (mailing list feedback)Julian Elischer1996-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. Notes: svn path=/head/; revision=19137
* syslogd has always bugged me with it's async startup at boot time.Peter Wemm1996-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. Notes: svn path=/head/; revision=18710
* Add info field.Paul Traina1996-09-271-1/+1
| | | | | | | Closes pr docs/1679. Notes: svn path=/head/; revision=18523
* Bring in some fixes from NetBSD and re-hack our syslogd to be option-compatiblePaul Traina1996-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 Notes: svn path=/head/; revision=17245
* Correct synopsis (-d, -I options were missing because -mdoc mistookGarrett Wollman1996-05-201-2/+2
| | | | | | | the dI in `.Op Fl dI' for the name of an internal mdoc command). Notes: svn path=/head/; revision=15829
* With the recent 'make install' change in the kernel build makefiles, anPeter Wemm1995-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... Notes: svn path=/head/; revision=12302
* Add a command-line option `-I' to disable logging from UDP.Garrett 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. Notes: svn path=/head/; revision=11448