Patch: 
---------------------
http://www.engelken.net/download/policyonzip.patch

Description: 
---------------------
This patch allows you to configure whether or not perlscan_scanner has
access to filenames that are inside of zip files.  Currently, with
$force_unzip=1,  files are unzipped and the filenames in the zip file
are added to the @zipfile_list array which perscan_scanner loops
through.  

So if you are denying .exe files, a zipped EXE would still trigger!
Some people don't want that to happen, its hard enough to get your end
users to zip their files in the first place.   By setting
$force_unzip=1, and $policyonzip=0; - people that need to force_unzip
can still apply quarantine-attachment rules without being effected by
whats inside of the zip.

Usage:
---------------------
Applies clean against 1.22.

[EMAIL PROTECTED] qmail-scanner-1.22]# patch -p0 < ../policyonzip.diff
patching file configure
patching file qmail-scanner-queue.template

Then reconfigure QS with  --policyonzip yes|no

Other Info:
---------------------
  1) Most AV systems can unzip just fine themselves, so running
$force_unzip is becoming a thing of the past.  
  2) I removed the stat() call on $zipfile because the original zip will
be stat()'d in the perlscan_scanner anyway because its in the root of
TMPDIR.





-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Qmail-scanner-general mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/qmail-scanner-general

Reply via email to