[BusyBox] older 06.5 syslogd problem
Brian T
btuch at usa.net
Tue Jan 27 22:46:23 UTC 2004
> >
> > > I was wondering if anyone has seen the older busybox syslogd remove
the
> > > "<" character, and the next character after it when looking at the
60.5
> > > syslogd version?
> >
> > This looks like syslog is interpreting these entries as if they were
coming
> > from kernel printk output via klogd and interpreting the <? character
> > sequences as log levels. The kernel log levels are indicated by using
> > special character strings at the front of log messages like "<0>", "<1>"
> > etc. They are defined in linux/kernel.h as macros KERN_EMERG,
KERN_ALERT
> > etc.
> >
> > I suspect it should only be accepting them at the start of the message,
and
> > only if they match the pattern '<' digit 0-7 '>'.
>
> I agree entirely. The only flaw I see in the analysis is that the
> code I see in busybox-0.60.5 klogd.c (that Gennady Feldman wrote and
> I helped test, years ago) appears to do exactly that. Is there a
> chance Brian has an older busybox around, or a non-busybox klogd running?
>
> - Larry
I'm running busybox 0.60.5. Both klogd and syslogd are from this version
I'm running :
[root at JBMgateway-v59 root]# ps ax
PID TTY STAT TIME COMMAND
1 ? S 0:05 init
2 ? SW 0:00 [keventd]
3 ? SWN 0:00 [ksoftirqd_CPU0]
4 ? SW 0:00 [kswapd]
5 ? SW 0:00 [bdflush]
6 ? SW 0:00 [kupdated]
7 ? SW 0:00 [mtdblockd]
12 ? SWN 0:02 [jffs2_gcd_mtd1]
51 ? S 0:00 /bin/cron
184 ? SW 0:00 [eth0]
252 ? S 0:00 /sbin/syslogd -n
253 ? S 0:00 /sbin/klogd -n
255 ? S 0:00 /bin/inetd
256 ttyS0 S 0:00 -sh
319 ttyS0 R 0:00 ps ax
[root at JBMgateway-v59 root]# ls -al /sbin/klogd
lrwxrwxrwx 1 root root 14 Jan 27 14:33 /sbin/klogd ->
../bin/busybox
[root at JBMgateway-v59 root]# ls -al /sbin/syslogd
lrwxrwxrwx 1 root root 14 Jan 27 14:33 /sbin/syslogd ->
../bin/busybox
[root at JBMgateway-v59 root]# busybox
BusyBox v0.60.5 (2004.01.13-16:18+0000) multi-call binary
What do you suggest?
-Brian
More information about the busybox
mailing list