In a message written on Fri, Dec 20, 2002 at 07:37:14AM +0000, Matthew Seaman wrote:
> > > I've used syslogging with FreeBSD 4.4/4.5.  Have not tried it lately.
> > 
> > /usr/bin/perl as shipped on 4.4, 4.5, and 4.7.
> 
> The perl-5.6.1 and perl-5.8.0 ports show exactly the same behaviour on
> 4.7.

I think I'm going to submit this is a perl bug in the end.  Turns
out I had a misunderstanding of how the C-library syslog worked,
which carried over into perl.  I thought both used inet sockets by
default (which perl is clearly documented to do), and that syslog
-s merely said only listen to things from your local ip (eg, -s
was the same as -a box.ip -a 127.0.0.1).

In reality, the libc syslog only knows how to do unix domain sockets
(see /usr/src/lib/libc/gen/syslog.c, in particular connectlog).
For some reason perl has chosen the opposite behavior as the default,
to do inet sockets.  For anyone running any sort of "secure" syslog
this results in failure.

-- 
       Leo Bicknell - [EMAIL PROTECTED] - CCIE 3440
        PGP keys at http://www.ufp.org/~bicknell/
Read TMBG List - [EMAIL PROTECTED], www.tmbg.org

Attachment: msg38789/pgp00000.pgp
Description: PGP signature

Reply via email to