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
David Raynor
abd86a5e9e
Scan_all: clamd fix
2013-06-17 15:32:36 -04:00
David Raynor
aec1e3be24
Scan_all: make sure flag reaches ac_scanbuff and cleaner clamd support
2013-06-13 15:01:39 -04:00
David Raynor
fab9317ed2
Scan_all: virus alert handling improvements
2013-06-11 17:06:41 -04:00
Shawn Webb
138b5aba59
bb6082 - Fix compiler warnings
2013-02-28 14:39:19 -05:00
Steve Morgan
6ad45a2931
add initial allscan/allmatch mode to libclamav, clamd, clamdscan, and clamscan with unit tests
2012-10-18 14:12:58 -07:00
Steve Morgan
6174db3a3c
bb#5792 fix for dead code
2012-09-18 12:09:20 -07:00
Steve Morgan
82c0a0b09a
fixes dead code and close(-1), bb#5782 and bb#5785
2012-09-13 09:40:59 -07: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
Török Edvin
8f66206b67
fix 'make distcheck'
2011-05-06 22:16:38 +03:00
Tomasz Kojm
0f4639ec76
clamd: log request ip address for instream scans #bb2592
...
On behalf of acab
2011-05-05 16:15:57 -07:00
Tomasz Kojm
27c451d04d
clamd: update description of ReadTimeout (bb#2565)
2011-02-21 18:19:55 +01:00
Tomasz Kojm
b898103236
clamd: don't report file hashes to clients (bb#2409)
2010-12-09 13:50:42 +01:00
Tomasz Kojm
49f8de2207
clamd: add new commands DETSTATS and DETSTATSCLEAR (part of bb#2312)
2010-11-03 13:41:06 +01:00
Török Edvin
769f37a6f6
Default off, you can turn on via 'DevLiblog'.
...
This also replaces the cli_*_stats variants with a callback for stats,
so that clamd can call the cl_*_callback variants instead, and pass the filename
as context.
2010-11-02 12:26:33 +02:00
Tomasz Kojm
edbba730b3
clamd: add ExtendedDetectionInfo (bb#1228, #1626 )
2010-07-06 19:46:55 +02:00
Török Edvin
cbb9db1941
Fix some error path leaks (bb #1990 ).
...
This doesn't actually fix bb #1990 (which is about high memory usage on RHEL6),
but fixes some leaks found while investigating that bug.
2010-05-28 18:47:21 +03:00
Török Edvin
e4a0f2c94f
fix compiler warnings (bb #1872 , bb #1934 , bb #1935 )
2010-04-13 16:19:47 +03:00
aCaB
49e5f6580e
bb#1851
2010-03-06 04:00:14 +01:00
Török Edvin
1514794c49
make STATS a non-bulk command (bb #1732 ).
...
This is needed to allow clamdtop to watch in realtime what is happening in
clamd, otherwise STATS would always lag behind 50 other multiscan commands.
2010-02-01 14:38:36 +02:00
aCaB
3b074c7878
clamd-win32 - WIP
2010-01-28 23:54:20 +01:00
Török Edvin
7e98915f9b
cli_ftw: when readdir fails, call the error callback (bb #1735 ).
...
Also report all failures to clamdscan.
2009-12-15 14:12:23 +02:00
Török Edvin
727e05603d
Fix error path leak (bb #1711 ).
2009-10-24 14:28:11 +03:00
aCaB
15fbe96ff6
removed r_gethostbyname which was not used
2009-10-14 19:10:38 +02:00
aCaB
e0bb54d7d4
win32: s/C_WINDOWS/_WIN32/ in clamd, shared
2009-09-30 00:54:04 +02:00
aCaB
be4bf7f4ab
win32
2009-09-24 16:08:52 +02:00
Tomasz Kojm
2086dc5cab
clamd, clamscan: add support for CrossFilesystems/--cross-fs (bb#1607)
2009-08-05 16:27:48 +02:00
Tomasz Kojm
51bbedb132
libclamav, clamd: handle file exclusion in cli_ftw() (bb#1656)
2009-07-31 21:28:55 +02:00
Török Edvin
7ff6ec039c
better fix for bb #1446 , try not to get confused by half-shut sockets (bb #1441 ).
...
git-svn: trunk@4947
2009-03-14 15:03:15 +00:00
Török Edvin
01cc87e1b4
typo
...
git-svn: trunk@4945
2009-03-13 18:10:49 +00:00
Török Edvin
b4ea33b23b
fix handling of multiple ExcludePath entries.
...
git-svn: trunk@4944
2009-03-13 17:52:12 +00:00
Török Edvin
36e4bc1467
stop scanning when client disconnects (bb #1446 ).
...
git-svn: trunk@4940
2009-03-13 13:50:56 +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
0378a9ab77
introduce timeouts for send(), this is needed for IDSESSION to work reliably,
...
since a buggy client implementation may get stuck in send(), and then clamd
gets stuck in send() -> deadlock. To avoid this we need nonblocking sockets, and
(low) timeouts on send.
Add more tests for clamd protocol, including a stress test for IDSESSION.
git-svn: trunk@4798
2009-02-16 18:27:08 +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
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
Tomasz Kojm
064b4a0c99
initial version of the unified option parser (bb#1215)
...
git-svn: trunk@4565
2008-12-17 21:42:54 +00:00
Tomasz Kojm
33068e0973
libclamav: drop cl_settempdir(); use cl_engine_set() with CL_ENGINE_TMPDIR and CL_ENGINE_KEEPTMP instead
...
git-svn: trunk@4416
2008-11-14 22:23:39 +00:00
Tomasz Kojm
370892d044
clamscan, clamd: use the new API; drop the hardcoded default limits and use the ones set in cl_engine_new()
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newapi@4384 77e5149b-7576-45b1-b177-96237e5ba77b
2008-11-12 16:19:43 +00:00
Török Edvin
aa22174b30
new command STATS
...
new top-like tool using ncurses: clamdtop
it shows what clamd is currently scanning (and since how long),
including which file(s) multiscan is working on currently,
how many items it has in the queue (and since how long they are waiting),
how many active/idle threads it has,
memory usage statistics,
can monitor local or remote clamd
git-svn: trunk@4324
2008-11-03 19:27:20 +00:00
Török Edvin
7174d94034
fix leak on rare error path (bb #1254 )
...
git-svn: trunk@4290
2008-10-23 19:35:46 +00:00
Tomasz Kojm
6670d61d4b
drop support for Cygwin (due to broken ClamAV builds)
...
git-svn: trunk@4143
2008-08-25 21:59:33 +00:00
Tomasz Kojm
f45d19ac4b
clamd: add support for ExcludePath (bb#675)
...
git-svn: trunk@3971
2008-07-18 16:31:02 +00:00
Tomasz Kojm
47b6885981
clamd/scanner.c: log IP addresses of remote clients (bb#966)
...
git-svn: trunk@3879
2008-06-02 17:17:16 +00:00
Tomasz Kojm
a9d3aa14cd
libclamunrar_iface, clamd, freshclam: merge win32 patches from NJH (bb#802)
...
git-svn: trunk@3872
2008-05-30 10:27:24 +00:00