. Removed kernel.patch since it is no longer required
. Changed SOCK_STREAM to SOCK_DGRAM in syslog.c . klogd will only change the console log level if `-c' is supplied . syslogd.c by Bill Nottingham <notting@redhat.com> Um, if the directory is invalid, the bind() call in create_unix_socket fails. Without the return -1, we return the invalid fd that we just closed. When syslogd then starts listening, select goes into a hard loop getting EBADF, IIRC. . klogd.c by Troels Walsted Hansen <troels@thule.no> I found a bug in the sysklogd package version 1.4. When it encounters a zero byte in the kernel logging output, the text parser enters a busy loop. I came upon it when the 3c59x driver from kernel 2.4.0 started outputting two zero bytes for the product code of my laptop's 3Com card. It could be argued that the kernel should never output zero bytes in the logging info, but obviously that will happen from time to time. I fear this bug might be considered a security issue as well, if the kernel can be coerced to output a zero byte somehow, all kernel logging will stop. Wolfgang Oertl <Wolfgang.Oertl@uibk.ac.at> had a similar bugfix idea . klogd.c by Thomas Roessler <roessler@does-not-exist.org> Additionally, the patch prevents LogLine from being invoked with a negative counter as an argument.
This commit is contained in:
13
klogd.8
13
klogd.8
@@ -148,11 +148,16 @@ the syslogd daemon. This prevents 'nuisance' messages such as line
|
||||
printer out of paper or disk change detected from cluttering the
|
||||
console.
|
||||
|
||||
By default the
|
||||
When
|
||||
.B \-c
|
||||
is given on the commandline the
|
||||
.B klogd
|
||||
daemon executes a system call to inhibit all
|
||||
kernel messages (except for panics) from being displayed on the
|
||||
console. The \fB\-c\fR switch can be used to alter this behavior. The
|
||||
daemon will execute a system call to inhibit all kernel messages from
|
||||
being displayed on the console. Former versions always issued this
|
||||
system call and defaulted to all kernel messages except for panics.
|
||||
This is handled differently nowardays so
|
||||
.B klogd
|
||||
doesn't need to set this value anymore. The
|
||||
argument given to the \fB\-c\fR switch specifies the priority level of
|
||||
messages which will be directed to the console. Note that messages of
|
||||
a priority value LOWER than the indicated number will be directed to
|
||||
|
Reference in New Issue
Block a user