NetBSD/usr.sbin
christos b3ed889133 PR/40043: Geoff C. Wing: syslogd timestamping and protocol parsing deficiencies
Syslogd does not properly handle:

1) the ADDDATE flag which is set with -T invocation and when messages
   come from the kernel.  Other cases where it is set it is ignored
   as timestamping is always done (e.g. logmsg_async())

2) the variable found_ts in check_timestamp().  It would determine
   whether or not the message had a (possibly valid) timestamp, set
   found_ts to true, then ignore that in most cases.  If we can't find
   a timestamp return.

3) messages without a parsable timestamp should get one when outputting
   the BSD syslog format so that a syslog-protocol timestamp isn't
   injected (chopped off with BSD syslog length) giving something like:
    "2008-11-27T15:0 cisco -: 1790:"
     ^ time might have been 2008-11-27T15:02:35.296497+11:00

4) syslog protocol version checking only checked for a leading numeral
   one (1) then skipped two places (presuming a space).  Messages sent
   from some sources (e.g. my cisco) may be
     "1795: Nov 27 04:12:52: %LINEPROTO-5-..."
   which would be chopped to
       "95: Nov 27 04:12:52: %LINEPROTO-5-..."
2008-11-27 20:37:21 +00:00
..
ac
accton
acpitools
altq
apm
apmd
arp
bad144
bind
bootp
btattach
btconfig
btdevctl
bthcid
btpand
catman
chown
chroot
chrtbl
cnwctl
cpuctl
cron
dev_mkdb
dhcp
diskpart
dumpfs
dumplfs
edquota
eeprom
envstat
eshconfig
etcupdate
extattrctl
faithd
fssconfig
fusermount
fwctl
gpioctl
grfconfig
grfinfo
gspa
hilinfo
hprop
ifmcstat
ifwatchd
inetd
installboot
iopctl
iostat
ipf
iprop-log
ipwctl
irdaattach
iscsi
isdn
iteconfig
iwictl
kadmin
kcm
kdc
kdigest
kgmon
kimpersonate
kstash
ktutil
kvm_mkdb
lastlogin
link
lmcconfig
lockstat
lpr
lptctl
mailwrapper
makefs
map-mbone
mdconfig
mdsetimage
memswitch
mld6query
mlxctl
mmcformat
mopd
mountd
moused
mrinfo
mrouted
mscdlabel
mtrace
mtree
ndbootd
ndiscvt
ndp
netgroup_mkdb
nfsd
ntp
ofctl
paxctl
pcictl
pf
postinstall
powerd
pppd
psrset
pstat
puffs
pvcsif
pvctxctl
pwd_mkdb
quot
quotacheck
quotaon
racoon
racoonctl
rarpd
rbootd
rdate
repquota
rip6query
rmt
route6d
rpc.bootparamd
rpc.lockd
rpc.pcnfsd
rpc.statd
rpc.yppasswdd
rpcbind
rtadvd
rtsold
rwhod
sa
schedctl
screenblank
sdpd
sendmail
services_mkdb
sesd
sliplogin
sntp
spray
srtconfig
sti
sunlabel
sup
syslogd
tadpolectl
tcpdchk
tcpdmatch
tcpdrop
tcpdump
timed
tpctl
tprof
traceroute
traceroute6
trpt
unlink
usbdevs
user
veriexecgen
videomode
vipw
vnconfig
wiconfig
wlanctl
wpa
wsconscfg
wsfontload
wsmoused
wsmuxctl
ypbind
yppoll
ypserv
ypset
zdump
zic
Makefile
Makefile.inc