| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
messages from the network. We already replace malformatted timestamps
and this option lets us replace timestamps that are correctly formatted
but wrong.
PR: 120891
Submitted by: Thomas Vogt <thomas@bsdunix.ch>
MFC after: 1 week
Notes:
svn path=/head/; revision=183347
|
|
|
|
| |
Notes:
svn path=/head/; revision=182605
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=180380
|
|
|
|
| |
Notes:
svn path=/head/; revision=178986
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Use [AP]F_LOCAL rather than [AP]F_UNIX.
2) When copying a pipe's name, use f->f_un.f_pipe.f_pname, not f->f_un.f_fname.
PR: 20889
Submitted by: Damieon Stark
PR: 116642
Submitted by: Jim Pirzyk
Reviewed by: md5
Notes:
svn path=/head/; revision=176427
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
for the port to drain).
+ Handle "*" as a priority properly.
+ Test what is free'ed.
+ Dynamically determine length vs. hardcoding it.
+ Free the previous message buffer (f_prevline) only after logging all the
messages and just before the process exit. Also check f_prevline for NULL
before using it.
+ The time displayed is not synchornized with the other log destinations.
+ Fix a comment.
Obtained from: Juniper Networks
Notes:
svn path=/head/; revision=174533
|
|
|
|
| |
Notes:
svn path=/head/; revision=174316
|
|
|
|
|
|
|
|
|
| |
PR: 95039
Sumitted by: SeaD (older version)
Reviewed by: ru
Notes:
svn path=/head/; revision=163255
|
|
|
|
| |
Notes:
svn path=/head/; revision=162806
|
|
|
|
| |
Notes:
svn path=/head/; revision=162805
|
|
|
|
| |
Notes:
svn path=/head/; revision=160753
|
|
|
|
|
|
|
|
| |
standard syslog port. This allows syslog to easily export lines of interest to
an external logging system.
Notes:
svn path=/head/; revision=157821
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
internal list of logfiles. So if writev(2) fails for potentially transient
errors like ENOSPC, syslogd requires a restart, even if the filesystem has
purged.
This change allows syslogd to ignore ENOSPC space errors, so that when the
filesystem is cleaned up, syslogd will automatically start logging again
without requiring the reset. This makes syslogd(8) a bit more reliable.
MFC after: 1 week
Notes:
svn path=/head/; revision=157311
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
when they don't exist, but sometimes its quite useful (eg. we use
non-standard log files and memory backed /var/, which is populated on
boot).
Add -C option which tells syslogd(8) to create log files if they don't
exist.
Glanced at by: phk
MFC after: 3 days
Notes:
svn path=/head/; revision=156339
|
|
|
|
| |
Notes:
svn path=/head/; revision=155954
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
foo() {
}
to
foo()
{
}
Notes:
svn path=/head/; revision=151420
|
|
|
|
|
|
|
| |
Pointy hat to: Jeremie Le Hen
Notes:
svn path=/head/; revision=150690
|
|
|
|
|
|
|
| |
Submitted by: Jeremie Le Hen <jeremie le-hen org>
Notes:
svn path=/head/; revision=150689
|
|
|
|
| |
Notes:
svn path=/head/; revision=149425
|
|
|
|
|
|
|
|
|
|
|
| |
that have at least 3 characters.
MFC after: 1 week
Thanks to: Music band ``Chingon''
for keeping me company while searching for these.
Notes:
svn path=/head/; revision=148580
|
|
|
|
|
|
|
|
|
|
|
|
| |
catch all transient errors. This fixes situations where transient
error conditions such as network interfaces losing carrier signals
or the system running out of mbufs would result in the permanent
removal of forwarding syslog messages.
MFC after: 1 week
Notes:
svn path=/head/; revision=146414
|
|
|
|
|
|
|
|
| |
NI_WITHSCOPEID, and our getaddrinfo(3) does nothing special
for it, now.
Notes:
svn path=/head/; revision=146187
|
|
|
|
|
|
|
|
|
|
| |
socket /var/run/logpriv.
Reviewed by: glebius and kensmith
MFC after: 2 days
Notes:
svn path=/head/; revision=144984
|
|
|
|
|
|
|
|
| |
PR: bin/79260
Submitted by: Shuichi KITAGUCHI
Notes:
svn path=/head/; revision=144218
|
|
|
|
| |
Notes:
svn path=/head/; revision=141851
|
|
|
|
| |
Notes:
svn path=/head/; revision=141846
|
|
|
|
| |
Notes:
svn path=/head/; revision=140442
|
|
|
|
| |
Notes:
svn path=/head/; revision=140063
|
|
|
|
|
|
|
|
|
| |
addresses and scope IDs.
MFC after: 3 weeks
Notes:
svn path=/head/; revision=139384
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
than a colon, so don't allow whitespace in program names. To be
consistent with hostnames, don't allow whitespace in the program
name specifiers in syslog.conf either.
(The first change is by Markus from the PR, the second is mine.)
PR: 68691
Submitted by: Markus Oestreicher <m.oe@x-trader.de>
MFC after: 3 weeks
Notes:
svn path=/head/; revision=139381
|
|
|
|
| |
Notes:
svn path=/head/; revision=137858
|
|
|
|
| |
Notes:
svn path=/head/; revision=137857
|
|
|
|
| |
Notes:
svn path=/head/; revision=137580
|
|
|
|
|
|
|
| |
Requested by: ru
Notes:
svn path=/head/; revision=137578
|
|
|
|
|
|
|
| |
Approved by: cvs diff -b
Notes:
svn path=/head/; revision=137569
|
|
|
|
|
|
|
|
|
|
|
| |
PR: bin/72366
Ok'd by: dwmalone
Approved by: julian (mentor)
Obtained from: OpenBSD
MFC after: 1 month
Notes:
svn path=/head/; revision=137568
|
|
|
|
|
|
|
|
|
| |
Noticed by: trhodes
Pointy hat: kensmith
MFC after: 1 week
Notes:
svn path=/head/; revision=137437
|
|
|
|
|
|
|
| |
MFC after: 1 week
Notes:
svn path=/head/; revision=137436
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
syslog(3) if we are a priveleged program (sshd, su, etc.).
- Make syslogd open an additional socket /var/run/logpriv, with 0600
permissions.
- In libc, try to use this socket.
- Do not loop forever if we are using this socket (partial backout of 1.31)
Reviewed by: dwmalone, Andrea Campi <andrea webcom it>
Approved by: julian (mentor)
MFC after: 1 month
Notes:
svn path=/head/; revision=137233
|
|
|
|
|
|
|
|
|
|
|
|
| |
remove limit for 20 sockets.
- Add possibility to specify file mode for sockets created with '-l'.
- Check that socket name in '-l' is absolute.
Reviewed by: dwmalone, Andrea Campi <andrea webcom it>
Approved by: julian (mentor)
Notes:
svn path=/head/; revision=137232
|
|
|
|
|
|
|
| |
(with permission of addtional copyright holders where appropriate)
Notes:
svn path=/head/; revision=133249
|
|
|
|
|
|
|
| |
Pointed out by: dwmalone
Notes:
svn path=/head/; revision=131591
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
FFLAG_NEEDSYNC and fsync the file when select() next returns zero. This
dramatically speeds up the process of logging large amounts of data, while
leaving the essential semantics (that data can be expected to be on disk
if we crash) unchanged.
In my tests, this speeds up the rc phase of booting by 18-20%. [1]
YES PLEASE! by: phk [1]
Notes:
svn path=/head/; revision=131589
|
|
|
|
| |
Notes:
svn path=/head/; revision=131531
|
|
|
|
| |
Notes:
svn path=/head/; revision=131500
|
|
|
|
|
|
|
|
|
|
| |
more friendly to postfix log messages.
PR: 50912
Submitted by: Stanislav Lapshansky <slapsh@slapsh.pp.ru>
Notes:
svn path=/head/; revision=129867
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
explicitly fsynced after kernel messages are logged. This option
should be syntax compatible with a similar option in Linux syslogd.
I've made some small changes to Pekka's patch, hoepfully I haven't
goofed anything.
PR: 66790
Submitted by: Pekka Savola <pekkas@netcore.fi>
Obtained from: Martin Schulze's syslogd
MFC after: 1 month
Notes:
svn path=/head/; revision=129865
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Syslogd should ensure that f_file is a valid file descriptor when
f_type is FILE, CONSOLE, TTY and for a PIPE where f_pid > 0. If the
descriptor is closed/invalid then the type should be set to UNUSED
or the pid should be set to 0.
To this end:
1) Don't close(f->f_file) if we can't send a message to a remote
host because the file descriptor used for remote logging is
stored in finet, not in f->f_file. f->f_file is probably
uninitialised, so I guess we usually end up closing fd 0.
2) Don't close PIPE file descriptors if they are invalid.
3) If the call to p_open fails, don't set the pid.
The OpenBSD patches in this area set f_file to -1 after the fd is
closed and then avoids calling close if f_file < 0. I haven't done
this, but it might be a good idea too.
Inspired by: PR 67139/OpenBSD
Notes:
svn path=/head/; revision=129855
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Use strncpy on strings out of utmp.
2) Avoid running off the start of one string while removing white space.
(I've used slightly different code to OpenBSD here.)
3) Ignore trailing spaces in the priority.
PR: 67139
Submitted by: Xin LI <delphij@FreeBSD.org.cn>
Obtained from: OpenBSD
Notes:
svn path=/head/; revision=129854
|
|
|
|
|
|
|
|
|
|
| |
too long, rather than silently truncating them.
PR: 67139
Inspired by: OpenBSD
Notes:
svn path=/head/; revision=129853
|