Skip site navigation (1)Skip section navigation (2)
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
Message-ID:  <Mutt.19970302101521.j@uriah.heep.sax.de>

next in thread | raw e-mail | index | archive | help
-----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. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Mutt.19970302101521.j>