[Clamav-devel] clamav-milter (logging, notify to postmaster, reject message)

2004-03-31 Thread Sergey
Hello.

I think produce to discussion some patch.
It's contain

*1*. modified reply message for sendmail:

2004-04-01 02:10:24 sendmail[11026]: i2VLANKk011026: to=x, 
delay=00:00:01, pri=3
0539, stat=Exploit.HTML.Bagle.Gen-3-eml virus detected by ClamAV - 
http://www.clamav.net

Initial code from Bryan Swanson, rewrited by Andrey J. Melnikoff

reason: It message may be to see in DSN:
===
   - The following addresses had permanent fatal errors -
x
(reason: 550 5.7.1 Worm.BugBear.B virus detected by ClamAV - http://www.clamav.net)

   - Transcript of session follows -
... while talking to xx:
 DATA
 550 5.7.1 Worm.BugBear.B virus detected by ClamAV - http://www.clamav.net
554 5.0.0 Service unavailable
=

*2*. two modifications for E-Mail notification
 a) rfc-compatible received from local server:

Received: from qwerty (qqq.eee.com [xx.xx.xx.xx])
by srv7.kraft-s.ru (clamav-milter 0.70c) with id i2VKJ6Tb015441;
Thu, 01 Apr 2004 01:19:10 +0500 (SAMST)
Received: 
From: [EMAIL PROTECTED]
To:  [EMAIL PROTECTED]
Date: Wed, 31 Mar 2004 15:15:51 -0500
Subject: Delivery Failure:  Re: Extended Mail
X-Mailer: SurfControl E-mail Filter

 b) X-Infected-Received-From in header :

X-Infected-Received-From: qqq.eee.com [xx.xx.xx.xx]

first is a standart form of important data, second is very usable for
sorting (for example by Sieve)

*3*. improved (I think :-) ) logging with sendmail's Message Id in 
each line. It's usable for greping all data about message in maillog.  


The patch written for last CVS snapshot where compilation of clamav-milter
is possible.

Patch: 
http://hippo.ru/~asy/clamav/clamav-log-and-notify.patch

snapshot (just in case): 
http://hippo.ru/~asy/clamav/clamav-20040328.tar.gz

-- 
Regards,
Sergey

PS: sorry for my english :-(


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


Re: [Clamav-devel] clamav-milter (logging, notify to postmaster, reject message)

2004-03-31 Thread Sergey
On Thursday 01 April 2004 03:39, Antony Stone wrote:

 All your suggestions assume that ClamAV is running in combination with 
 sendmail

Yes. I write in subject: clamav-milter. It's all only for it.

 This is not a safe assumption.   People use ClamAV with all sorts of different 
 MTAs - probably sendmail, exim, postfix and qmail are the most common, but 
 there may well be more.

milter is a sendmail's filter interface. All it can't use clamav-milter, it's use 
clamd
directly or via over interfaces. Once again: the subject point to sendmail only. I'm 
not 
interest about problems with other MTA now. ;-)

-- 
regards, Sergey
[EMAIL PROTECTED]


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


[Clamav-devel] clamav-milter templates

2004-08-01 Thread Sergey
Hello.

I make some patch for templates support in clamav-milter.
patch for 0.75:
http://www.sama.ru/~asy/clamav/clamav-milter-0.75-template.diff
template example:
http://www.sama.ru/~asy/clamav/clamav-milter.msg

If you can't apply patch, you can replase sendtemplate 
function manualy:
http://www.sama.ru/~asy/clamav/clamav-milter.sendtemplate.c

For Nigel Horne:
If you decide add it to CVS, please use this links. It's more
recent than I sent to you yesterday.

-- 
Regards,
Sergey


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


Re: [Clamav-devel] clamav-milter templates

2004-08-06 Thread Sergey
On Sunday 01 August 2004 12:57, Nigel Horne wrote:

 I am in the throws of rewriting this code,

I was downloaded new CVS and I think that some code isn't good.

1. You are leave one % before clamav variables. It isn't multipurpose:
you can't create variables more one symbol in this case.

2. You are use putc for transfer template to sendmail. It's good for
temporaly quick solution but not for final. I think what (from my 
last version of patch - see first message in this tread)
  {
char c, *tmpptr;
varlen = strcspn(ptr,\\%); // all used special symbols must listed (now \,%,)
tmpptr = ptr + varlen;
c = *tmpptr;
*tmpptr = '\0';
rc = (fputs(ptr, sendmail) == EOF) ? -1 : 0;
*tmpptr = c;
ptr = ptr + varlen - 1;
  }
will be work more quickly - many file operations changed by one. I think what 
it is critical for heavy load servers.

-- 
Regards,
Sergey


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


Re: [Clamav-devel] clamav-milter templates

2004-08-09 Thread Sergey
On Friday 06 August 2004 16:28, Nigel Horne wrote:

  1. You are leave one % before clamav variables. It isn't multipurpose:
  you can't create variables more one symbol in this case.
 
 I have no plans to make the syntax of clamav-milter incompatible with clamd
 (see VirusEvent).

I'm understand. Well. But it's limit of template functionality. I think what
is time for change syntax (may be it's not good because it's only for milter)
or create third class of variables - clamav-milter specific. So, you  select
%X  - for ClamAV general variables;
@X@ - for sendmail's variables.
You can use X for clamav-milter specific for cancel general limit.

  2. 
  will be work more quickly - many file operations changed by one. 
 
 putc uses stdio, so the number of file operations remains the same since the
 output is buffered in the stdio library.

Ok. I'm not good C-coder, I will be trust.

-- 
Regards,
Sergey


---
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


Re: [Clamav-devel] clamav-milter templates

2004-08-10 Thread Sergey
On Monday 09 August 2004 21:11, Sergey wrote:

 I'm understand. Well. But it's limit of template functionality. I think what
 is time for change syntax (may be it's not good because it's only for milter)
 or create third class of variables - clamav-milter specific. So, you  select
 %X  - for ClamAV general variables;
 @X@ - for sendmail's variables.
 You can use X for clamav-milter specific for cancel general limit.

That do you say about add section (sorry for non patch) ?

} else if(*ptr == '') {
/* clamav-milter variable */
char *end = strchr(++ptr, '');

if(end == NULL) {
syslog(LOG_ERR,
%s: Unterminated clamav-milter variable 
\%s\\n,
filename, ptr);
continue;
}
*end = '\0';

/* begin variables definitions */
if ( strcmp(ptr, v) == 0 ) { // replacement for %v, may be 
not need
fputs(virusname, sendmail);
} // v
else if ( strcmp(ptr, header) == 0) {
struct privdata *privdata = (struct privdata 
*)smfi_getpriv(ctx);
header_list_print(privdata-headers, sendmail);
} // header
else if ( strcmp(ptr, full_version) == 0) {
fputs(clamav_version, sendmail);
} // clamav_version
else if ( strcmp(ptr, localreceived) == 0) {
char *s_relay, *helo;
char timestring[128];
time_t systime;

s_relay = smfi_getsymval(ctx, {_});
if (!s_relay) s_relay = ;
helo = smfi_getsymval(ctx, s);
if (!helo) {
helo = NOHELO;
if(use_syslog)
syslog(LOG_WARNING, Variable \s\ isn't 
defined in Milter.macros.eom\n);
}

systime = time(NULL);
strftime(timestring, sizeof(timestring) -1, %a, %d %b %Y 
%T %z (%Z),
localtime(systime));

fprintf(sendmail, Received: from %s (%s), helo, s_relay);
fprintf(sendmail, \n\tby %s (clamav-milter %s) with id 
%s;,
smfi_getsymval(ctx, j), CM_VERSION, 
smfi_getsymval(ctx, i));
fprintf(sendmail, \n\t%s, timestring);

} // localreceived
else {
fprintf(sendmail, [unknown clamav-milter's variable:  
%s], ptr);
if(use_syslog)
syslog(LOG_ERR, %s: Unknown clamav-milter's variable 
\%s\\n,
 filename, ptr);
} // end variables definitions
ptr = end;


It's not make the syntax of clamav-milter incompatible with clamd and add some new 
variables which expand template using.

-- 
Regards,
Sergey


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


Re: [Clamav-devel] Slight error in clamav-milter (fwd)

2004-08-25 Thread Sergey
On Monday 23 August 2004 19:20, Andy Fiddaman wrote:


 Sorry, just re-read this code. MAKEMASK takes an inverse netmask length so
 the code is right.

but comment ( 172.16.0.0/20 ) is invalid :-)

-- 
Regards,
Sergey


---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink  Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


Re: [Clamav-devel] unrarsrc-3.4.3.tar.gz (rar3 ?)

2004-09-24 Thread Sergey
On Wednesday 22 September 2004 17:48, Kri?tof Petr wrote:

 Supports 7z, ZIP, CAB, RAR, ARJ, GZIP, BZIP2, TAR, CPIO, RPM, DEB.

the RAR - is this RAR3 ?

-- 
Regards,
Sergey


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
Clamav-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/clamav-devel


[Clamav-devel] Re: Patch for sender host name and IP address in report template

2004-10-06 Thread Sergey
Serge Vakulenko wrote:

 There is a big difference though.
 With my patch, the client host name and IP address are always known.
 No matter what variables to pass to clamav-milter are configured in
 sendmail.cf.

Some time ago I ask about add third type variable in template:
clamav-milter specific... :-) Patch in attach make avaliable 
using template
===
The message $i$ sent from ${mail_addr}$ to
${rcpt_addr}$
contained a virus and has not been delivered.
%v found.

Scanning engine:
full_version

- The original (infected) message headers were:

localreceived
header
===
Some variables in this patch can be removed (v and header), but 
localreceived RFC-style addons for header... I think what this 
patch will be include in Alt Linux Sisyphus in next update of 
ClamAV package.

-- 
Regards,
Sergey
--- clamav-milter/clamav-milter.c.orig	2004-09-18 01:06:32 +0500
+++ clamav-milter/clamav-milter.c	2004-09-18 13:40:33 +0500
@@ -3517,6 +3517,64 @@
 ptr = end;
 break;
 			}
+			case '': /* clamav-milter variables */ {
+char *end = strchr(++ptr, '');
+
+if(end == NULL) {
+	syslog(LOG_ERR,
+		_(%s: Unterminated clamav-milter variable \%s\\n),
+		filename, ptr);
+	continue;
+}
+*end = '\0';
+
+/* begin variables definitions */
+// Virus name, replacement for %v, may be not need
+if ( strcmp(ptr, v) == 0 ) { 
+fputs(virusname, sendmail);
+} // end of v
+// Header, , replacement for %h, may be not need
+else if ( strcmp(ptr, header) == 0) {
+struct privdata *privdata = (struct privdata *)smfi_getpriv(ctx);
+header_list_print(privdata-headers, sendmail);
+} // end of header
+// ClamAV/clamav-milter version
+else if ( strcmp(ptr, full_version) == 0) {
+fputs(clamav_version, sendmail);
+} // end of clamav_version
+// Local Received aadons for header
+else if ( strcmp(ptr, localreceived) == 0) {
+char *s_relay, *helo;
+char timestring[128];
+time_t systime;
+
+s_relay = smfi_getsymval(ctx, {_});
+if (!s_relay) s_relay = ;
+helo = smfi_getsymval(ctx, s);
+if (!helo) {
+	helo = NOHELO;
+	if(use_syslog)
+		syslog(LOG_WARNING, _(Variable \s\ isn't defined in Milter.macros.eom\n));
+}
+
+systime = time(NULL);
+strftime(timestring, sizeof(timestring) -1, %a, %d %b %Y %T %z (%Z),
+		localtime(systime));
+
+fprintf(sendmail, Received: from %s (%s), helo, s_relay);
+fprintf(sendmail, \n\tby %s (clamav-milter %s) with id %s;,
+	smfi_getsymval(ctx, j), CM_VERSION, smfi_getsymval(ctx, i));
+fprintf(sendmail, \n\t%s, timestring);
+
+} // localreceived
+else {
+fprintf(sendmail, [unknown clamav-milter's variable:  %s], ptr);
+	if(use_syslog)
+		syslog(LOG_ERR, _(%s: Unknown clamav-milter's variable \%s\\n),
+			filename, ptr);
+} // end variables definitions
+ptr = end;
+			} break;
 			case '\\':
 if(*++ptr == '\0') {
 	--ptr;
___
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel


[Clamav-devel] clamav-milter logging

2006-01-13 Thread Sergey
Hello.

Which component of clamav-milter write to log

[49156] cur 0 new 1 nextmask 2
[49156] got cmd 'D' len 148
[49156] cur 1 new  nextmask 2004
[49156] got cmd 'C' len 42
[49156] cur 1 new 2 nextmask 2004
[49156] got cmd 'D' len 1

?

I wish to forbid it, but I can not understand, how. :-(

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamav-milter logging

2006-01-28 Thread Sergey
On Wednesday 18 January 2006 11:07, Sergey wrote:

  Disable LogVerbose in clamd.conf
 
 It's not good... :-(
 
 First, that is badly that does not exist default config for clamav-milter 
 (there is still a problem with the common log file). 

What do you think about adding clamav-milter.conf in package ?
Some parameters for clamd and clamav-milter should not be identical. 

And it seems to me, that clamav-milter it is necessary to allocate in the 
separate project as it is absolutely not obligatory to change clamav-milter 
and clamd simultaneously.

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamav-milter logging

2006-01-29 Thread Sergey
On Saturday 28 January 2006 13:44, Nigel Horne wrote:

 And it seems to me, that clamav-milter it is necessary to allocate in the 
 separate project as it is absolutely not obligatory to change clamav-milter 
 and clamd simultaneously.

 Does --config-file not work?

It's work. But parameters used by clamav-milter is not described. 
To copy all from clamd.conf to clamav-milter.conf it is not correct.
I can find parameters in source code but it will need to be checked 
after occurrence of each new version...

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamav-milter logging

2006-01-29 Thread Sergey
On Friday 13 January 2006 23:05, Nigel Horne wrote:

  [49156] got cmd 'C' len 42
  [49156] cur 1 new 2 nextmask 2004
  [49156] got cmd 'D' len 1
  
  ?
  
  I wish to forbid it, but I can not understand, how. :-(
 
 Disable LogVerbose in clamd.conf

What do you think about adding the SysLogVerbose parameter ?

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


[Clamav-devel] --as-needed in GNU ld

2006-03-14 Thread Sergey
Hello.

configure is not passwd when ld called with --as-needed:

skip
checking for curl = 7.10.0... 7.15.1
checking for mi_stop in -lmilter... no
checking for library containing strlcpy... none required
checking for mi_stop in -lmilter... no
configure: error: Cannot find libmilter
error: Bad exit status from /home/asy/tmp/rpm-tmp.82987 (%build)

I found what test called as

gcc -o conftest -g -O2   -lnsl -lmilter  -lnsl -lpthread conftest.c -lmilter   
-lnsl 5

I think that -l* must be put after conftest.c... 

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamav-milter logging

2006-03-30 Thread Sergey
On Friday 13 January 2006 23:05, Nigel Horne wrote:

  Hello.
  
  Which component of clamav-milter write to log
  
  [49156] cur 0 new 1 nextmask 2
  [49156] got cmd 'D' len 148
  [49156] cur 1 new  nextmask 2004
  [49156] got cmd 'C' len 42
  [49156] cur 1 new 2 nextmask 2004
  [49156] got cmd 'D' len 1
  
  ?
  
  I wish to forbid it, but I can not understand, how. :-(
 
 Disable LogVerbose in clamd.conf

Hm... I run clamav-milter as

clamav-milter --config-file=/etc/clamav/clamav-milter.conf

# cat /etc/clamav/clamav-milter.conf|grep Log|grep -v ^#
LogFile /var/log/clamav/clamav-milter.log
LogSyslog
LogVerbose
LogFacility LOG_MAIL
LogFileMaxSize 5M
LogTime

# ls -l /var/log/clamav/clamav-milter.log
-rw---  1 mail mail 6807552 Мар 30 12:32 /var/log/clamav/clamav-milter.log

Why is size of log more 5M ? I removed clamav-milter.log some minutes ago. 
And clamav-milter is crashing if log size is 2Gb.

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamav-milter logging

2006-03-30 Thread Sergey
On Thursday 30 March 2006 14:04, Nigel Horne wrote:

  Why is size of log more 5M ? I removed clamav-milter.log some minutes ago. 
  And clamav-milter is crashing if log size is 2Gb.
 
 It is so big because you haven't followed my instruction to disable 
 LogVersbose.

I can't disable LogVersbose because I need of verbose syslog.

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamav-milter logging

2006-03-30 Thread Sergey
On Thursday 30 March 2006 14:30, Sergey wrote:

  It is so big because you haven't followed my instruction to disable 
  LogVersbose.
 
 I can't disable LogVersbose because I need of verbose syslog.

Can You prompt where this file is written? I have found only 
static void logger (const char *mess) but this function is 
caused only in case of non external mode...

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamav-milter logging

2006-03-30 Thread Sergey
On Thursday 30 March 2006 15:34, Nigel Horne wrote:

  Can You prompt where this file is written? I have found only 
  static void logger (const char *mess) but this function is 
  caused only in case of non external mode...
 
 if(cfgopt(copt, LogVerbose)-enabled) {
   logVerbose = 1;

I have found it. I have not understood communication between writing
to LogFile and a flag logVerbose. :-(

I have found only 

   if(logVerbose) syslog(...);

Or function syslog writes not only in syslog, but also in LogFile ?

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamav-milter logging

2006-03-31 Thread Sergey
On Thursday 30 March 2006 15:34, Nigel Horne wrote:

 smfi_setdbg(6);

It was necessary to tell me, that 

[49156] cur 0 new 1 nextmask 2
[49156] got cmd 'D' len 148
[49156] cur 1 new  nextmask 2004
[49156] got cmd 'C' len 42
[49156] cur 1 new 2 nextmask 2004
[49156] got cmd 'D' len 1

is a libmilter debug. :-(
I think that there should be no communication between syslog and log 
to file. 

I replace logVerbose to syslogVerbose at all clamav-milter and 
replace near code to


if(cfgopt(copt, LogVerbose)) {
logVerbose = 1;
#if ((SENDMAIL_VERSION_A  8) || ((SENDMAIL_VERSION_A == 8)  
(SENDMAIL_VERSION_B = 13)))
smfi_setdbg(6);
#endif
}

if(cfgopt(copt, LogSyslog)) {
int fac = LOG_LOCAL6;

if(cfgopt(copt, SysLogVerbose)) {
syslogVerbose = 1;
}
use_syslog = 1;


It seems to me, it is more correct.

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] --as-needed in GNU ld

2006-04-03 Thread Sergey
On Tuesday 14 March 2006 14:59, Sergey wrote:

 configure: error: Cannot find libmilter
 error: Bad exit status from /home/asy/tmp/rpm-tmp.82987 (%build)
 
 I found what test called as
 
 gcc -o conftest -g -O2   -lnsl -lmilter  -lnsl -lpthread conftest.c -lmilter  
  -lnsl 5
 
 I think that -l* must be put after conftest.c... 

Sorry, this is my bug with building shared libmilter.

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html


Re: [Clamav-devel] clamd false positive, (Oversized.Zip on small zip files)

2007-05-17 Thread Sergey
On Monday 14 May 2007, Tomasz Kojm wrote:

 Martin Blapp [EMAIL PROTECTED] wrote:
 
  What do you propose ? Is there a easy config fix for clamd or are we lost ?
 
 man clamd.conf

Are you remember it ? ;-)

===
Subject: Re: [clamd/clamscan (?)] Oversized.RAR false positives
From: Tomasz Kojm [EMAIL PROTECTED]
To: Sergey Y. Afonin [EMAIL PROTECTED]
Date: 2004-11-29 01:37

On Sat, 27 Nov 2004 10:42:04 +0400 Sergey Y. Afonin [EMAIL PROTECTED] wrote:

 Subject: [wish] ArchiveMaxCompressionRatio
 Date: Wednesday 24 November 2004 12:16
 From: Sergey [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
  ^
should be @lists.clamav.net

 checked archive and to not check Compression Ratio for archives, which
 in the unpacked no more X:
 
 NoCheckCompressionRatioBefore 10M 

Good idea!

-- 
   oo. Tomasz Kojm [EMAIL PROTECTED]
  (\/)\. http://www.ClamAV.net/gpg/tkojm.gpg
 \..._ 0DCA5A08407D5288279DB43454822DC8985A444B
   //\   /\  Sun Nov 28 22:37:04 CET 2004
  
===

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Re: [Clamav-devel] Segfault in libclamav (0.91.2)

2007-09-05 Thread Sergey
On Tuesday 04 September 2007, aCaB wrote:

 Looks to me like a compiler bug.
 If you're using gcc 4.1.0 do yourself a favour and upgrade to at least
 4.1.1.
 
 Please see https://wwws.clamav.net/bugzilla/show_bug.cgi?id=613

Is this the gcc 4.1.0 bug only ? What about 3.4.4 and 3.3.3 ?

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Re: [Clamav-devel] ClamAV®: ClamAV 0.98 has been released!

2013-09-28 Thread Sergey
On Thursday 19 September 2013, Joel Esler wrote:

 http://blog.clamav.net/2013/09/clamav-098-has-been-released.html
 
 ClamAV 0.98 has been released!

I'm appologize, but tarball has grown enormously since the 
last release:

14609966 Apr 18 00:20 clamav-0.97.8.tar.gz
37075245 Sep 19 22:24 clamav-0.98.tar.gz

Maybe some unneeded files in there ? 0.97.8 is not contains 
clamav-for-windows/sigui/wxWidgets-2.9.1 for example.

In addition, a tarball is not enough cleaned from git-files
.gitattributes and .gitignore.

-- 
Regards,
Sergey
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


Re: [Clamav-devel] forgotten soname ? (Re: [clamav-users] ClamAV® blog: ClamAV 0.99 has been released!)

2015-12-04 Thread Sergey
On Friday 04 December 2015, Sergey wrote:

> Did you forget to change the soname ?

Sorry, it's my carelessness. Soname was changed.

-- 
Regards, Sergey
___
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] ClamAV® blog: ClamAV 0.101.1 Patch has been released

2019-01-11 Thread Sergey
On Monday 07 January 2019, Joel Esler (jesler) wrote:

> > ClamAV 0.101.1 Patch has been released
 
Fine!

But I have a small problem. I need of compatibility package with
old libclamav, but soname libclammspack was not changed and files
has same names in 0.101 and 0.100. It would be nice to change 
soname of all libraries.
 
-- 
Regards, Sergey
___
clamav-devel mailing list
clamav-devel@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel

Please submit your patches to our Bugzilla: http://bugzilla.clamav.net

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] ClamAV® blog: ClamAV 0.101.1 Patch has been released

2019-01-12 Thread Sergey
On Friday 11 January 2019, Micah Snyder (micasnyd) wrote:

> We're doing our best to track libclammspack very closely with the
> upstream libmspack project. 

You gave me an idea: I built compatibility package with system's libmspack.
Thanks.

-- 
Regards,
Sergey
___
clamav-devel mailing list
clamav-devel@lists.clamav.net
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel

Please submit your patches to our Bugzilla: http://bugzilla.clamav.net

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


[Clamav-devel] Linux, configure.ac: automake 1.16, AC_SYS_LARGEFILE

2019-04-13 Thread Sergey
Hello.

It about two different problems but in one file.

1. automake 1.16

ClamAV isn't built if autoreconf was used. AC_CONFIG_AUX_DIR([config])
should be placed after AC_INIT before all other.

2. AC_SYS_LARGEFILE.

It is needed for i586. What do you think about to add it globally?
There's the one problem: glibc version check is needed. 

For example glibc 2.17 contains (in include/fts.h):

#ifdef __USE_FILE_OFFSET64
# error " cannot be used with -D_FILE_OFFSET_BITS==64"
#endif

I don't know when it was removed but glibc 2.23 isn't contains it
and AC_SYS_LARGEFILE works.

-- 
Regards,
Sergey
___

clamav-devel mailing list
clamav-devel@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-devel

Please submit your patches to our Bugzilla: http://bugzilla.clamav.net

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] Linux, configure.ac: automake 1.16, AC_SYS_LARGEFILE

2019-05-08 Thread Sergey
On Friday 26 April 2019, Micah Snyder (micasnyd) wrote:

>  Did you validate if glibc 2.18 allows AC_SYS_LARGEFILE?

I look to "glibc-2.18-11.fc20.src.rpm" now and I see what
2.18 isn't support FILE_OFFSET64 too.

-- 
Regards,
Sergey
___

clamav-devel mailing list
clamav-devel@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-devel

Please submit your patches to our Bugzilla: http://bugzilla.clamav.net

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] Linux, configure.ac: automake 1.16, AC_SYS_LARGEFILE

2019-05-08 Thread Sergey
On Friday 26 April 2019, Micah Snyder (micasnyd) wrote:

>> 1. automake 1.16
>> 
>> ClamAV isn't built if autoreconf was used. AC_CONFIG_AUX_DIR([config])
>> should be placed after AC_INIT before all other.
> 
> Do you suggest this? 
> 
> diff --git a/configure.ac b/configure.ac
> index b333e3eb2..fbb62526c 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -23,13 +23,13 @@ AC_PREREQ([2.59])
>  dnl For a release change [devel] to the real version [0.xy]
>  dnl also change VERSION below
>  AC_INIT([ClamAV], [0.102.0-devel], [https://bugzilla.clamav.net/], [clamav], 
> [https://www.clamav.net/])
> +AC_CONFIG_AUX_DIR([config])
> 
>  dnl enable C++
>  AC_PROG_CXX()
> 
>  AH_BOTTOM([#include "platform.h"])
>  dnl put configure auxiliary into config
> -AC_CONFIG_AUX_DIR([config])
>  AC_CONFIG_HEADERS([clamav-config.h 
> libclammspack/config.h:libclammspack/config.h.in])
> 
>  dnl safety check, this used to be a parameter to AC_INIT

Yes. And with comment "dnl put configure auxiliary into config"

-- 
Regards,
Sergey
___

clamav-devel mailing list
clamav-devel@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-devel

Please submit your patches to our Bugzilla: http://bugzilla.clamav.net

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] Subject: Pure Perl milter for use with clamd.

2019-08-20 Thread Sergey
On Monday 19 August 2019, G.W. Haywood wrote:

> Tradeoffs - plus:
> 
> 1. The Perl milter can easily be customized for specific purposes.

> 2. Control is more fine-grained.

> 3. The milter might enable you to respond more quickly for example to
> attacks, or the odd issues which crop up in other parts of the system.

Try looking to mailfromd: http://puszcza.gnu.org.ua/software/mailfromd/

http://puszcza.gnu.org.ua/software/mailfromd/manual/html_section/Interfaces-to-Third_002dParty-Programs.html#ClamAV

-- 
Regards,
Sergey
___

clamav-devel mailing list
clamav-devel@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-devel

Please submit your patches to our Bugzilla: http://bugzilla.clamav.net

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] 0.101.5 (and .4), make check and gcc 9

2019-11-26 Thread Sergey
On Monday 25 November 2019, Sergey wrote:

> "make check" fails with multiple errors when I use gcc 9. Is ClamAV
> adapted to build by gcc 9?
> 
> For example:
> 
> In file included from check_clamav.c:11:
> check_clamav.c: In function 'test_cl_free_fn':
> check_clamav.c:43:12: error: storage class specified for parameter 
> 'test_cl_dup_fn'
>    43 | START_TEST(test_cl_dup)
>       |            ^~~
 
This is not a problem with gcc9. This is caused by replacing libcheck
from 0.12.0 to 0.13.0.

-- 
Regards, Sergey
___

clamav-devel mailing list
clamav-devel@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-devel

Please submit your patches to our Github: 
https://github.com/Cisco-Talos/clamav-devel/pulls

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] 0.101.5 (and .4), make check and gcc 9

2019-11-26 Thread Sergey
On Tuesday 26 November 2019, Micah Snyder (micasnyd) wrote:

> Hi Sergey,
> 
> Thanks for investigating. I believe that test_cl_dup() and a few others
> in there are completely empty.  I looked at them a few days ago and 
> thought to myself, "Is this even allowed?".  Perhaps maybe it isn't 
> (anymore).  I imagine if all references to test_cl_dup and the other
> empty tests are removed, it may work. 

It helps. I removed

START_TEST(test_cl_retdbdir)
fail_unless(!strcmp(DATADIR, cl_retdbdir()), "cl_retdbdir");
END_TEST

also. It cause the error

In file included from check_clamav.c:11:
check_clamav.c:51:13: error: expected declaration specifiers or '...' before 
'!' token
   51 | fail_unless(!strcmp(DATADIR, cl_retdbdir()), "cl_retdbdir");
  | ^

-- 
Regards, Sergey
___

clamav-devel mailing list
clamav-devel@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-devel

Please submit your patches to our Github: 
https://github.com/Cisco-Talos/clamav-devel/pulls

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [Clamav-devel] Linux, configure.ac: automake 1.16, AC_SYS_LARGEFILE

2020-06-30 Thread Sergey
On Friday 26 April 2019, Micah Snyder (micasnyd) wrote:

>  > I don't know when it was removed but glibc 2.23 isn't contains it
>  > and AC_SYS_LARGEFILE works.
> 
> I don't have any complaint about setting it AC_SYS_LARGEFILE globally,
> rather than just in the system-installed libmspack condition we have 
> right now.  You're quite right about requiring the glibc version check
> in configure.ac.   

I found interesting example in configure.ac of elfutils 
https://sourceware.org/elfutils/

dnl This test must come as early as possible after the compiler configuration
dnl tests, because the choice of the file model can (in principle) affect
dnl whether functions and headers are available, whether they work, etc.
AC_SYS_LARGEFILE

dnl Older glibc had a broken fts that didn't work with Large File Systems.
dnl We want the version that can handler LFS, but include workaround if we
dnl get a bad one. Add define to CFLAGS (not AC_DEFINE it) since we need to
dnl check it before including config.h (which might define _FILE_OFFSET_BITS).
AC_CACHE_CHECK([whether fts.h is bad when included (with LFS)], ac_cv_bad_fts,
  [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[#include ]])],
 ac_cv_bad_fts=no, ac_cv_bad_fts=yes)])
AS_IF([test "x$ac_cv_bad_fts" = "xyes"], [CFLAGS="$CFLAGS -DBAD_FTS=1"])

-- 
Regards, Sergey
___

clamav-devel mailing list
clamav-devel@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-devel

Please submit your patches to our Github: 
https://github.com/Cisco-Talos/clamav-devel/pulls

Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml