changing debuglevel of kernel messaging going to console

Gleb Smirnoff glebius at freebsd.org
Thu Feb 17 13:56:14 GMT 2005


  Dear collegues,

now all kernel messages are printed to system console by default:

*.err;kern.debug;auth.notice;mail.crit          /dev/console

There is a problem that in case of a serial console, this printing
is very slow and heavily pessimizes box performance, when kernel
messages are printed at high speed. Moreover, several kernel messages
with LOG_DEBUG severity can be triggered remotely, for example
sending bogus ARP replies. So, sending bogus ARP packets to a
FreeBSD box with serial console may lead to a DoS like conditions.

I'd like to raise this level to kern.warning, so that important
messages are still printed, but debug messages won't flood console.
No logging will be lost, since next line logs kern.debug to
/var/log/messages.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE


More information about the freebsd-current mailing list