Date: Sat, 20 Jan 2001 23:46:26 -0600 From: Steve Price <sprice@hiwaay.net> To: Dag-Erling Smorgrav <des@ofug.org> Cc: current@FreeBSD.ORG Subject: Re: excessive paranoia in syslogd(8)? Message-ID: <20010120234626.K387@bonsai.knology.net> In-Reply-To: <xzp1ytxh3s1.fsf@flood.ping.uio.no>; from des@ofug.org on Sun, Jan 21, 2001 at 06:29:02AM %2B0100 References: <20010120224944.I387@bonsai.knology.net> <xzp1ytxh3s1.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jan 21, 2001 at 06:29:02AM +0100, Dag-Erling Smorgrav wrote: # Steve Price <sprice@hiwaay.net> writes: # > Is it just me or does 'syslogd -s' exhibit just a little bit too # > much paranoia about allowing socket connections? I was futzing # > with a Perl script that needed to syslog(3) some stuff and after # > much hair pulling I realized that 'syslogd -s' didn't even allow # > connections from localhost. # # RTFM ('perldoc Sys::Syslog' in this case, pay special attention to # setlogsock()) Aha! I must have read that manpage a dozen times and I didn't catch on, but if I do this it works like I would expect even with '-s'. #!/usr/bin/perl -w use Sys::Syslog qw(:DEFAULT setlogsock); setlogsock('unix'); openlog('foo', 'cons,ndelay,pid', 'local0'); syslog('emerg', 'emerg message'); closelog(); Thanks! :) -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010120234626.K387>