From owner-freebsd-hackers Sun Mar 2 01:21:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id BAA00920 for hackers-outgoing; Sun, 2 Mar 1997 01:21:15 -0800 (PST) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id BAA00908 for ; Sun, 2 Mar 1997 01:21:12 -0800 (PST) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id KAA00718 for freebsd-hackers@freebsd.org; Sun, 2 Mar 1997 10:21:11 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.8.5/8.8.5) id KAA09519; Sun, 2 Mar 1997 10:15:21 +0100 (MET) Message-ID: Date: Sun, 2 Mar 1997 10:15:21 +0100 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-hackers@freebsd.org (FreeBSD hackers) Subject: Fwd: syslogd bug X-Mailer: Mutt 0.55-PL10 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk -----Forwarded message from Andre.Albsmeier@mchp.siemens.de (Andre Albsmeier)----- In Deinem (und auch den anderen) syslogd.c gibts den Code /* don't allow users to log kernel messages */ if (LOG_FAC(pri) == LOG_KERN) pri = LOG_MAKEPRI(LOG_USER, LOG_PRI(pri)); warum das so sein soll weiss ich nicht (ist auch egal :-)). -----End of forwarded message----- Besides Andre pointing out that the LOG_MAKEPRI() macro in syslog.h is plain wrong (but apparently the spot above is the only occurence throughout the entire tree), the question here is if we really want the above behaviour? While it sounds logically first to disallow kernel messages sent by users, it immediately turns out to be silly if you consider kernel messages logged from remote hosts: for sure, you want them to appear at LOG_KERN on your host, i think. Opinions? -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)