[Mimedefang] Sys::Syslog pretty broken on Solaris (PATCH)

Brian Landers packetslave at sapient.com
Mon Oct 14 09:32:01 EDT 2002


The Sys::Syslog module breaks rather badly on Solaris in a 
couple of cases:

1) there's no support for the setlogsock('unix') used in 
MIMEDefang.  Solaris has no unix socket for syslog at all.

2) if you run syslogd with the -t flag, to make it not listen
on its udp socket (pretty standard on secure boxes), then the
Sys::Syslog module won't log anything!  It won't error, but it
won't log, either.

One solution is to use the Unix::Syslog CPAN module, which wraps
the OS's native C syslog calls to log directly to syslog.  This
works great for me on my secured Solaris boxes.

I've got a partial patch to convert MIMEDefang to use Unix::Syslog
instead of Sys::Syslog, but it should probably be a compile-time
option.  The two API's are *mostly* compatible, with some little
niggling differences.  Would probably be best to refactor out the
logging code into a method or two, instead of calling the module
directly.

http://www.packetslave.com/docs/mimedefang.pl.patch

Cheers,
Brian


-- 
Brian C. Landers                | CCNA  SCSA  EIEIO
Network Systems Exorcist        | tel://404.439.4117
Sapient IT Infrastructure Team  | aim://Bluecoat93




More information about the MIMEDefang mailing list