Commit Graph

33 Commits

Author SHA1 Message Date
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
Török Edvin
725a296922 build system: add configure checks for FD passing
m4/fdpassing.m4: move all FD passing checks here
clamd/session.[ch], scanner.[ch]:
contrib/clamd_fdscan:
	add rfc2292/bsd4.4 style file descriptor passing support
	this code is from Marc Balmer <marc*msys.ch>, with some portability
	fixes applied


git-svn: trunk@3849
2008-05-09 21:12:28 +00:00
Török Edvin
d6df9ffb5a use pthread_cond_* instead of usleep() in MULTISCAN (bb #758)
enable entconv by default
others.c: fix compiler warning
regex_list.c: remove unused code, because a better solution is scheduled for 0.94 (bb #725)


git-svn: trunk@3627
2008-02-13 10:57:33 +00:00
Tomasz Kojm
5a3aeff49f fix handling of special characters in mprintf/logg (bb#360)
git-svn: trunk@3533
2008-01-23 16:38:36 +00:00
Tomasz Kojm
df599e74f9 drop support for direct fd passing (not maintained)
git-svn: trunk@3520
2008-01-22 08:38:24 +00:00
Tomasz Kojm
12a7b4fbff improve cli_rndnum() and cli_gentempfd()
git-svn: trunk@3490
2008-01-09 19:43:08 +00:00
Tomasz Kojm
83c6ed6720 fix compilation error
git-svn: trunk@3199
2007-09-02 12:18:28 +00:00
Tomasz Kojm
bb34cb31fe update some copyrights and stick to GPL v2
git-svn: trunk@3003
2007-03-31 20:31:04 +00:00
Tomasz Kojm
1095156aef fix gcc -W* warnings
git-svn: trunk@2914
2007-03-06 16:31:49 +00:00
Tomasz Kojm
8ca8a18e2d drop shared/memory.[ch]
git-svn: trunk@2874
2007-02-28 02:44:23 +00:00
Tomasz Kojm
1a4994e304 fix compilation error on Solaris (bb#341)
git-svn: trunk@2850
2007-02-23 19:15:28 +00:00
aCaB
f22f13d980 partial fix for signal immunity in clamd
more to come...
(closes bb#320)



git-svn: trunk@2836
2007-02-22 11:52:48 +00:00
Tomasz Kojm
a617b5ea1c merge multiscan() with dirscan() (also closes bb#302)
git-svn: trunk@2821
2007-02-20 21:19:04 +00:00
Sven Strickroth
a99111f050 remove old CVS-stuff and make the repository look more like SVN
git-svn: trunk@2755
2007-02-17 19:02:20 +00:00