Shawn Webb
6df13d049e
Finish phase 1 of silencing compiler warnings
2014-07-11 09:30:58 -04:00
Shawn Webb
60d8d2c352
Move all the crypto API to clamav.h
2014-07-01 19:38:01 -04:00
Shawn Webb
b2e7c931d0
Use OpenSSL for hashing.
2014-02-08 00:31:12 -05:00
Shawn Webb
e07b295d95
Remove existing stats gathering framework from clamd
...
Conflicts:
clamd/clamd.c
2014-01-28 10:46:47 -05:00
Shawn Webb
d9b6b8c757
bb#8993 - Rename the STAT macro to CLAMSTAT to avoid name conflicts on AIX
2013-09-25 16:23:10 -04:00
Shawn webb
a2a004df25
BB#3737 - Value too large for specified data type
...
Create compile-time preprocessor defines for switching from calling
stat() to stat64(). Add --enable-stat64 switch in configure script.
2012-07-16 15:36:49 -04:00
Shawn webb
4e2700c74c
Fix previous commit
2012-07-05 10:47:30 -04:00
Shawn webb
9120a4a622
BB#5412: Resource cleanup under error conditions
2012-07-03 16:15:28 -04:00
Shawn webb
a593713605
Fix whitespace
2012-07-03 15:13:18 -04:00
Tomasz Kojm
de1271a10c
clamd: initial support for on-access scanner using fanotify (bb#2236)
...
only works in notification mode (no access blocking) right now
2011-11-16 16:00:13 +01:00
Tomasz Kojm
9b7a8c3f4b
remove some dazuko/clamuko code - to be replaced with fanotify
2011-11-04 18:32:50 +01:00
Tomasz Kojm
bc3b9efc5b
clamd: add new option ClamukoExcludeUID (bb#2260)
2011-02-28 21:49:11 +01:00
Tomasz Kojm
3c91587c8c
fix typo
2010-12-16 14:47:42 +01:00
Tomasz Kojm
2e136dcd0d
freshclam, clamd: handle EINTR during waitpid() (bb#2422)
2010-12-16 14:16:11 +01:00
aCaB
bbce04496c
fix win32 build
2010-11-04 16:42:08 +01:00
Tomasz Kojm
bb08962d85
fix previous commit
2010-11-03 14:30:52 +01:00
Tomasz Kojm
49f8de2207
clamd: add new commands DETSTATS and DETSTATSCLEAR (part of bb#2312)
2010-11-03 13:41:06 +01:00
aCaB
ced85d637c
bb#1889
2010-03-21 11:44:07 +01:00
aCaB
3d7d59c104
clamd-win32 - works!
2010-01-30 04:20:22 +01:00
aCaB
288b945f57
clamd-win32 - where is my mind?
2010-01-30 03:17:52 +01:00
aCaB
4155214d9a
fix accept
2010-01-29 19:34:02 +01:00
aCaB
5eca45b5e7
clamd-win32 - WIP#3
2010-01-29 18:57:50 +01:00
aCaB
1c4d9a22fa
clamd-win32: WIP#2
2010-01-29 14:44:55 +01:00
aCaB
3b074c7878
clamd-win32 - WIP
2010-01-28 23:54:20 +01:00
Török Edvin
e2fbea32c1
fix distcheck warnings.
2010-01-27 15:56:13 +02:00
Török Edvin
cb9a7b448d
Improve error message when no ancillary data is received (bb #1700 ).
...
On Linux show a message that SELinux/AppArmor might be blocking the file
descriptor.
2010-01-27 10:54:35 +02:00
aCaB
e0bb54d7d4
win32: s/C_WINDOWS/_WIN32/ in clamd, shared
2009-09-30 00:54:04 +02:00
aCaB
9cf0716828
drop interix
2009-09-24 19:09:10 +02:00
aCaB
be4bf7f4ab
win32
2009-09-24 16:08:52 +02:00
Török Edvin
7660b7cb35
Fix 60 byte/STREAM command memory leak on FreeBSD. (bb #1567 ,
...
thanks to Jay Deiman <jay*splitstreams.com> and Chris Mikkelson <cmikk*qwest.net> for tracking down the leak!).
git-svn: trunk@5061
2009-05-06 07:56:28 +00:00
Török Edvin
0dd49673a0
fix build when poll is not available.
...
git-svn: trunk@4966
2009-03-22 13:25:27 +00:00
Török Edvin
c9954509cc
better detect half-shut vs. full-shutdown sockets (bb #1441 )
...
git-svn: trunk@4948
2009-03-14 16:43:47 +00:00
Török Edvin
de5f850d16
fix previous commit
...
git-svn: trunk@4928
2009-03-11 19:27:36 +00:00
Török Edvin
e68d70e7e0
strerror/strerror_r->cli_strerror which is always thread safe.
...
git-svn: trunk@4927
2009-03-11 19:11:09 +00:00
Török Edvin
b0e57898e8
fix FILDES and make check on NetBSD. (bb #1411 ).
...
git-svn: trunk@4905
2009-03-06 15:19:59 +00:00
Török Edvin
f8e8ab4fd9
wake recvloopth after SelfCheck (if set), to avoid reloading the DB
...
just before next scan request.
git-svn: trunk@4904
2009-03-06 12:21:58 +00:00
Török Edvin
14896add0b
force alignment of ancillary data buffer (bb #1425 ).
...
git-svn: trunk@4858
2009-02-24 20:18:53 +00:00
Török Edvin
a414efbf5e
revert previous commit, it is the wrong fix.
...
git-svn: trunk@4828
2009-02-18 19:11:21 +00:00
Török Edvin
a1f0c01189
Fix wrong use of strerror_r: it doesn't have to use/fill the buffer,
...
it can return a pointer to a static location, as described in the manpage.
This can happen on a Linux system with a foreign locale, where the LANG=C messages are
returned this way. (BB #1403 )
git-svn: trunk@4827
2009-02-18 19:08:15 +00:00
Török Edvin
e114b109c4
fix use of uninitialized value.
...
add test for STREAM.
fix missing closing pragmas.
git-svn: trunk@4810
2009-02-17 17:35:31 +00:00
Török Edvin
ef49ed625f
fix compiler warning
...
git-svn: trunk@4808
2009-02-17 16:05:49 +00:00
Török Edvin
625377ab50
add missing parameter
...
git-svn: trunk@4807
2009-02-17 16:02:26 +00:00
Török Edvin
fb6fe4f5d1
Introduce '$' in logg, it is active when logg_verbose=2, i.e. when Debug yes.
...
Fix leak reported by valgrind.
git-svn: trunk@4806
2009-02-17 15:59:36 +00:00
Török Edvin
5f6edb222c
ReadTimeout handling, and introduce CommandReadTimeout.
...
git-svn: trunk@4803
2009-02-17 15:59:21 +00:00
Török Edvin
80681b50c7
Initialize mutex.
...
Fix poll_fd to properly lock/unlock mutex.
This fixes the STREAM command.
git-svn: trunk@4787
2009-02-14 09:14:04 +00:00
Török Edvin
bfd89d7c84
fix Solaris build
...
git-svn: trunk@4776
2009-02-13 11:05:14 +00:00
Tomasz Kojm
086eab5c26
update old copyright headers
...
git-svn: trunk@4775
2009-02-13 10:55:45 +00:00
Török Edvin
034994bd9c
fdpassing is now in others.c instead of session.c, move
...
the defines.
git-svn: trunk@4774
2009-02-13 08:41:59 +00:00
Török Edvin
4cc952e322
add check for msg.controllen, apparently Mac OS X sets it to 0,
...
but CMSG_FIRSTHDR is not NULL!
git-svn: trunk@4761
2009-02-12 17:47:36 +00:00
Török Edvin
949c6fe54f
merge from clamd-proto branch:
...
handle multiple %v parameters
introduce poll_fds that also does the read into a buffer
introduce thrmgr_group* commands for keeping track of groups of commands
(multiscan, IDSESSION)
introduce 2 queues in thrmgr, multiscan queues get lower priority. Commands
are processed from both queues in a 4:1 ratio to avoid starvation.
unify reply code: conn_reply*
unify scanner code into scan_callback that is called from cli_ftw
multiscan doesn't need stat() now if readdir() provides dt_type
redesign clamd main loop: there is now an accept thread, and a
recv()/dispatch thread, +MaxThreads worker (scanner) threads.
introduce limiting on commands when worker threads are contended.
introduce IDSESSION, a replacement for the old SESSION command, that allows
asyncronous (scan) commands and scan replies
introduce INSTREAM that allows sending the data to scan on same connection
(vs STREAM that requires another port)
introduce zCOMMANDS
git-svn: trunk@4755
2009-02-12 16:51:09 +00:00