Tomasz Kojm
c2b6681b79
clamscan, clamdscan: add support for --file-list/-f
...
git-svn: trunk@5069
2009-05-21 13:43:05 +00:00
aCaB
22446430c1
unify error reporting
...
git-svn: trunk@4909
2009-03-07 15:32:16 +00:00
aCaB
5b1eee09f3
refactor error handlers in clamdscan
...
git-svn: trunk@4907
2009-03-07 01:55:07 +00:00
Török Edvin
a1598d7ccb
trim extra leading and trailing slashes (bb #1423 ).
...
git-svn: trunk@4852
2009-02-24 13:21:27 +00:00
aCaB
408be01ffe
add --stream
...
git-svn: trunk@4801
2009-02-17 00:08:17 +00:00
Török Edvin
bfd89d7c84
fix Solaris build
...
git-svn: trunk@4776
2009-02-13 11:05:14 +00:00
Török Edvin
7a997ac950
move TCP socket creation to shared/
...
git-svn: trunk@4769
2009-02-12 21:14:51 +00:00
Török Edvin
ab1ed22fbf
fix merge mistake
...
git-svn: trunk@4759
2009-02-12 17:31:09 +00:00
aCaB
7609af89f2
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@4756
2009-02-12 17:11:27 +00:00
aCaB
ee6702abf5
unify actions
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4751 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-12 15:14:12 +00:00
Tomasz Kojm
140237e4bf
#ifdef HAVE_UNISTD_H
...
git-svn: trunk@4738
2009-02-11 14:40:57 +00:00
aCaB
83c52f7eb5
error paths and other fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4719 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-09 16:23:38 +00:00
aCaB
533fa89515
do not infloop
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4707 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-08 15:45:38 +00:00
aCaB
9877f2d823
honour StreamMaxLen
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4705 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-08 15:06:10 +00:00
aCaB
acd4d7aa78
typo
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4703 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-08 14:50:53 +00:00
aCaB
228d7e1929
open fix
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4702 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-08 14:49:20 +00:00
aCaB
fadd3046fc
fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4701 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-08 14:43:17 +00:00
aCaB
f687013351
IDSESSION + INSTREAM sport
...
tidy
(smthng still fuxxxd up)
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4693 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-07 00:59:58 +00:00
aCaB
d00d2c3727
calling dspresult
...
this is all skrewed up atm
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4689 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-06 17:25:05 +00:00
aCaB
d888e42724
dspresult
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4688 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-06 14:58:40 +00:00
aCaB
befa580a23
initial idsession implementation
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4677 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-04 17:18:58 +00:00
aCaB
3bf21904ad
straight reload
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4676 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-04 17:18:49 +00:00
aCaB
1d9da95b82
typo
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4675 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-04 17:18:44 +00:00
aCaB
b1442ed1df
unify client_scan
...
restore summary spam
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4666 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-30 11:30:54 +00:00
aCaB
6630b2a91c
Preliminary ftw adoption
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4663 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-29 17:31:37 +00:00
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
2009-01-28 00:33:56 +00:00
aCaB
b120dc19de
attempt to scan a pipe
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4648 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-24 15:51:44 +00:00
aCaB
2b68c49038
fix scandash spam
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4646 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-24 15:23:54 +00:00
aCaB
f12488af2b
fix recvln
...
uniform spam
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4645 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-24 15:03:19 +00:00
aCaB
e9896728c9
fix localsocket
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4642 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-23 14:43:51 +00:00
aCaB
2c67cb719b
scanning dash is now always sported, no need to double check
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4641 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-23 14:14:31 +00:00
aCaB
07e8bf35e0
handle "-" on non af_unix
...
handle "-" without fdpass
handle STREAM on af_unix
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4640 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-23 14:10:14 +00:00
aCaB
00f0516675
recv fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4638 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-23 11:59:11 +00:00
aCaB
a659e39384
restored non-scan commands
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4634 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-23 09:59:40 +00:00
aCaB
07e8d00f49
now handling recursion for remote/fdpass scanning
...
still lots of fixmes
todo: iSESSION
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4631 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-22 17:29:40 +00:00
aCaB
59c2353664
shared/optparser.c: improve cmdline args handling
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4627 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-20 17:46:58 +00:00
aCaB
87066fbc5b
implement internal recursion, to be used when streaming or fdpassing
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4626 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-20 17:46:47 +00:00
Tomasz Kojm
19c17946cc
shared/optparser.c: improve cmdline args handling
...
git-svn: trunk@4625
2009-01-19 19:41:27 +00:00
aCaB
78e8d83a07
recvln
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4621 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-16 18:29:05 +00:00
aCaB
abd6d2c7cb
unified opts
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4620 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-16 18:29:00 +00:00
aCaB
eeeff8665a
blah
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4617 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-14 17:22:43 +00:00
aCaB
01925d6506
give "proper" status line
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4616 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-14 17:21:34 +00:00
aCaB
03f214fb72
sgetz - fix logic
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4611 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-14 12:54:16 +00:00
aCaB
4793a83546
sgetz fixes
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4610 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-14 02:45:38 +00:00
aCaB
2599ba97e0
use zSCAN
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4608 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-13 22:56:12 +00:00
Tomasz Kojm
a68d5e2fb2
shared/optparser.c, clamdscan: use the new option parser (bb#1215)
...
git-svn: trunk@4581
2008-12-30 21:16:02 +00:00
aCaB
cd04ff0694
cfgparser hacks backported from branches/milter-v2.0
...
git-svn: trunk@4489
2008-11-28 16:57:15 +00:00
aCaB
eb4300ad0d
s/PF_/AF_/
...
git-svn: trunk@4244
2008-10-11 09:40:29 +00:00
Tomasz Kojm
d61aeda265
clamdscan: properly handle --infected (bb#1221)
...
git-svn: trunk@4237
2008-10-07 21:29:57 +00:00
Tomasz Kojm
7801f6dbdf
check return code from read
...
git-svn: trunk@4186
2008-09-18 08:41:25 +00:00