samba-vscan/trend vscan-trend.c,1.47.2.7,1.47.2.8 vscan-trend.conf,1.9.2.6,1.9.2.7
Rainer Link <[email protected]> Sun, 10 Apr 2005 15:22:56 +0000
| Newsgroups | gmane.comp.security.virus.openantivirus.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openantivirus/samba-vscan/trend
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8392/trend
Modified Files:
Tag: VSCAN_0_3
vscan-trend.c vscan-trend.conf
Log Message:
use file regexp stuff
modified some syslog satements to contain the INFO tag
some other small changes
Index: vscan-trend.c
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/trend/vscan-trend.c,v
retrieving revision 1.47.2.7
retrieving revision 1.47.2.8
diff -u -d -r1.47.2.7 -r1.47.2.8
--- vscan-trend.c 23 Feb 2005 02:49:40 -0000 1.47.2.7
+++ vscan-trend.c 10 Apr 2005 15:22:54 -0000 1.47.2.8
@@ -139,7 +139,9 @@
DEBUG(5, ("init file type\n"));
filetype_init(0, vscan_config.common.exclude_file_types);
-
+ /* initialise file regexp */
+ DEBUG(5, ("init file regexp\n"));
+ fileregexp_init(vscan_config.common.exclude_file_regexp);
#if (SMB_VFS_INTERFACE_VERSION >= 6)
return SMB_VFS_NEXT_CONNECT(handle, conn, svc, user);
@@ -221,6 +223,10 @@
#else
return default_vfs_ops.open(conn, fname, flags, mode);
#endif
+ else if ( fileregexp_skipscan(filepath) == VSCAN_FR_SKIP_SCAN ) {
+ if ( vscan_config.common.verbose_file_logging )
+ vscan_syslog("INFO: file '%s' not scanned as file is machted by exclude regexp", filepath);
+ }
else if ( filetype_skipscan(filepath) == VSCAN_FT_SKIP_SCAN ) {
if ( verbose_file_logging )
vscan_syslog("File '%s' not scanned as file type is on exclude list", filepath);
@@ -376,10 +382,17 @@
return retval;
}
+ /* dont' scan file which matches exclude regexp */
+ if ( fileregexp_skipscan(filepath) == VSCAN_FR_SKIP_SCAN ) {
+ if ( vscan_config.common.verbose_file_logging )
+ vscan_syslog("INFO: file '%s' not scanned as file is machted by exclude regexp", filepath);
+ return retval;
+ }
+
/* don't scan files which are in the list of exclude file types */
if ( filetype_skipscan(filepath) == VSCAN_FT_SKIP_SCAN ) {
if ( vscan_config.common.verbose_file_logging )
- vscan_syslog("File '%s' not scanned as file type is on exclude list", filepath);
+ vscan_syslog("INFO: file '%s' not scanned as file type is on exclude list", filepath);
return retval;
}
Index: vscan-trend.conf
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/trend/vscan-trend.conf,v
retrieving revision 1.9.2.6
retrieving revision 1.9.2.7
diff -u -d -r1.9.2.6 -r1.9.2.7
--- vscan-trend.conf 7 Dec 2004 21:57:28 -0000 1.9.2.6
+++ vscan-trend.conf 10 Apr 2005 15:22:54 -0000 1.9.2.7
@@ -58,5 +58,9 @@
; seperated list (default: empty list). Use this with care!
exclude file types =
+; exclude files from being scanned via regular expression (PCRE)
+; (default: empty)
+exclude file regexp =
+
; socket name of Trophie (default: /var/run/trophie)
trophie socket name = /var/run/trophie
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click