Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Dec 2002 10:04:35 -0500
From:      Leo Bicknell <bicknell@ufp.org>
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Perl issue on freebsd 4.x?
Message-ID:  <20021220150434.GB46504@ussenterprise.ufp.org>
In-Reply-To: <20021220073714.GA89403@happy-idiot-talk.infracaninophi>
References:  <20021219022152.GA6708@ussenterprise.ufp.org> <20021219174534.5de601cd.gclarkii@vsservices.com> <20021219234021.GA30022@ussenterprise.ufp.org> <20021220073714.GA89403@happy-idiot-talk.infracaninophi>

next in thread | previous in thread | raw e-mail | index | archive | help

--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

In a message written on Fri, Dec 20, 2002 at 07:37:14AM +0000, Matthew Seam=
an wrote:
> > > I've used syslogging with FreeBSD 4.4/4.5.  Have not tried it lately.
> >=20
> > /usr/bin/perl as shipped on 4.4, 4.5, and 4.7.
>=20
> 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.

--=20
       Leo Bicknell - bicknell@ufp.org - CCIE 3440
        PGP keys at http://www.ufp.org/~bicknell/
Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org

--d6Gm4EdcadzBjdND
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE+AzGCNh6mMG5yMTYRAqJTAKCE73uXDwD4WxDMNXNCQyvA7nfzRQCdHK+h
jXySEat2txp0BYxXqU/mWVA=
=luNI
-----END PGP SIGNATURE-----

--d6Gm4EdcadzBjdND--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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