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
Török Edvin
cc59cb00db
temp commit
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4668 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
ed2b37c685
another temp commit
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4667 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
aad69ae60f
add back visit_directory_toplev
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4659 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
66b47dd3ba
cli_ftw/cli_sftw cleanup
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4657 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
35c526fe49
visit_directory_begin/end
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4656 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
3de54fe471
WIP switch to new multiscan code.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4655 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
b59eb33a01
on streaming, don't bind to a specific ip
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4654 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
f3b50b8761
complain when we don't receive a file
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4647 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
e66fd86ac0
fix FILDES
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4644 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
14ccb41923
fix replies to honor zCMDs
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4639 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
58b5cb19a6
fix poll, we add a new fd so we need to iterate on old nfds.
...
Various other work on recursion, unified scan, etc.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4635 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
4a588824db
fix build
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4614 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
ce970052f4
push temporary work
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4613 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
3ec259a602
preliminary zCMD sport
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4609 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
064b4a0c99
initial version of the unified option parser (bb#1215)
...
git-svn: trunk@4565
17 years ago
Tomasz Kojm
33068e0973
libclamav: drop cl_settempdir(); use cl_engine_set() with CL_ENGINE_TMPDIR and CL_ENGINE_KEEPTMP instead
...
git-svn: trunk@4416
17 years ago
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
17 years ago
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
17 years ago
Török Edvin
7174d94034
fix leak on rare error path (bb #1254 )
...
git-svn: trunk@4290
17 years ago
Tomasz Kojm
6670d61d4b
drop support for Cygwin (due to broken ClamAV builds)
...
git-svn: trunk@4143
17 years ago
Tomasz Kojm
f45d19ac4b
clamd: add support for ExcludePath (bb#675)
...
git-svn: trunk@3971
17 years ago
Tomasz Kojm
47b6885981
clamd/scanner.c: log IP addresses of remote clients (bb#966)
...
git-svn: trunk@3879
17 years ago
Tomasz Kojm
a9d3aa14cd
libclamunrar_iface, clamd, freshclam: merge win32 patches from NJH (bb#802)
...
git-svn: trunk@3872
17 years ago
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
17 years ago
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
18 years ago
Tomasz Kojm
5a3aeff49f
fix handling of special characters in mprintf/logg (bb#360)
...
git-svn: trunk@3533
18 years ago
Tomasz Kojm
df599e74f9
drop support for direct fd passing (not maintained)
...
git-svn: trunk@3520
18 years ago
Tomasz Kojm
12a7b4fbff
improve cli_rndnum() and cli_gentempfd()
...
git-svn: trunk@3490
18 years ago
Tomasz Kojm
83c6ed6720
fix compilation error
...
git-svn: trunk@3199
18 years ago
Tomasz Kojm
bb34cb31fe
update some copyrights and stick to GPL v2
...
git-svn: trunk@3003
18 years ago
Tomasz Kojm
1095156aef
fix gcc -W* warnings
...
git-svn: trunk@2914
18 years ago
Tomasz Kojm
8ca8a18e2d
drop shared/memory.[ch]
...
git-svn: trunk@2874
19 years ago
Tomasz Kojm
1a4994e304
fix compilation error on Solaris (bb#341)
...
git-svn: trunk@2850
19 years ago
aCaB
f22f13d980
partial fix for signal immunity in clamd
...
more to come...
(closes bb#320)
git-svn: trunk@2836
19 years ago
Tomasz Kojm
a617b5ea1c
merge multiscan() with dirscan() (also closes bb#302)
...
git-svn: trunk@2821
19 years ago
Sven Strickroth
a99111f050
remove old CVS-stuff and make the repository look more like SVN
...
git-svn: trunk@2755
19 years ago
Tomasz Kojm
a57e3d41e1
minor code cleanup
...
git-svn: trunk@2656
19 years ago