Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: win32

w32.clamav.net

 

 

First page Previous page 1 2 Next page Last page  View All ClamAV win32 RSS feed   Index | Next | Previous | View Threaded


njh at bandsman

Aug 14, 2006, 3:20 AM

Post #1 of 47 (5740 views)
Permalink
w32.clamav.net

I've created a port of clamAV for Windows, to be built and compiled
using VS 2005.

You can download the software from w32.clamav.net.

This port is officially supported by the clamAV team, is against
the latest CVS code and currently features:

* a graphical installer
* freshclam
* clamd
* clamscan
* clamdscan
* a Windows service which starts freshclam and clamd

-Nigel


iprat at sapse

Aug 31, 2006, 9:36 AM

Post #2 of 47 (5572 views)
Permalink
Re: w32.clamav.net [In reply to]

Al 14/08/2006 12:20, En/na Nigel Horne ha escrit:
> This port is officially supported by the clamAV team, is against
> the latest CVS code and currently features:
>
> * a graphical installer
> * freshclam
> * clamd
> * clamscan
> * clamdscan

Hi Nigel:

I've been able to successfully use freshclam and clamd with clamdscan (I
am using SOSDG clamav in a production server and I am evaluating using
w32 clamav)

What I have not been able is to run freshclam in daemon mode: freshclam
-d just exits freshclam with no news.

And worse is that while trying clamscan:

C:\Program Files\clamAV>clamscan
LibClamAV Error: cli_cvdload(): Can't create temporary directory
\\clamav-c9e1c8
665a80121bee675b327265a01f
LibClamAV Error: Can't load C:\Program Files\clamAV\data/main.cvd:
Unable to cre
ate temporary directory
WARNING: Unable to create temporary directory

----------- SCAN SUMMARY -----------
Known viruses: 3239
Engine version: devel-20060814
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Time: 0.523 sec (0 m 0 s)

I've checked on two different machines (XP SP2 and .NET 2 version as
required) and both fail with similar errors.

Any ideas where to have a look at ?

> * a Windows service which starts freshclam and clamd

I have not been able to find it in the clamav.msi.

Maybe the service is only in your non-free powertools ?

Best regards and keep up the good job,

Ignasi Prat

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


njh at bandsman

Sep 1, 2006, 2:17 AM

Post #3 of 47 (5573 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

Ignasi Prat wrote:

> Hi Nigel:

> What I have not been able is to run freshclam in daemon mode: freshclam
> -d just exits freshclam with no news.

That's on my list of things to do.
>
> And worse is that while trying clamscan:
>
> C:\Program Files\clamAV>clamscan
> LibClamAV Error: cli_cvdload(): Can't create temporary directory
> \\clamav-c9e1c8
> 665a80121bee675b327265a01f

Try "clamscan --tempdir=c:\windows\temp" or some similar option. It's on
my list to ensure the default is set to c:\windows\temp on Windows.

> > * a Windows service which starts freshclam and clamd
>
> I have not been able to find it in the clamav.msi.
>
> Maybe the service is only in your non-free powertools ?

Yes. I'll correct the web page.
>
> Best regards and keep up the good job,
>
> Ignasi Prat

-Nigel


iprat at sapse

Sep 1, 2006, 2:59 AM

Post #4 of 47 (5581 views)
Permalink
Re: w32.clamav.net [In reply to]

Al 01/09/2006 11:17, En/na Nigel Horne ha escrit:
> Try "clamscan --tempdir=c:\windows\temp" or some similar option. It's on
> my list to ensure the default is set to c:\windows\temp on Windows.

That did the trick. Thanks for your fast answer.

Maybe you should consider changing this timestamp automatically for each
release as this will help when debugging, for example:

clamd daemon devel-20060814

This is what my 29-8-2006 install setup claims to be, the same as your
previous release. Anyway I was aware I had 29-8-2006 version because all
binaries had that timestamp ;)

Good job !

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


njh at bandsman

Sep 1, 2006, 3:22 AM

Post #5 of 47 (5565 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

Ignasi Prat wrote:

> Maybe you should consider changing this timestamp automatically for each
> release as this will help when debugging, for example:
>
> clamd daemon devel-20060814

Yes, good point.

> This is what my 29-8-2006 install setup claims to be, the same as your
> previous release. Anyway I was aware I had 29-8-2006 version because all
> binaries had that timestamp ;)
>
> Good job !

-Nigel


njh at bandsman

Sep 1, 2006, 6:41 AM

Post #6 of 47 (5552 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

clamscan now uses c:\windows\temp as it's default directory.

-Nigel


iprat at sapse

Sep 1, 2006, 8:06 AM

Post #7 of 47 (5562 views)
Permalink
Re: w32.clamav.net [In reply to]

Al 01/09/2006 15:41, En/na Nigel Horne ha escrit:
> clamscan now uses c:\windows\temp as it's default directory.

Tested here and it's working fine, I have seen that version number has
been updated, Thanks ! :D

Ignasi Prat

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


spam_narf_spam at crazyhat

Sep 9, 2006, 1:13 PM

Post #8 of 47 (5512 views)
Permalink
Re: w32.clamav.net [In reply to]

In message <44E04E89.7020901 [at] bandsman> Nigel Horne
<njh [at] bandsman> wrote:

>I've created a port of clamAV for Windows, to be built and compiled
>using VS 2005.

And it's amazingly fast. I ditched my cygwin implementation almost
instantly (well, after about four hours of testing)

A few things... All very minor.

1) I can't get clamd to run under AppToService, although if I run a
"cmd.exe /c clamd" it works. Not a big deal.

2) clamd's selfcheck always reports a new DB, even when freshclam hasn't
found anything new. I have freshclam notifying clamd successfully, so
this check should never find anything new. I shorted the interval and
it still reports a new DB each time, even though freshclam last updated
around 4am (my time zone)

3) What's the correct way to specify paths in the conf files? Since the
default installation is at "C:\Program Files\clamd" I decided to stick
with that, but when I attempt to enter that into a conf file, it gives
me "C:\Program" -- I've tried with and without quotes.

C:\Progra~1 seems to work, but I wouldn't rely on that as there is no
guarantee that all systems will use ~1

Thanks for all your efforts, I'm very impressed!

--
I'm a tagline virus, please copy me to your signature file

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


georgek at netwrx1

Sep 10, 2006, 5:44 AM

Post #9 of 47 (5508 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

Where could one locate a binary version I could install here as I
don't have VS studio 2005??

How does it compare to ClamWin?

George

>In message <44E04E89.7020901 [at] bandsman> Nigel Horne
><njh [at] bandsman> wrote:
>
>>I've created a port of clamAV for Windows, to be built and compiled
>>using VS 2005.
>
>And it's amazingly fast. I ditched my cygwin implementation almost
>instantly (well, after about four hours of testing)
>
>A few things... All very minor.
>
>1) I can't get clamd to run under AppToService, although if I run a
>"cmd.exe /c clamd" it works. Not a big deal.
>
>2) clamd's selfcheck always reports a new DB, even when freshclam hasn't
>found anything new. I have freshclam notifying clamd successfully, so
>this check should never find anything new. I shorted the interval and
>it still reports a new DB each time, even though freshclam last updated
>around 4am (my time zone)
>
>3) What's the correct way to specify paths in the conf files? Since the
>default installation is at "C:\Program Files\clamd" I decided to stick
>with that, but when I attempt to enter that into a conf file, it gives
>me "C:\Program" -- I've tried with and without quotes.
>
>C:\Progra~1 seems to work, but I wouldn't rely on that as there is no
>guarantee that all systems will use ~1
>
>Thanks for all your efforts, I'm very impressed!
George, Nazarene(6/1/99- ), Ginger/The Beast Kasica(8/1/88-3/19/01, 1/17/02-), MR. Tibbs(8/1/90-5/24/06)
Jackson, WI USA
georgek [at] netwrx1
http://www.netwrx1.com/georgek
ICQ #12862186

("`-''-/").___..--''"`-._
`6_ 6 ) `-. ( ).`-.__.`)
(_Y_.)' ._ ) `._ `. ``-..-'
_..`--'_..-_/ /--'_.' ,'
(il),-'' (li),' ((!.-'
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


sarocet at gmail

Sep 10, 2006, 8:06 AM

Post #10 of 47 (5509 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

DevilsPGD <spam_narf_spam [at] crazyhat> wrote:

3) What's the correct way to specify paths in the conf files? Since the
default installation is at "C:\Program Files\clamd" I decided to stick
with that, but when I attempt to enter that into a conf file, it gives
me "C:\Program" -- I've tried with and without quotes.

C:\Progra~1 seems to work, but I wouldn't rely on that as there is no
guarantee that all systems will use ~1


Usually you can bypass this by using " " around the path.
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


dave-usenet at djwcomputers

Sep 10, 2006, 2:03 PM

Post #11 of 47 (5513 views)
Permalink
Re: w32.clamav.net [In reply to]

In message <002401c6d4ea$a8e762d0$0501a8c0 [at] Mul> "Sarocet"
<sarocet [at] gmail> wrote:

>DevilsPGD <spam_narf_spam [at] crazyhat> wrote:
>
>3) What's the correct way to specify paths in the conf files? Since the
>default installation is at "C:\Program Files\clamd" I decided to stick
>with that, but when I attempt to enter that into a conf file, it gives
>me "C:\Program" -- I've tried with and without quotes.
>
>C:\Progra~1 seems to work, but I wouldn't rely on that as there is no
>guarantee that all systems will use ~1
>
>
>Usually you can bypass this by using " " around the path.

As I indicated in my message, I tried both with and without quotes.

My choices are an error about writting to one of the following paths:

1) C:\Program
2) "C:\Program
--
Dave Warren,
MSN Instant Messenger: dave [at] djwcomputers
Phone: (204) 480-8407 Toll free: (888) 371-3470
Fax: (204) 283-6028

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


njh at bandsman

Sep 11, 2006, 2:35 AM

Post #12 of 47 (5502 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

George R.Kasica wrote:
> Where could one locate a binary version I could install here as I
> don't have VS studio 2005??

The binary version can be downloaded from w32.clamav.net or
www.bandsman.co.uk/clamav.htm

> George

-Nigel


njh at bandsman

Sep 11, 2006, 2:46 AM

Post #13 of 47 (5502 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

DevilsPGD wrote:

>> I've created a port of clamAV for Windows, to be built and compiled
>> using VS 2005.
>
> And it's amazingly fast. I ditched my cygwin implementation almost
> instantly (well, after about four hours of testing)
>
> A few things... All very minor.
>
> 1) I can't get clamd to run under AppToService, although if I run a
> "cmd.exe /c clamd" it works. Not a big deal.

The Power Tools from www.bandsman.co.uk/clamav.htm allow you to run
clamd as a Windows service (only tested on Windows XP Pro).

> 2) clamd's selfcheck always reports a new DB, even when freshclam hasn't
> found anything new. I have freshclam notifying clamd successfully, so
> this check should never find anything new. I shorted the interval and
> it still reports a new DB each time, even though freshclam last updated
> around 4am (my time zone)

I believe clamd is at fault, my hunch is that clamd just looks at
timestamps rather than file contents. It may be best to remove all the
contents of C:\Program Files\clamAV\data and rerun freshclam. Does that
help?

> 3) What's the correct way to specify paths in the conf files? Since the
> default installation is at "C:\Program Files\clamd" I decided to stick
> with that, but when I attempt to enter that into a conf file, it gives
> me "C:\Program" -- I've tried with and without quotes.
>
> C:\Progra~1 seems to work, but I wouldn't rely on that as there is no
> guarantee that all systems will use ~1

You can't enter the location of a configuration file in that file
itself. Think about it - it's a paradox. You need to give the
configuration file's location as an argument to clamd, thus to use
the D drive try:
clamd -c "D:\Program Files\clamAV\conf\clamd.conf"

There is a known limitation in clamd.conf (and freshclam.conf) that you
can't specify spaces in pathnames, e.g. to change the location of the
log files. This is true of all operating systems, since it is a clamd
issue rather than an issue on the Windows version. You can raise the
issue either by discussing it on the clamav-users mailing list, or by
raising a bug at bugs [at] clamav

> Thanks for all your efforts, I'm very impressed!

You're welcome ;-)


dave-usenet at djwcomputers

Sep 11, 2006, 6:49 AM

Post #14 of 47 (5505 views)
Permalink
Re: w32.clamav.net [In reply to]

In message <45053063.2050104 [at] bandsman> Nigel Horne
<njh [at] bandsman> wrote:

>DevilsPGD wrote:
>
>>> I've created a port of clamAV for Windows, to be built and compiled
>>> using VS 2005.
>>
>> And it's amazingly fast. I ditched my cygwin implementation almost
>> instantly (well, after about four hours of testing)
>>
>> A few things... All very minor.
>>
>> 1) I can't get clamd to run under AppToService, although if I run a
>> "cmd.exe /c clamd" it works. Not a big deal.
>
>The Power Tools from www.bandsman.co.uk/clamav.htm allow you to run
>clamd as a Windows service (only tested on Windows XP Pro).

Yeah, I realize that -- I'm just pointing out that AppToService doesn't
run, which is odd -- This is the first program I've ever had to use the
"cmd.exe /c" workaround.

>> 2) clamd's selfcheck always reports a new DB, even when freshclam hasn't
>> found anything new. I have freshclam notifying clamd successfully, so
>> this check should never find anything new. I shorted the interval and
>> it still reports a new DB each time, even though freshclam last updated
>> around 4am (my time zone)
>
>I believe clamd is at fault, my hunch is that clamd just looks at
>timestamps rather than file contents. It may be best to remove all the
>contents of C:\Program Files\clamAV\data and rerun freshclam. Does that
>help?

I tried that, it didn't make a difference -- freshclam reported the
update, but the following two selfchecks (which is all I checked for)
reported the reload.

>> 3) What's the correct way to specify paths in the conf files? Since the
>> default installation is at "C:\Program Files\clamd" I decided to stick
>> with that, but when I attempt to enter that into a conf file, it gives
>> me "C:\Program" -- I've tried with and without quotes.
>>
>> C:\Progra~1 seems to work, but I wouldn't rely on that as there is no
>> guarantee that all systems will use ~1
>
>You can't enter the location of a configuration file in that file
>itself. Think about it - it's a paradox. You need to give the
>configuration file's location as an argument to clamd, thus to use
>the D drive try:
> clamd -c "D:\Program Files\clamAV\conf\clamd.conf"

No, I understand that -- But if nothing else, freshclam.conf's
notifyclam directive needs the path\filename of the clamd.conf file as
the default is not set.

>There is a known limitation in clamd.conf (and freshclam.conf) that you
>can't specify spaces in pathnames, e.g. to change the location of the
>log files. This is true of all operating systems, since it is a clamd
>issue rather than an issue on the Windows version. You can raise the
>issue either by discussing it on the clamav-users mailing list, or by
>raising a bug at bugs [at] clamav

Ahh, interesting thanks, I'll post there. Perhaps until that bug is
resolved, a different default installation path would be appropriate?

As much as I'm loath to suggest installing at %systemdrive%\clamav\ that
would seem to be more reliable.
--
Dave Warren,
MSN Instant Messenger: dave [at] djwcomputers
Phone: (204) 480-8407 Toll free: (888) 371-3470
Fax: (204) 283-6028

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


drgoa.r at gmail

Sep 11, 2006, 8:02 AM

Post #15 of 47 (5516 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

Till now the only "bad" thing is need of .NET framework, which I still
manage to not install.
Is there any future plan to make this wotk in non-".NET" environment?
Thnaks!


On 11/09/06, Dave Warren <dave-usenet [at] djwcomputers> wrote:
>
> In message <45053063.2050104 [at] bandsman> Nigel Horne
> <njh [at] bandsman> wrote:
>
> >DevilsPGD wrote:
> >
> >>> I've created a port of clamAV for Windows, to be built and compiled
> >>> using VS 2005.
> >>
> >> And it's amazingly fast. I ditched my cygwin implementation almost
> >> instantly (well, after about four hours of testing)
> >>
> >> A few things... All very minor.
> >>
> >> 1) I can't get clamd to run under AppToService, although if I run a
> >> "cmd.exe /c clamd" it works. Not a big deal.
> >
> >The Power Tools from www.bandsman.co.uk/clamav.htm allow you to run
> >clamd as a Windows service (only tested on Windows XP Pro).
>
> Yeah, I realize that -- I'm just pointing out that AppToService doesn't
> run, which is odd -- This is the first program I've ever had to use the
> "cmd.exe /c" workaround.
>
> >> 2) clamd's selfcheck always reports a new DB, even when freshclam
> hasn't
> >> found anything new. I have freshclam notifying clamd successfully, so
> >> this check should never find anything new. I shorted the interval and
> >> it still reports a new DB each time, even though freshclam last updated
> >> around 4am (my time zone)
> >
> >I believe clamd is at fault, my hunch is that clamd just looks at
> >timestamps rather than file contents. It may be best to remove all the
> >contents of C:\Program Files\clamAV\data and rerun freshclam. Does that
> >help?
>
> I tried that, it didn't make a difference -- freshclam reported the
> update, but the following two selfchecks (which is all I checked for)
> reported the reload.
>
> >> 3) What's the correct way to specify paths in the conf files? Since
> the
> >> default installation is at "C:\Program Files\clamd" I decided to stick
> >> with that, but when I attempt to enter that into a conf file, it gives
> >> me "C:\Program" -- I've tried with and without quotes.
> >>
> >> C:\Progra~1 seems to work, but I wouldn't rely on that as there is no
> >> guarantee that all systems will use ~1
> >
> >You can't enter the location of a configuration file in that file
> >itself. Think about it - it's a paradox. You need to give the
> >configuration file's location as an argument to clamd, thus to use
> >the D drive try:
> > clamd -c "D:\Program Files\clamAV\conf\clamd.conf"
>
> No, I understand that -- But if nothing else, freshclam.conf's
> notifyclam directive needs the path\filename of the clamd.conf file as
> the default is not set.
>
> >There is a known limitation in clamd.conf (and freshclam.conf) that you
> >can't specify spaces in pathnames, e.g. to change the location of the
> >log files. This is true of all operating systems, since it is a clamd
> >issue rather than an issue on the Windows version. You can raise the
> >issue either by discussing it on the clamav-users mailing list, or by
> >raising a bug at bugs [at] clamav
>
> Ahh, interesting thanks, I'll post there. Perhaps until that bug is
> resolved, a different default installation path would be appropriate?
>
> As much as I'm loath to suggest installing at %systemdrive%\clamav\ that
> would seem to be more reliable.
> --
> Dave Warren,
> MSN Instant Messenger: dave [at] djwcomputers
> Phone: (204) 480-8407 Toll free: (888) 371-3470
> Fax: (204) 283-6028
>
> _______________________________________________
> http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32
>
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


njh at bandsman

Sep 11, 2006, 8:31 AM

Post #16 of 47 (5497 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

drgoa.r wrote:
> Till now the only "bad" thing is need of .NET framework, which I still
> manage to not install.
> Is there any future plan to make this wotk in non-".NET" environment?

Yes, but there are other more important things to fix first ;-)

> Thnaks!

-Nigel


drgoa.r at gmail

Sep 11, 2006, 8:39 AM

Post #17 of 47 (5491 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

On 11/09/06, Nigel Horne <njh [at] bandsman> wrote:
>
> Yes, but there are other more important things to fix first ;-)
>
> -Nigel


For sure:) But, for pity, I can't help you in this before you remove .NET...
Anyway, I will watch you progress closely :)
Best regards!
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


dave-usenet at djwcomputers

Sep 11, 2006, 8:53 AM

Post #18 of 47 (5491 views)
Permalink
Re: w32.clamav.net [In reply to]

In message <45058159.7020402 [at] bandsman> Nigel Horne
<njh [at] bandsman> wrote:

>drgoa.r wrote:
>> Till now the only "bad" thing is need of .NET framework, which I still
>> manage to not install.
>> Is there any future plan to make this wotk in non-".NET" environment?
>
>Yes, but there are other more important things to fix first ;-)

On that topic, does it even need to be installed? Would a ZIP file
distribution of the installed release be portable between machines?
--
Dave Warren,
MSN Instant Messenger: dave [at] djwcomputers
Phone: (204) 480-8407 Toll free: (888) 371-3470
Fax: (204) 283-6028

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


njh at bandsman

Sep 11, 2006, 8:57 AM

Post #19 of 47 (5498 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

Dave Warren wrote:
> In message <45058159.7020402 [at] bandsman> Nigel Horne
> <njh [at] bandsman> wrote:
>
>> drgoa.r wrote:
>>> Till now the only "bad" thing is need of .NET framework, which I still
>>> manage to not install.
>>> Is there any future plan to make this wotk in non-".NET" environment?
>> Yes, but there are other more important things to fix first ;-)
>
> On that topic, does it even need to be installed? Would a ZIP file
> distribution of the installed release be portable between machines?

Yes a zip file should work. The fancy installer was provided for the
novice user.

-Nigel


rob at powerviewsystems

Sep 11, 2006, 9:05 AM

Post #20 of 47 (5502 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

>>> Till now the only "bad" thing is need of .NET framework, which I still
>>> manage to not install.

For all the things that Microsoft did/does that many people hate or complain about, I think that they actally did a great job with .NET and I find it to be a very powerful and easy to use platform.

Of course, all kinds of smart people will disagree on this... by my larger point is not to start a flame war but rather to request that you consider NOT leaving .NET if that might cause you to give up any kind of power or flexibility or ease of maintenance or ease of programming... Now, if you think you can STILL have all those things AND leave .NET... great... but **otherwise**, I recommend sticking with .NET.

Rob McEwen
PowerView Systems
rob [at] PowerViewSystems

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


craig at 123marbella

Sep 11, 2006, 9:24 AM

Post #21 of 47 (5500 views)
Permalink
RE: Re: w32.clamav.net [In reply to]

I am a classic asp user myself and have been told by a smart arse .net
programmer recently that if I have not learnt asp.net by now then its too
late. (he is one of the people who started on .net when it first came out or
something and is an expert in .net blah blah blah)

That has not put me off .net at all though and I hear great things about it
but I still feel I can get away with what I do but in classic asp.

I have built a whole multi user cms system based on classic asp with the
difference that my cms system outputs static html pages for the clients in
order for them to be suitable for search engine indexing.

Noone has really been able to tell me yet if .net can actually do that
better than that in that scenario.

I have 50 real estate clients using that cms product and it works pretty
nice.

How long do you think it would take to get me "up to scratch" on .net.

Kindest Regards
Craig Edmonds
123 Marbella Internet
W: www.123marbella.com
E : craig [at] 123marbella



-----Original Message-----
From: clamav-win32-bounces [at] lists
[mailto:clamav-win32-bounces [at] lists] On Behalf Of Rob McEwen
(PowerView Systems)
Sent: Monday, September 11, 2006 6:06 PM
To: clamav-win32 [at] lists
Subject: Re: [clamav-win32] Re: w32.clamav.net

>>> Till now the only "bad" thing is need of .NET framework, which I
>>> still manage to not install.

For all the things that Microsoft did/does that many people hate or complain
about, I think that they actally did a great job with .NET and I find it to
be a very powerful and easy to use platform.

Of course, all kinds of smart people will disagree on this... by my larger
point is not to start a flame war but rather to request that you consider
NOT leaving .NET if that might cause you to give up any kind of power or
flexibility or ease of maintenance or ease of programming... Now, if you
think you can STILL have all those things AND leave .NET... great... but
**otherwise**, I recommend sticking with .NET.

Rob McEwen
PowerView Systems
rob [at] PowerViewSystems

_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32



_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


rob at powerviewsystems

Sep 11, 2006, 9:50 AM

Post #22 of 47 (5501 views)
Permalink
RE: Re: w32.clamav.net [In reply to]

Craig Edmonds

I had to learn asp.net the same way that I learned asp... print out large articles and then read them late at night while taking a nice hot bath... and expect to do this for at least 10, 20, or 30+ times! The differences and updates are so profound that it is almost like learning something totally new.

But I wouldn't say that it is too late!

One of the first things to decide is whether you are going to use Visual Studio as your IDE, or some type of "text editor" environment. I highly recommend using Visual Studio. If the $1000 price tag is a problem, remember that you can actually buy Visual Basic.Net or C#.Net separately at a fraction of the cost of the full visual studio.

This "IDE" choice really make a huge difference in your strategies. And Visual Studio's intellisense, and tool tips, and "F1" help can't be beat. It is nice to be able to click F1 on a keyword and get immediate MSDN help.

(we should probably stop here since we are now so far off topic)

Rob McEwen
PowerView Systems
rob [at] PowerViewSystems
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


clamav-win32 at subscriptions

Sep 14, 2006, 9:53 AM

Post #23 of 47 (5489 views)
Permalink
RE: Re: w32.clamav.net [In reply to]

Hi Nigel,

First, I wanted to thank you VERY MUCH, for getting this port into an
active project which is integrated with the main clamAV source. I had
given up hope of this.

I considered working with the cygwin environment as a compromise to
getting a native port. This didn't work for me, since I tend to often
work with a snapshot and need to build from sources. Building clamav
from source on cygwin works and doesn't work from one week/month to the
next depending on magical internal cygwin changes which affect libtool
behavior and are beyond my level of concern.

Since I had given up hope, I had resorted to running clamav (clamd
really) on a Fedora linux environment hosted inside a Virtual Machine
running on the desired systems. This is a somewhat steep hill to climb,
but once configured can readily work with the mainstream code base.

So, back to the w32 port:

1) Can you describe the tool-chain you are working with on windows?
What external packages/libraries have been configured and how were they
built, where are they stored, etc?
2) It seems that the binary files in the current clamAV.msi were built
without "SUPPORT FOR DIGITAL SIGNATURES", since freshclam reports this.
What are the issues and plans in this area? Can I help?
3) Are the files generated in when building clamAV.msi, merely built
from the latest files from cvs.clamav.net? If not, where can we get the
actual source files? It seems that there might be a relationship to
contrib/Windows/Projects/ClamAV/patches. Is this patch being kept up to
date? Why have some, but not all of the O_BINARY patches been
incorporated in the mainline code? In any case, some folks have already
reported issues with the mmap() implementation by reporting error
messages which match the ones implemented in the
contrib/Windows/Projects/ClamAV/libclamav/compat.c code. The attached
patch fixes mmap() to support multiple concurrent mmap() calls, and
provides fixes which will work for both the mmap and readdir code when
compiled for a 64bit OS environment if that ever happens.
4) freshclam running at the start of the ClamAV service is nice, but
I'd really hope that the system running ClamAV wouldn't reboot or
restart the ClamaAV service very often. Meanwhile, there have been
virusdb updates for the last few days which have ranged from a minimum
of 4 up to 8 times per day, so clearly continuously running freshclam is
desirable. What are your plans regarding getting both clamd and
freshclam running in the background? Can I help?



Nigel Horne wrote:
>
> Ignasi Prat wrote:
>
> > Hi Nigel:
>
> > What I have not been able is to run freshclam in daemon mode:
freshclam
> > -d just exits freshclam with no news.
>
> That's on my list of things to do.
> >
> > And worse is that while trying clamscan:
> >
> > C:\Program Files\clamAV>clamscan
> > LibClamAV Error: cli_cvdload(): Can't create temporary directory
> > \\clamav-c9e1c8
> > 665a80121bee675b327265a01f
>
> Try "clamscan --tempdir=c:\windows\temp" or some similar option. It's
on
> my list to ensure the default is set to c:\windows\temp on Windows.

Hmmm... %WINDIR%\temp doesn't actually exist on a stock windows
environment, some apps create and then use it though.

It would seem to me that keeping all clamAV files, even the temporary
ones, in the same general place is a good idea. That would suggest that
a temp directory would be appropriate along with conf, data, log and run
directories which are already created.

Using such a directory in a standard place instead of using where (for
instance) the TEMP environment variable points would also help manage
another problem. Specifically, this problem arises when an "On access
AV scanner" is enabled on the system. In this case, the clamAV
temporary directory (as well as the data directory) need to described in
an "exclusion" rule for the "On access" scanner. W32.ClamAV is quite a
ways from providing on access scanning, so an alternate "on access"
scanner should still be the rule. I've had 2 cases where setting up an
exclusion was necessary:

1) some freshclam signatures file updates triggered the on access
scanner. Clearly false positives, but that this happens requires the
exclusion.
2) clamd stores incoming STREAM files as temporary files, and when the
content to be scanned contained virus content, the on access scanner
sometimes caught (and deleted it) before clamd had a chance to pass
judgement.

Additionally, since some malware that we're trying to catch, or
generally have an on access scanner to protect against, tend to use
standard temporary directories which should continue to be "on access
scanned" and NOT excluded from such scanning. So, excluding
WINDIR%\temp would be a bad idea.

---

I recently proposed a patch in clamav-devel with the subject of: "Patch
to allow spaces in file and directory names in clamd/freshclam config
files".

I noticed the need for this when I first took a look at your release on
w32.clamav.net. I had tried to change file path values in
freshclam.conf and clamd.conf, but the changes didn't have the desired
effect since the config file parser was using a space as a token
delimiter.

This patch, or something like it, would seem to be necessary for ClamAV
on windows, and it doesn't seem to have negative consequences for
non-windows platforms since posix file/directory names can contain
spaces as well.

Aside from the above, I'm interested to know what tool you used to
create the .MSI packages you are currently distributing? I'd like to
take a shot at enriching the installer to create or update clamd.conf
and freshclam.conf with correct options. For example:
1) freshclam.conf should specify the Database Mirror with the correct
country code.
2) Any path values should reflect the path where the ClamAV.msi
installed to.
3) It would be nice if commonly switched options could be set/changed
by the install script.
Adding this functionality to the installer might not be hard and would
eliminate or defer the need for a ClamAV control panel applet.

Thanks again for getting this going.

- Mark Pizzolato
Attachments: compat.patch.txt (5.69 KB)


mikemi at ozemail

Sep 14, 2006, 4:48 PM

Post #24 of 47 (5475 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

Please note your mail is not for this address.
_______________________________________________
http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-win32


njh at bandsman

Sep 15, 2006, 9:42 AM

Post #25 of 47 (5473 views)
Permalink
Re: Re: w32.clamav.net [In reply to]

> 1) Can you describe the tool-chain you are working with on windows?
Visual Studio 2005

> What external packages/libraries have been configured and how were they
> built, where are they stored, etc?

pthread-win32

> 2) It seems that the binary files in the current clamAV.msi were built
> without "SUPPORT FOR DIGITAL SIGNATURES", since freshclam reports this.
> What are the issues and plans in this area? Can I help?

I am yet to add GMP to the project. It is on my TODO list. You can help
by pointing me in the direction of the correct source version to use, I
hear that some are better than others ;-)

> 3) Are the files generated in when building clamAV.msi, merely built
> from the latest files from cvs.clamav.net?

Yes, but you need the patches in contrib since not all developers have
included fixes in their code. You'll also need .vcproj files which I can
send you - I haven't bothered to commit them to CVS.


> If not, where can we get the
> actual source files? It seems that there might be a relationship to
> contrib/Windows/Projects/ClamAV/patches. Is this patch being kept up to
> date? Why have some, but not all of the O_BINARY patches been
> incorporated in the mainline code?

That depends on the author maintaining the relevant code. Some have
agreed to include the patches in their main code, some haven't.


< In any case, some folks have already
> reported issues with the mmap() implementation by reporting error
> messages which match the ones implemented in the
> contrib/Windows/Projects/ClamAV/libclamav/compat.c code. The attached
> patch fixes mmap() to support multiple concurrent mmap() calls, and
> provides fixes which will work for both the mmap and readdir code when
> compiled for a 64bit OS environment if that ever happens.

Thanks, I'll look into these ASAP.

> 4) freshclam running at the start of the ClamAV service is nice, but
> I'd really hope that the system running ClamAV wouldn't reboot or
> restart the ClamaAV service very often. Meanwhile, there have been
> virusdb updates for the last few days which have ranged from a minimum
> of 4 up to 8 times per day, so clearly continuously running freshclam is
> desirable. What are your plans regarding getting both clamd and
> freshclam running in the background? Can I help?

You *should* be able to call freshclam from time to time with the
Windows XP scheduler, however it is true that I need to get the daemon
mode working, or modify the Windows service program to call freshclam
from time to time.

First page Previous page 1 2 Next page Last page  View All ClamAV win32 RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.