develooper Front page | perl.perl5.porters | Postings from December 2002

[perl #19306] Sys::Syslog issues.

Thread Previous | Thread Next
From:
Leo Bicknell
Date:
December 20, 2002 08:14
Subject:
[perl #19306] Sys::Syslog issues.
Message ID:
rt-19306-45962.3.67739640622816@bugs6.perl.org
# New Ticket Created by  Leo Bicknell 
# Please include the string:  [perl #19306]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=19306 >



This is a bug report for perl from bicknell@ufp.org,
generated with the help of perlbug 1.26 running under perl 5.00503.


-----------------------------------------------------------------
[Please enter your report here]

Issue #1 - Message sent to those in the Sys::Syslog file bounces.

  It would seem that all four e-mail addresses listed in Sys::Syslog
  no longer works, in particular tchrist@convex.com,
  lwall@jpl-devvax.jpl.nasa.gov, robinson_s@sc.maricopa.edu, 
  Tim.Bunce@ig.co.uk.  Perhaps they could be updated, or at least
  a note to that effect put into place?

Issue #2 - Defaults in Sys::Syslog are non-intuitive.  Below is a
           message I originally attempted to send to the four 
           addresses above.

  The four of you have your names on Sys::Syslog, which is why I'm
  contacting you.  I recently ran into some confusion, admittedly of
  my own making, but it seems like the defaults of Sys::Syslog leave
  something to be desired.
  
  FreeBSD (my test platform) and many other operating systems today
  allow for "secure" syslog, which really means don't accept inet
  domain messages.  This is done to prevent syslog from becoming a
  remote disk filling service.  This has no effect on C programs
  because the libc variant of the syslog functions only uses unix
  domain sockets for communication.  In FreeBSD see
  /usr/src/lib/libc/gen/syslog.c, in particular connectlog().
  
  For some reason, possibly a good one, Sys::Syslog defaults to inet,
  rather than unix.  The net result on these "secure" syslog setups
  is that Sys::Syslog becomes non-functional out of the box.  This
  is of course fixable, as documented in the Sys::Syslog man page,
  with setlogsock('unix') -- however that is counter-intuitive.
  Indeed, the very top of the man page proclaims:
  
  NAME
         Sys::Syslog, openlog, closelog, setlogmask, syslog - Perl
         interface to the UNIX syslog(3) calls
  
  One would expect the interface to syslog(3) to have the same defaults
  as syslog(3).
  
  Is there a reason that the perl library was defaulted to inet?  Is
  there any support for changing the default to unix?

Background bug information:

  Although I'm using perlbug to submit this, which is including
  information from my local machine this problem seems to be in all
  versions of perl 5.x.

[Please do not change anything below this line]
-----------------------------------------------------------------

---
Site configuration information for perl 5.00503:

Configured by markm at Sun Mar  5 13:39:27 SAST 2000.

Summary of my perl5 (5.0 patchlevel 5 subversion 3) configuration:
  Platform:
    osname=freebsd, osvers=4.0-current, archname=i386-freebsd
    uname='FreeBSD freefall.FreeBSD.org 4.0-current FreeBSD 4.0-current #0: $Date$'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='cc', optimize='undef', gccversion=2.95.2 19991024 (release)
    cppflags=''
    ccflags =''
    stdchar='char', d_stdstdio=undef, usevfork=true
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=4, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E -lperl -lm '
    libpth=/usr/lib
    libs=-lm -lc -lcrypt
    libc=, so=so, useshrplib=true, libperl=libperl.so.3
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/lib'
    cccdlflags='-DPIC -fpic', lddlflags='-Wl,-E -shared -lperl -lm '

Locally applied patches:
    

---
@INC for perl 5.00503:
    /usr/libdata/perl/5.00503/mach
    /usr/libdata/perl/5.00503
    /usr/local/lib/perl5/site_perl/5.005/i386-freebsd
    /usr/local/lib/perl5/site_perl/5.005
    .

---
Environment for perl 5.00503:
    HOME=/home/bicknell
    LANG (unset)
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/bicknell/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/lib:/etc:/usr/X11R6/bin:/usr/games:/inet/majordom/bin:/usr/local/pgsql/bin:.
    PERL_BADLANG (unset)
    SHELL=/usr/local/bin/tcsh



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About