| View previous topic :: View next topic |
| Author |
Message |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Feb 04, 2005 9:10 am Post subject: |
|
|
| Skit3000 wrote: | | How about adding a function to your virusscanner to submit new virusses to the ClamAV engine? |
That would be a neat idea, but it kind of presupposes that the user knows what they are doing and has a second virus scanner to check the sample with. Most of the ClamAV users are sysadmins and pretty clued up, but my interest is in creating something that ordinary folks can use, and I think a lot of ordinary folks would send them stuff that isn't a virus at all. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Feb 04, 2005 11:21 am Post subject: |
|
|
There may be a slight obstacle to releasing anything developed using this. I downloaded the standard Windows port of ClamAV today, which is not very nice as it uses the (large) CygWin Linux compatibility layer for Windows, and insists on being installed in two folders in the root directory.
The license agreement contains the following, as a preamble to the GNU GPL itself:
| Quote: | Please note that the ClamAV DLL/library/headers can not
be linked/used in a non-GPL'd commercial software package.
Use of the ClamAV DLL/library/headers in a closed source
product is a violation of the GPL license and will result in
the termination of your right to use ClamAV, as well as
possible legal implications. |
If you do some Googling on this, you'll see that there seem to be two bodies of opinion on this. The FSF fanatics insist that even dynamic linking to a GNU GPL product consitutes "linking" in a way that requires the using software to also be GPL. Others take the view that using a library using LoadLibrary and GetProcAddress (which is what VDS does) is not "linking", in that it does not use any GPL'd header files, and is therefore no different in principle from running an EXE using CreateProcess (which the FSF agrees is OK.) It's a quite ridiculous restriction, which just goes to prove what I've always believed - that most of these free software fanatics don't live in the real world.
I've tried posting a question on the ClamAV developers newsgroup to see what the actual developers think. If I get a reply, I'll let you know. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Fri Feb 04, 2005 11:47 am Post subject: |
|
|
| jules wrote: |
%I = @lib(freshclam,clam_update,INT:,INT:1,STR:%2,STR:%2\update.log,STR:current.cvd.clamav.net,STR:%3,STR:database.clamav.net,NIL:)
# I haven't figured out what the return codes mean yat...
|
# 0: Database succesfully updated.
# 1: Database is up-to-date.
# 40: Unknown option passed.
# 50: Can't change directory.
# 51: Can't check MD5 sum.
# 52: Connection (network) problem.
# 53: Can't unlink a file.
# 54: MD5 or digital signature verification error.
# 55: Error reading file.
# 56: Config file error.
# 57: Can't create a new file.
# 58: Can't read database from remote server.
# 59: Mirrors are not fully synchronized (try again later).
# 60: Can't get information about clamav user from /etc/passwd.
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Feb 04, 2005 1:23 pm Post subject: |
|
|
Thanks for that! _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Fri Feb 04, 2005 6:30 pm Post subject: |
|
|
Personally I don't think I would ever attempt to release any software that has anything GPL in it. GPL is a way to make all software free and open source, while this is great and all it prevents companies from wanting to invest time and resources into developing products which may link off GPL'd code since their code would too have to become GPL.
When I release any sofware with source code it's almost always 100% open source, meaning people can do just about anything with it UNLESS I'm currently selling software similar to it - and it would be noted in the license that they would not be able to create competing products; otherwise they are free to sell, make modifications and do anything legal with the code. Asking someone else to open their source because their using portions of my code that I freely gave away is absolutely RIDICULOUS.
Jules I don't think you could really release any program that links with Clam unless you are willing to release your code as GPL as well. This is afterall the linux community and they are pretty resolute on the GPL. If you are using the app internally within your company it would be completely fine to do.
While I am on a rant let me continue:
I personally have grown sick of Linux and the community around it. Linux is still a very immature OS, there are far more security holes for linux and '3rd party' packages then there are for Windows while they make you believe otherwise. I can count atleast 4 sendmail patches and atleast 12 kernel updates I've had to apply to a Linux server because of root security vulnerabilities. I noted '3rd party' because there really aren't very many real companies developing for linux, you typically have a few people out there putting out patches for an OS and depend on them to get the code fixed when a major security issue arrises; which in some cases can take months.
I run both Windows 2003 Server and RedHat Enterprise servers, I've found (so far) Windows to be much more reliable and stable then I have with linux. Resource consumption and performance has also been more favorable for Windows then it has for Linux as well from what I have noticed. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Fri Feb 04, 2005 7:03 pm Post subject: |
|
|
It's okay to run a GPL program (.EXE) from a non-GPL one, and in fact there are several commercial mail servers that do this with ClamAV. But the GNU people have this absurd idea that calling a DLL is "linking" and therefore is the same as if you actually used GPL code in your program, despite the fact that it is simply a different kind of executable file.
I have changed my code to use the EXE instead of the DLL, which is in some respects simpler, although the performance is not as good. Since my program is just a GUI shell, and I won't even be distributing any GPL code with it (it will be downloaded and installed separately by the user) I think it is perfectly okay, as this is just what the other commercial programs that use this virus scanner are doing.
I quite agree with you about the Linux community. I have been looking in the forums related to ClamAV and the tone there is so different from this one. It seems full of people with no social skills whatever, who jump on any questioner who asks a (to them) obvious question with a sarcastic remark or even a tirade of abuse. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Fri Feb 04, 2005 7:22 pm Post subject: |
|
|
Yup I think you are completely fine by calling clam in that method. I was more worried about the actual distribution of the clam files then actual linking. Seems kind of ridiculous that they want to make everyone open their code as GPL just by linking to a library (code nazi's). When their actual program is linking to non-GPL code (windows libraries); Microsoft honestly should adjust their license to stipulate anyone linking to a Windows library must release their code as NON-GPL; if we're gonna get ridiculous then why not have it the reverse?
I was taking a look at ClamAV for commandline scanning of emails for my server but realized they were using a linux port which would have serious performance problems. Not so much a problem on a desktop but on a server it can be with hundreds-thousands of mails coming in per hour. That and when I found it was GPL I was put off, I particular try to stay away from any Linux related projects if I can.
I decided to just use Panda CommandLineSecure from PandaSoftware for my server email virus scanning needs. It's 100x better then Clam, you get daily virus updates and it actually can clean viruses and disinfect them; whereas clam cannot - it simply wants to delete the file. Yes when you have an infected file you don't want to keep it but there may be some data you can preserve before you want to delete it. What's better is its really tiny - about 300 kb in size and can be scripted from the commandline.
Clam is free yes but CommandLineSecure only cost me about $50 and honestly those few dollars are more important to me then dealing with Linux related software.
You are right about the community, anyone that raises a question in almost any linux related forum is considered a 'noob' or a moron for asking such a simple question. Then you have a few people who troll those forums looking to pounce on the 'noob'.
There obviously are alot of good people in the Linux community but I'd honestly have to say if you go to a Windows development related forum you'll find 99% of the people there are more friendly then a Linux development forum. This may be a little judgemental but most people who favor Linux typically are people who enjoy the 'freeloading' lifestyle. |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Feb 04, 2005 7:58 pm Post subject: |
|
|
| jules wrote: | Well, go for it, man! There's room for more than one solution,
and there is no decent Windows GUI for ClamAV at the moment so it
could be very popular. And a great promotion of the abilities of VDS! |
Once I get the initial work done, I am going to have to either ask for
help from others, or drop it in the open source section.
Regardless of the GPL issue, since the source to this interface will be
included with the program.
On the Linux subject above. Years ago I preached about how Linux was
still immature and had more holes in it than NT systems. The only reason
people didn't know it is because NT was more common and media always
played up the MS side of the world and not the Linux side. Now the media
is looking more closely at the Linux side and people are seeing that Linux
is just as risky, if not more risky than NT based systems.
This kind of goes along with the concept that I've noted before, and that
is that the most commonly used software will be targeted by ill intended
hackers. This is why I preached against the use of MSIE and Outlook,
and suggested using Moz based browsers and emal clients. But now that
the Moz based products are becoming more popular, they're having the
same issue as Linux, and that is, more holes being found and more
hackers redirecting their focus from MS to Moz. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Fri Feb 04, 2005 8:33 pm Post subject: |
|
|
Yup the hackers are really having a good time messing with linux. Thats kind of the problem with open source and running it on servers, you basically allow hackers to see the source code and forumulate methods of attack. There is no guessing game for them on how to plan and launch an attack since they have the exact code to the application.
Open source is good and has it's place but for anything that is connected to the internet you're just asking for more trouble. |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Sat Feb 05, 2005 3:29 am Post subject: |
|
|
Well I guess I have been fortunate in that it has been my experience that if you ask the Author of the GPL'ed and or Open Source product for permission to use their software in your commercial product before you use it and you tell them how your using it then more than likely they will allow you to do so.
The main issue I have with GPL and Open Source is the fact that their lic. aggreements are not clear enough to determine if you can use the code or not free or otherwise. Also GPL and Open Source software is self limiting meaning "In the United States and most free countries if you can't sale it then what's the point?" Why work so hard on something and not get anything for it? Oh I understand if your retired and your just giving it away but then why put the restrictions? If it is "General Public Lic" then it should be open to everyone even commercial since after all the working man is the General Public too. This is like saying you can't have your company picnic at the local General Public park. Also another limiting factor with Open Source is the lack of support by some authors but not all so your taking a 50/50 chance when using Open Source.
I say that you study any example code and build your own but don't sale anything GPL or Open Source without at least asking and more important put their lic information and Copyright information in your software it will go a long way if the Author knows you are telling others where you got the idea and code from and that your not just simply claiming that it is your own. If your code is based on another product then just say it. There has really been very little original ideas in the Computer business and especially programming. It's sort of like the music world. You only have A-G in the musical alphabet so there is only so many different combinations. Just like in programming you have just a handful of constructs that you can use Branchs, Conditionals, Iterations, and assignments or definitions. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Feb 05, 2005 4:23 am Post subject: |
|
|
| It appears (in my opinion) the GPL and many open source projects licenses are setup in that manner to protect against companies taking the code, putting patents on it and then claiming the whole thing is theres. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sat Feb 05, 2005 10:42 am Post subject: |
|
|
PG: The direct Windows port of ClamAV includes a daemon that you can set to run like a service, and scan items whenever you want. From my tests that is a whole lot faster than loading a standalone instance of a command line scanner each time (as I have been doing with F-Prot, and you with Panda) because you avoid loading up the virus database every time. The updates seem to be issued two or three times a day.
I really agree with your thoughts on GPL, which I tend to regard as a virus (i.e. it infects all software that links with it.) It's just that I dislike all the current anti-virus products that are all going down the same road of feature-bloat, and want to create a low-resource alternative. Unfortunately there are really no other options, since I can't write my own from scratch, and the only other free to use scanner (F-Prot for DOS) now has too many problems running in an XP environment.
dragonsphere: Unfortunately the developers of ClamAV have not deigned to respond to my query regarding use of the DLLs. However, that paragraph that I quoted earlier from the readme right before the GPL itself suggests to me that they have already thought about this and come to an opinion on it. Using the EXEs avoids the problem, it's just a bigger download (because you need CygWin as well), it insists on installing in a couple of folders in the root directory (which is irritating), and it's technically not as elegant. But it seems to work just as well. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Sat Feb 05, 2005 5:52 pm Post subject: |
|
|
Hi Jules,
Yes I was looking at Clam and was going to use it because of the ability for it to run as a service. However I'm not running a hotmail service so I think running a small commandline app on each mail instance is not going to hurt the performance of the server in anyway since it executes and closes itself and does not stay resident in memory the whole time. Obviously on a very high load server with tons of email coming in going the route of a service is the way to go since you don't spawn 8 mb+ instances on each virus scan.
I tested the performance and saw the server never jumps above 2% cpu usage while emails coming in and being processed by Panda. I had one really nice ISP in Canada that kept bouncing virus infected emails to me - about 10 per minute and the load or cpu usage never jumped higher then 5%, memory is also very good and always is around 600+MB free (1 gig total).
I just don't like the idea of running a port of a virus scanner. I've also heard many people claim that ClamAV for Windows won't even pickup the Eicar test virus which may be intentional or not on Clams part since it's not really a real 'virus' but a simulated one. Also who knows how long Clam is going to be around, it's an open source project but are they making $ to keep funding their effort? I'd rather pay a few bucks to go with a company that is viable and I can ensure my method of virus detection is stable for the next few years.
I run ClamAV on the RedHat Linux server for email virus detection and it's worked great, I'm just a bit hesitant to run it on a Windows server. |
|
| Back to top |
|
 |
jules Professional Member


Joined: 14 Sep 2001 Posts: 1043 Location: Cumbria, UK
|
Posted: Sat Feb 05, 2005 6:42 pm Post subject: |
|
|
| Skit3000 wrote: | | Julian, I can't find the freshclam.dll file in the package. Can it be downloaded from their site, or should I compile it myself? |
Easiest way to get it is to download and install clammail from the same site, then take the DLLs out of that. Unless you're familiar with VC++ and can easily compile it. _________________ The Tech Pro
www.tech-pro.net |
|
| Back to top |
|
 |
|