summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syslogd/syslogd.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* sort options and SYNOPSIS;jmc2004-01-051-4/+4
| | | | sync usage();
* spacingderaadt2004-01-041-3/+3
|
* Buffered logging for syslogd. Logs may be stored in memory buffers anddjm2004-01-041-45/+384
| | | | | extracted using a small client. Useful for diskless systems. much feedback from deraadt@, canacar@, jmc@, jakob@ ; ok deraadt@
* spacingderaadt2003-12-291-5/+5
|
* convert from select() to poll() for main event loop; tested millert@, deraadt@djm2003-12-291-73/+59
| | | | ok deraadt@
* whack getopt ? matching; jeffi@rcn.comderaadt2003-09-191-3/+2
|
* Call tzset() to stash the current timezone before we chroot.millert2003-08-181-2/+4
| | | | OK deraadt@ and avsm@
* Privilege separated syslog daemon. The child listening to log requests dropsavsm2003-07-311-64/+120
| | | | | | | | | | | | | to user _syslogd and chroots itself, while the privileged parent grants it access to open logfiles and other calls it needs. The only difference from existing behaviour is that if syslog.conf changes and syslogd receives a HUP, it will re-exec itself and have two new PIDs. A HUP with an unchanged config will make syslogd reopen logfiles as before. Lots of help and code from deraadt@ , and advice from millert@ Various versions tested by todd, cloder, mpech, markus, tdeval and others
* dont silently truncate a domain socket specified via the -p argument;avsm2003-07-081-3/+8
| | | | error out instead if its too long. deraadt@ ok
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Fix typo in last commit, spotted by Brian Poole. That'll teach memillert2003-05-171-3/+3
| | | | to commit on an empty stomach.
* Cannot use strlcpy() for strings in struct utmp since they are not guaranteedmillert2003-05-171-3/+5
| | | | to be NUL-terminated. Fixes a bug introduced in rev 1.37; noticed by deraadt@
* Fix default facility when none is specified (should be LOG_USER,millert2003-03-211-4/+8
| | | | was LOG_UUCP due to a bug); Javier Kohen
* fix cutnpaste; from hunter@comsys.com.uamickey2002-12-221-3/+3
|
* Add -n option to print message source addresses numerically rather thancloder2002-11-211-11/+18
| | | | | | | symbolically. This saves address->name lookups, which is nice on log servers without a DNS cache. millert@, jakob@ ok
* use more socklen_t; pvalchevderaadt2002-09-061-4/+4
|
* Pass correct buffer length to snprintf on error condition; ericj@, fgsch@ ok.aaron2002-08-081-3/+3
|
* Sanity check snprintf() return values before using them. It is legal formillert2002-07-241-15/+19
| | | | snprintf(3) to return -1.
* ansideraadt2002-07-201-55/+28
|
* spelling; from Brian Poole <raj@cerias.purdue.edu>todd2002-06-141-3/+3
|
* Double socket receive buffer size; deraadt@ OKmillert2002-06-051-2/+17
|
* pid_t cleanupderaadt2002-05-261-3/+3
|
* fix usage; from Sam Smith <S@mSmith.net>.fgsch2002-05-251-3/+4
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-21/+21
|
* KNF, and remove unneccessary signal blocking and errno saving, since not signal handlers anymore; millert okderaadt2001-12-021-13/+4
|
* use volatile sig_atomic_t where possible; simply volatile i other placesderaadt2001-11-171-5/+5
|
* missing prototype (getmsgbufsize).markus2001-11-171-2/+3
|
* reread config from main loop instead of signal hander; ok deraadt@markus2001-11-171-7/+25
|
* no need for setjmp.hderaadt2001-11-161-3/+2
|
* Open files with O_NONBLOCK but turn off non-blocking mode formillert2001-08-031-11/+26
| | | | | | | non-ttys. If write(2) returns EAGAIN just ignore the error and move on. This prevents a locked terminal from causing syslogd grief. If we ever want to support logging to a fifo this will probably have to be revisited.
* fix typo; jcs@rt.fmderaadt2001-08-031-3/+3
|
* Wall cleanuppvalchev2001-07-271-3/+4
|
* Remove support for #!. It's not intuitive and if you happen to addfgsch2001-02-071-9/+4
| | | | | | lines as the end of a stock syslog.conf you're going to spend some time figuring why is not working as it should; problem found by riq@core-sdi.com, millert@ ok.
* mark remaining signal races which are difficult to fixderaadt2001-01-191-4/+5
|
* fix another signal race, and check signal flags even in non-EINTR from select casederaadt2001-01-161-7/+19
|
* fd_set overflows, move races out of signal handlers, and fd_set repairs;deraadt2001-01-111-76/+92
| | | | | some conversations with alejo@core-sdi.com, not sure yet if this is 100% perfect, but i have tested it and it works..
* Use vis(3) when escaping non-printable characters instead of doing itmillert2000-09-131-22/+14
| | | | | (poorly) by hand. Also fixes a potential one byte overflow noted by Solar Designer.
* do the save_errno thing, but other races still exist in herederaadt2000-08-171-3/+9
|
* enlarge msgbuf, somewhat line netbsd didderaadt2000-02-221-5/+32
|
* union wait -> intmillert1999-07-061-4/+9
| | | | wait3 -> waitpid (for portability)
* The necessary defs are in paths.h now.angelos1999-02-031-1/+1
|
* careful about sunx.sun_path termination; matter@research.suspicious.orgderaadt1999-01-051-3/+7
|
* make it 21 total log devsderaadt1998-06-261-1/+1
|
* Fix snprintf return value usage.millert1998-06-231-0/+2
|
* bogus use of variable for two purposes; guido@gvr.orgderaadt1998-06-111-4/+4
|
* MAXHOSTNAMELEN not MAXHOSTNAMELEN+1deraadt1998-05-181-6/+9
|
* select on nfds+1, not nfds. ficus@openbsd.orgmillert1998-05-051-1/+1
|
* use sigset_t all over the placederaadt1998-03-011-4/+8
|
* syslogd gets a new -a argument: specify additional AF_UNIX log devicesderaadt1998-02-111-43/+78
| | | | | syslogd should create & listen to. As in "syslogd -a /chroot/dev/log", I'm sure you get the idea.
* workaround gethostbyaddr() race in signal handler; more correct fix wouldderaadt1998-02-031-0/+5
| | | | | change SIGHUP handler to only set a flag that the main loop catches. But I'm lazy, and starting to believe noone gives a damn...