From owner-freebsd-hackers Fri Dec 20 7: 4:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79D6B37B406 for ; Fri, 20 Dec 2002 07:04:36 -0800 (PST) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id B26ED43EE5 for ; Fri, 20 Dec 2002 07:04:35 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id gBKF4Zb46744 for freebsd-hackers@FreeBSD.ORG; Fri, 20 Dec 2002 10:04:35 -0500 (EST) (envelope-from bicknell) Date: Fri, 20 Dec 2002 10:04:35 -0500 From: Leo Bicknell To: freebsd-hackers@FreeBSD.ORG Subject: Re: Perl issue on freebsd 4.x? Message-ID: <20021220150434.GB46504@ussenterprise.ufp.org> Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: <20021219022152.GA6708@ussenterprise.ufp.org> <20021219174534.5de601cd.gclarkii@vsservices.com> <20021219234021.GA30022@ussenterprise.ufp.org> <20021220073714.GA89403@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <20021220073714.GA89403@happy-idiot-talk.infracaninophi> Organization: United Federation of Planets Reply-By: Fri Dec 27 09:51:39 EST 2002 X-Message-Flag: Put no trust in cryptic comments. X-PGP-Key: http://www.ufp.org/~bicknell/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --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