Date: Fri, 13 Aug 2004 14:58:27 -0300 (EST) From: Jean Milanez Melo <jmelo@freebsdbrasil.com.br> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/70424: update port: security/samba-vscan Message-ID: <20040813175827.93284CAADD@patinhas.teleon.com.br> Resent-Message-ID: <200408131800.i7DI0i7J028211@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 70424 >Category: ports >Synopsis: update port: security/samba-vscan >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Aug 13 18:00:44 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Jean Milanez Melo >Release: FreeBSD 4.7-STABLE i386 >Organization: FreeBSD Brasil LTDA >Environment: System: FreeBSD patinhas.teleon.com.br 4.7-STABLE FreeBSD 4.7-STABLE #6: Thu Apr 10 11:40:43 EST 2003 root@patinhas.teleon.com.br:/usr/src/sys/compile/PATINHAS i386 >Description: Update port to patch default various engines configuration files. >How-To-Repeat: >Fix: --- samba-vscan.diff begins here --- diff -uNr samba-vscan.old/Makefile samba-vscan/Makefile --- samba-vscan.old/Makefile Fri Aug 13 13:39:33 2004 +++ samba-vscan/Makefile Fri Aug 13 14:39:52 2004 @@ -7,6 +7,7 @@ PORTNAME= samba-vscan PORTVERSION= 0.3.5 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://heanet.dl.sourceforge.net/sourceforge/openantivirus/ \ http://easynews.dl.sourceforge.net/sourceforge/openantivirus/ \ diff -uNr samba-vscan.old/files/patch-vscan-clamav.conf samba-vscan/files/patch-vscan-clamav.conf --- samba-vscan.old/files/patch-vscan-clamav.conf Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-clamav.conf Fri Aug 13 14:16:39 2004 @@ -0,0 +1,11 @@ +--- clamav/vscan-clamav.conf.old Fri Aug 13 14:15:08 2004 ++++ clamav/vscan-clamav.conf Fri Aug 13 14:16:05 2004 +@@ -59,7 +59,7 @@ + + ; socket name of clamd (default: /var/run/clamd). Setting will be ignored if + ; libclamav is used +-clamd socket name = /var/run/clamd ++clamd socket name = /var/run/clamav/clamd + + ; limits, if vscan-clamav was build for using the clamav library (libclamav) + ; instead of clamd diff -uNr samba-vscan.old/files/patch-vscan-clamav.h samba-vscan/files/patch-vscan-clamav.h --- samba-vscan.old/files/patch-vscan-clamav.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-clamav.h Fri Aug 13 13:46:54 2004 @@ -0,0 +1,20 @@ +--- clamav/vscan-clamav.h.old Fri Aug 13 13:42:37 2004 ++++ clamav/vscan-clamav.h Fri Aug 13 13:43:24 2004 +@@ -7,7 +7,7 @@ + + /* Clam AntiVirus (clamd) stuff: + socket name of Clam daemon */ +-#define VSCAN_CLAMD_SOCKET_NAME "/var/run/clamd" ++#define VSCAN_CLAMD_SOCKET_NAME "/var/run/clamav/clamd" + + /* Clam AntiVirus (libclamav) stuff: + maximum number of files in archive */ +@@ -20,7 +20,7 @@ + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-clamav.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-clamav.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-fprotd.h samba-vscan/files/patch-vscan-fprotd.h --- samba-vscan.old/files/patch-vscan-fprotd.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-fprotd.h Fri Aug 13 14:17:15 2004 @@ -0,0 +1,11 @@ +--- fprot/vscan-fprotd.h.old Fri Aug 13 13:52:39 2004 ++++ fprot/vscan-fprotd.h Fri Aug 13 13:53:14 2004 +@@ -7,7 +7,7 @@ + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-fprotd.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-fprotd.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-fsav.h samba-vscan/files/patch-vscan-fsav.h --- samba-vscan.old/files/patch-vscan-fsav.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-fsav.h Fri Aug 13 14:18:25 2004 @@ -0,0 +1,28 @@ +--- f-secure/vscan-fsav.h.old Fri Aug 13 13:49:40 2004 ++++ f-secure/vscan-fsav.h Fri Aug 13 13:51:15 2004 +@@ -37,7 +37,7 @@ + + /* default location of samba-style configuration file (needs Samba >= 2.2.4 or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-fsav.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-fsav.conf" + #define VSCAN_MODULE_STR "vscan-fsav" + + +@@ -114,13 +114,13 @@ + #define VSCAN_FSAV_CONNECT_ID 0 + + /* fsav configuration file */ +-#define VSCAN_FSAV_CONFIG_FILE "/etc/fsav.conf" ++#define VSCAN_FSAV_CONFIG_FILE "/usr/local/etc/fsav.conf" + + /* location of fsavd binary */ +-#define VSCAN_FSAV_BINARY "/opt/f-secure/fsav/bin/fsavd" ++#define VSCAN_FSAV_BINARY "/usr/local/bin/fsavd" + + /* path to FSAV databases */ +-#define VSCAN_FSAV_DB_DIR "/var/opt/f-secure/fsav/databases" ++#define VSCAN_FSAV_DB_DIR "/var/db/fsav/databases" + + /* fsav socket name */ + #define VSCAN_FSAV_SOCKET "/tmp/.fsav-0" diff -uNr samba-vscan.old/files/patch-vscan-icap.h samba-vscan/files/patch-vscan-icap.h --- samba-vscan.old/files/patch-vscan-icap.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-icap.h Fri Aug 13 13:55:34 2004 @@ -0,0 +1,11 @@ +--- icap/vscan-icap.h.old Fri Aug 13 13:54:25 2004 ++++ icap/vscan-icap.h Fri Aug 13 13:54:52 2004 +@@ -8,7 +8,7 @@ + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-icap.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-icap.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-kavp.h samba-vscan/files/patch-vscan-kavp.h --- samba-vscan.old/files/patch-vscan-kavp.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-kavp.h Fri Aug 13 14:19:08 2004 @@ -0,0 +1,11 @@ +--- kaspersky/vscan-kavp.h.old Fri Aug 13 13:57:48 2004 ++++ kaspersky/vscan-kavp.h Fri Aug 13 13:58:16 2004 +@@ -8,7 +8,7 @@ + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-kavp.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-kavp.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-mcdaemon.h samba-vscan/files/patch-vscan-mcdaemon.h --- samba-vscan.old/files/patch-vscan-mcdaemon.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-mcdaemon.h Fri Aug 13 14:03:00 2004 @@ -0,0 +1,11 @@ +--- nai/vscan-mcdaemon.h.old Fri Aug 13 14:01:46 2004 ++++ nai/vscan-mcdaemon.h Fri Aug 13 14:02:26 2004 +@@ -6,7 +6,7 @@ + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-mcdaemon.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-mcdaemon.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-mksd.h samba-vscan/files/patch-vscan-mksd.h --- samba-vscan.old/files/patch-vscan-mksd.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-mksd.h Fri Aug 13 14:00:31 2004 @@ -0,0 +1,11 @@ +--- mks/vscan-mksd.h.old Fri Aug 13 13:59:26 2004 ++++ mks/vscan-mksd.h Fri Aug 13 13:59:52 2004 +@@ -6,7 +6,7 @@ + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-mks32.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-mks32.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-oav.h samba-vscan/files/patch-vscan-oav.h --- samba-vscan.old/files/patch-vscan-oav.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-oav.h Fri Aug 13 14:05:26 2004 @@ -0,0 +1,11 @@ +--- openantivirus/vscan-oav.h.old Fri Aug 13 14:04:07 2004 ++++ openantivirus/vscan-oav.h Fri Aug 13 14:04:23 2004 +@@ -6,7 +6,7 @@ + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-oav.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-oav.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-sophos.conf samba-vscan/files/patch-vscan-sophos.conf --- samba-vscan.old/files/patch-vscan-sophos.conf Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-sophos.conf Fri Aug 13 14:10:37 2004 @@ -0,0 +1,8 @@ +--- sophos/vscan-sophos.conf.old Fri Aug 13 14:09:44 2004 ++++ sophos/vscan-sophos.conf Fri Aug 13 14:09:58 2004 +@@ -57,4 +57,4 @@ + exclude file types = + + ; socket name of Sophie (default: /var/run/sophie) +-sophie socket name = /var/run/sophie ++sophie socket name = /var/run/sophie/sophie.sock diff -uNr samba-vscan.old/files/patch-vscan-sophos.h samba-vscan/files/patch-vscan-sophos.h --- samba-vscan.old/files/patch-vscan-sophos.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-sophos.h Fri Aug 13 14:08:33 2004 @@ -0,0 +1,17 @@ +--- sophos/vscan-sophos.h.old Fri Aug 13 14:05:51 2004 ++++ sophos/vscan-sophos.h Fri Aug 13 14:07:07 2004 +@@ -8,12 +8,12 @@ + + /* Sophie stuff: + socket name of Sophie daemon */ +-#define SOPHIE_SOCKET_NAME "/var/run/sophie" ++#define SOPHIE_SOCKET_NAME "/var/run/sophie/sophie.sock" + + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-sophos.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-sophos.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-symantec.h samba-vscan/files/patch-vscan-symantec.h --- samba-vscan.old/files/patch-vscan-symantec.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-symantec.h Fri Aug 13 14:12:03 2004 @@ -0,0 +1,11 @@ +--- symantec/vscan-symantec.h.old Fri Aug 13 14:10:58 2004 ++++ symantec/vscan-symantec.h Fri Aug 13 14:11:22 2004 +@@ -8,7 +8,7 @@ + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-symantec.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-symantec.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/files/patch-vscan-trend.conf samba-vscan/files/patch-vscan-trend.conf --- samba-vscan.old/files/patch-vscan-trend.conf Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-trend.conf Fri Aug 13 14:27:05 2004 @@ -0,0 +1,8 @@ +--- trend/vscan-trend.conf.old Fri Aug 13 14:24:01 2004 ++++ trend/vscan-trend.conf Fri Aug 13 14:26:41 2004 +@@ -59,4 +59,4 @@ + exclude file types = + + ; socket name of Trophie (default: /var/run/trophie) +-trophie socket name = /var/run/trophie ++trophie socket name = /var/run/trophie/trophie.sock diff -uNr samba-vscan.old/files/patch-vscan-trend.h samba-vscan/files/patch-vscan-trend.h --- samba-vscan.old/files/patch-vscan-trend.h Wed Dec 31 21:00:00 1969 +++ samba-vscan/files/patch-vscan-trend.h Fri Aug 13 14:13:45 2004 @@ -0,0 +1,17 @@ +--- trend/vscan-trend.h.old Fri Aug 13 14:12:27 2004 ++++ trend/vscan-trend.h Fri Aug 13 14:13:09 2004 +@@ -8,12 +8,12 @@ + + /* Trophie stuff: + socket name of Trophie daemon */ +-#define TROPHIE_SOCKET_NAME "/var/run/trophie" ++#define TROPHIE_SOCKET_NAME "/var/run/trophie/trophie.sock" + + /* default location of samba-style configuration file (needs Samba >= 2.2.4 + or Samba 3.0 */ + +-#define PARAMCONF "/etc/samba/vscan-trend.conf" ++#define PARAMCONF "/usr/local/etc/samba-vscan/vscan-trend.conf" + + + /* False = log only infected file, True = log every file access */ diff -uNr samba-vscan.old/pkg-message samba-vscan/pkg-message --- samba-vscan.old/pkg-message Fri Aug 13 13:39:33 2004 +++ samba-vscan/pkg-message Fri Aug 13 14:34:04 2004 @@ -5,8 +5,8 @@ The configuration files is in %%PREFIX%%/etc/samba-vscan. -Edit %%PREFIX%%/etc/smb.conf and add the following entry -(that's only an example): +Edit %%PREFIX%%/etc/smb.conf and add the following entry if you are using +samba 2.X (that's only an example): [vscan] comment = virus-protected /tmp directory @@ -16,6 +16,18 @@ writeable = yes browseable = yes guest ok = yes + +If you are using samba 3.X: + +Edit /etc/smb.conf and add the following entry (that's only an example): + [vscan] + comment = virus-protected /tmp directory + path = /tmp + vfs object = vscan-oav + vscan-oav: config-file = %%PREFIX%%/etc/samba-vscan/vscan-oav.conf + writeable = yes + browseable = yes + guest ok = yes Basically you have to add a vfs object line to your shares which should be virus-protected by this module. If you'd like to use the --- samba-vscan.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040813175827.93284CAADD>