Date: Sun, 18 Jul 1999 14:35:39 -0400 (EDT) From: "T. William Wells" <bill@twwells.com> To: andre.albsmeier@mchp.siemens.de (Andre Albsmeier) Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Why is this code in syslogd.c? Message-ID: <E115vml-00089S-00@twwells.com> In-Reply-To: <19990718194853.A29020@internal> from "Andre Albsmeier" at Jul 18, 99 07:48:53 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> On Sun, 18-Jul-1999 at 13:18:01 -0400, T. William Wells wrote: > > Kernel messages should come from the kernel. If users could > > generate them, this could cause many problems. > > How can a user generate a kernel message? If I do a > "logger -p kern.crit blah" this is logged as user.crit even if > the code in question is commented out... If you check out the syslog() code itself, you'll note that it does this translation; logger calls syslog(). But syslog() is an ordinary C function; there is nothing to keep an application from generating "kernel" messages if they don't use syslog() itself but instead generate the messages themselves. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E115vml-00089S-00>