CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/01/01 12:15:00
Modified files:
sys/kern : subr_log.c
Log message:
The pointer buf is a user space string which was directly passed
to tputchar() and could crash the kernel. Better use cnwrite() in
sendsyslog2() for writing to console. It takes a struct uio which
does the copyin() automatically. In addition cnwrite() outputs to
the real console or to a redirected one, whichever is appropriate.
One drawback is that the syslog priority cannot be stripped off
easily.
OK deraadt@