Testcases run on sanitizer.defaults exits out with exit code 17. I get the
following error in the log:
"Can't use an undefined value as a symbol reference at
../bin/Anomy/Sanitizer.pm line 985."
The sanitizer.defaults logs are in the tar.bz2 file attached. Sanitizer.cfg
and procmailrc are attached as well (though the latter's proably irrelevant
here).
Platform - Intel i686
OS - Modified RedHat 7.1 distro (2.4.17 kernel, recompiled perl 5.6.1)
perl -V Output:
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.2-2, archname=i686-linux
uname='linux mail.medata.com 2.4.2-2 #1 sun apr 8 20:41:30 edt 2001
i686 unknown '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing'
ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.1 2.96-81)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.2.2.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Oct 3 2001 03:23:03
@INC:
/usr/local/lib/perl5/5.6.1/i686-linux
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i686-linux
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl
Hope this helps,
-Rick
-- Rick Johnson - 12785@xyz.molar.is WAN/Linux Administrator - Medata, Inc.#sanitizer script taken from mailtools.anomy.net/sanitizer.html
# Active features. # feat_boundaries = 0 feat_files = 1 feat_forwards = 1 feat_html = 1 feat_lengths = 1 feat_log_inline = 1 feat_log_stderr = 1 feat_scripts = 1 feat_trust_pgp = 0 feat_uuencoded = 1 feat_verbose = 1 feat_fixmime = 1 file_list_rules = 4 #now modify some messages msg_defanged = RENAME_FILE_TO_USE
msg_file_drop = ****\nNOTE: An attachment was delted from this part of the message msg_file_drop += \nbecause it was either an unathorized file type or contained\n msg_file_drop += a virus. Please see the attached log for more details, or contact msg_file_drop += \12874@xyz.molar.is.\n\n msg_file_drop += The removed attachment's name was \t%SAVEDNAME\n\n
msg_file_save = ****\nNOTE: An attachment was deleted from this part of the message\n msg_file_save += because it was either an unathorized file type or contained a virus msg_file_save += \nThe file has been quarantiend with the name \t%SAVEDNAME\n\n msg_file_save += The orignial name was : \t%FILENAME\n\n msg_file_save += Please contact 12911@xyz.molar.is if you need the file\n
msg_log_prefix = This message has been 'sanitized'. If the file was not a known\n msg_log_prefix += threat, it has been renamed and sent to you. \n msg_log_prefix += If you were expecting this file, you can simply rename it to the proper type\n msg_log_prefix += CAUTION: It may still be a dangerous file, please contact 12911@xyz.molar.is\n msg_log_prefix += if you are not %100 sure that it is safe # # Note: This directory must exist and be writable by # the user running the sanitizer. # file_name_tpl = /var/quarantine/att-$F-$T.$$
# Files we absolutely don't want (mostly executables). # file_list_1_scanner = 0 file_list_1_policy = save:save:save:save file_list_1 = (?i)(winmail\.dat file_list_1 += |\.(exe|vb[es]|c(om|hm)|bat|pif|s(ys|cr)) file_list_1 += (\.g?z|\.bz\d?)*)$
# Pure data, don't mangle this stuff (much). # file_list_2_scanner = 0 file_list_2_policy = accept file_list_2 = (?i)\.(gif|jpe?g|pn[mg]|x[pb]m|dvi|e?ps|p(df|cx)|bmp file_list_2 += |mp[32]|wav|au|ram?|htm?l|tif?f file_list_2 += |avi|mov|mpe?g file_list_2 += |t(xt|ex)|csv|l(og|yx)|sql|jtmpl file_list_2 += |[ch](pp|\+\+)?|s|inc|asm|pa(tch|s)|java|php\d? file_list_2 += |[ja]sp file_list_2 += |dat|idx|cbl|rtf file_list_2 += |abf file_list_2 += |can|pos|ux|reg|kbf|xal|\d+)(\.g?z|\.bz\d?)*$
file_list_3_scanner = 0:2:3:/usr/local/anomy/contrib/check_for_virus %FILENAME file_list_3_policy = accept:defang:save:save file_list_3 = (?i)\.(xls|d(at|oc)|p(pt|l)|rtf|[sp]?html? file_list_3 += |class|upd|wp\d?|m?db|snp file_list_3 += |z(ip|oo)|ar[cj]|lha|[tr]ar|rpm|deb|slp|tgz file_list_3 += )(\.g?z|\.bz\d?)*$
# The check_for_virus script returns 0 clean, 2 infected, but cleaned, 3 infected and not cleaned file_list_4_scanner = 0:2:3:/usr/local/anomy/contrib/check_for_virus %FILENAME file_list_4_policy = accept:defang:save:save file_list_4 = ^[^\.]+$
# Archives and scriptable stuff - virus scan these. #
file_default_policy = defang
VERBOSE=no LOGFILE=/var/log/procmail-sanitizer.log ANOMY=/usr/local/anomy/
:0 fw |/usr/local/anomy/bin/sanitizer.pl /etc/sanitizer.cfg
Attachments: + http://mailtools.anomy.net/archives/anomy-bugs//16/f0/3c6d5c7d/01.sanitizer.defaults.bug.tar.bz2