Bug#638594: libapache2-mod-shib2: Default syslog facility in native.logger is invalid

Russ Allbery rra at debian.org
Sat Aug 20 05:14:52 UTC 2011

Jeremy Maryott <jmDS at hampshire.edu> writes:

> Although the problem with weird long lines only showed up when I was
> logging remotely, local rsyslog also thinks the facility is bad; it looks
> like it just handles it better. If I log with a template like:
> "%timegenerated% %PRI-text%: %syslogfacility% %syslogpriority% %HOSTNAME%
> %syslogtag%%msg:::drop-last-lf%\n" then %syslogfacility% becomes 'invld'.

> The RFC (5424) says that "Facility values MUST be in the range of 0 to 23
> inclusive," so it seems like rsyslog is correct in expecting something in
> that range.

Right, but the configuration is not using the syslog protocol.  It's using
LocalSyslogAppender, which is supposed to be calling the C syslog()
function, and it's supposed to use LOG_DAEMON, which uses the facility
shifted by 3 (because it's combined with the priority).

I think I need to go look at the source code again.

Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>

More information about the Pkg-shibboleth-devel mailing list