Shawn Webb
b2e7c931d0
Use OpenSSL for hashing.
11 years ago
Shawn Webb
e07b295d95
Remove existing stats gathering framework from clamd
...
Conflicts:
clamd/clamd.c
11 years ago
Shawn Webb
d9b6b8c757
bb#8993 - Rename the STAT macro to CLAMSTAT to avoid name conflicts on AIX
12 years ago
David Raynor
abd86a5e9e
Scan_all: clamd fix
12 years ago
David Raynor
aec1e3be24
Scan_all: make sure flag reaches ac_scanbuff and cleaner clamd support
12 years ago
David Raynor
fab9317ed2
Scan_all: virus alert handling improvements
12 years ago
Shawn Webb
138b5aba59
bb6082 - Fix compiler warnings
12 years ago
Steve Morgan
6ad45a2931
add initial allscan/allmatch mode to libclamav, clamd, clamdscan, and clamscan with unit tests
13 years ago
Steve Morgan
6174db3a3c
bb#5792 fix for dead code
13 years ago
Steve Morgan
82c0a0b09a
fixes dead code and close(-1), bb#5782 and bb#5785
13 years ago
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.
13 years ago
Török Edvin
8f66206b67
fix 'make distcheck'
14 years ago
Tomasz Kojm
0f4639ec76
clamd: log request ip address for instream scans #bb2592
...
On behalf of acab
14 years ago
Tomasz Kojm
27c451d04d
clamd: update description of ReadTimeout (bb#2565)
14 years ago
Tomasz Kojm
b898103236
clamd: don't report file hashes to clients (bb#2409)
15 years ago
Tomasz Kojm
49f8de2207
clamd: add new commands DETSTATS and DETSTATSCLEAR (part of bb#2312)
15 years ago
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.
15 years ago
Tomasz Kojm
edbba730b3
clamd: add ExtendedDetectionInfo (bb#1228, #1626 )
15 years ago
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.
15 years ago
Török Edvin
e4a0f2c94f
fix compiler warnings (bb #1872 , bb #1934 , bb #1935 )
15 years ago
aCaB
49e5f6580e
bb#1851
15 years ago
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.
16 years ago
aCaB
3b074c7878
clamd-win32 - WIP
16 years ago
Török Edvin
7e98915f9b
cli_ftw: when readdir fails, call the error callback (bb #1735 ).
...
Also report all failures to clamdscan.
16 years ago
Török Edvin
727e05603d
Fix error path leak (bb #1711 ).
16 years ago
aCaB
15fbe96ff6
removed r_gethostbyname which was not used
16 years ago
aCaB
e0bb54d7d4
win32: s/C_WINDOWS/_WIN32/ in clamd, shared
16 years ago
aCaB
be4bf7f4ab
win32
16 years ago
Tomasz Kojm
2086dc5cab
clamd, clamscan: add support for CrossFilesystems/--cross-fs (bb#1607)
16 years ago
Tomasz Kojm
51bbedb132
libclamav, clamd: handle file exclusion in cli_ftw() (bb#1656)
16 years ago
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
16 years ago
Török Edvin
01cc87e1b4
typo
...
git-svn: trunk@4945
16 years ago
Török Edvin
b4ea33b23b
fix handling of multiple ExcludePath entries.
...
git-svn: trunk@4944
16 years ago
Török Edvin
36e4bc1467
stop scanning when client disconnects (bb #1446 ).
...
git-svn: trunk@4940
16 years ago
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
16 years ago
Török Edvin
5f6edb222c
ReadTimeout handling, and introduce CommandReadTimeout.
...
git-svn: trunk@4803
16 years ago
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
16 years ago
Tomasz Kojm
086eab5c26
update old copyright headers
...
git-svn: trunk@4775
17 years ago
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
17 years ago
Török Edvin
004f8386ce
output "stream" instead of "fd[]" for INSTREAM.
...
Add INSTREAM command test.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4753 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
0115f12ffc
fix some more warnings
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4746 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
10ab5e32f4
fix some compiler warnings
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4745 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
9ef7e0bdae
fix memory leaks
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4743 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
f243f00fc5
fix some races reported by valgrind
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4737 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
c73edc125e
Reject invalid minport/maxport in clamd.conf, instead of silently replacing them
...
with "good" values.
Simplify rest of the code a bit.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4723 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
f022339bfc
initialize all fields
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4691 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
2ea8946280
don't execute commands if client disconnected.
...
fix MULTISCAN
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4682 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
54c1f41b34
unify replies: add ids on all replies from IDSESSION.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4679 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
937c8ec187
preliminary ID support, only on engine messages, not clamd messages
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4672 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
28e89f60ca
fix warnings
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4669 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago