HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:52

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 16 Apr 2008 22:58 
Offline

Joined: 16 Apr 2008 22:11
Posts: 1
Hello everyone,

Our company is considering using HAVP in one of our firewall products.
Since the product is based on FreeBSD, the performance "penalty" due
to the OS's lack of mandatory lock is a prime obstacle for us to adopt
it.

To me it seems possible to workaround this by patching ClamAV so that
each file I/O is protected by advisory record locks. Then HAVP could
do a partial locking by advisory locks, too. Given that our product
only uses ClamAV and does not try to support multiple scanners, this
kind of hack might be acceptable.

I'm not sure if this is correct so I think I'd ask someone with more
experiences. Is this workaround theoretically correct? Is it
feasible? Or does anyone have other suggestions?

pm5


Top
 Profile  
 
PostPosted: 17 Apr 2008 08:39 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
It is not possible in a sane fashion. The locking would need to be done inside scanner process, as you can't lock between processes. Furthermore, ClamAV uses mmap() which doesn't care about advisory locking. You would have to disable mmap (#undef HAVE_MMAP) for ClamAV, and that results in unable to scan few formats like BinHex, PDF, and for 0.93, ZIPs.

You just have to live with either a small MAXSCANSIZE or some delays for big slow files. Unless you start rewriting ClamAV.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group