Commit Graph

106 Commits

Author SHA1 Message Date
Török Edvin
e001f2838e Use 2 queues: one for single, one for bulk messages.
Also introduce MaxQueue, this will prevent clamdscan from flooding
clamd with too many FILDES requests.

git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4710 77e5149b-7576-45b1-b177-96237e5ba77b
2009-02-08 21:06:59 +00:00
aCaB
056198f16d shared/optparser.c, clamconf: new clamconf (bb#1215, bb#1316)
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4632 77e5149b-7576-45b1-b177-96237e5ba77b
2009-01-22 17:29:53 +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
Tomasz Kojm
e247b45cc6 shared/misc.c: re-enable freshdbdir()
git-svn: trunk@4590
2009-01-02 21:45:46 +00:00
Tomasz Kojm
b61db429fc shared, clamconf: drop old stuff; replace getopt.[ch] with my_getopt
git-svn: trunk@4589
2009-01-02 17:04:11 +00:00
Tomasz Kojm
278dc6b3d9 shared/optparser.c, clamav-milter: use the new option parser (bb#1215)
git-svn: trunk@4588
2009-01-02 15:30:17 +00:00
Tomasz Kojm
d6af38e75e shared/optparser.c, sigtool: use the new option parser (bb#1215)
git-svn: trunk@4587
2009-01-02 11:54:08 +00:00
Tomasz Kojm
e8b54ef3fa shared/optparser.c: fix typo (bb#1336)
git-svn: trunk@4584
2008-12-31 14:28:02 +00:00
Tomasz Kojm
8392ae8070 shared/optparser.c: cosmetics; add FLAG_REQUIRED
git-svn: trunk@4583
2008-12-31 12:26:30 +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
Tomasz Kojm
269d520dfb shared/optparser.c, clamscan: use the new option parser
git-svn: trunk@4580
2008-12-30 10:33:43 +00:00
Tomasz Kojm
7eca74fef9 shared/optparser.c: extend MATCH_BOOL regex (bb#1324)
git-svn: trunk@4576
2008-12-22 21:22:17 +00:00
Tomasz Kojm
229491b7b4 shared/optparser.c: handle --user/-u in freshclam (bb#1323)
git-svn: trunk@4575
2008-12-22 21:05:53 +00:00
Tomasz Kojm
1f95badf6a shared/optparser.c: fix small memleak
git-svn: trunk@4574
2008-12-22 15:01:59 +00:00
Tomasz Kojm
3f7802c93e shared/optparser.c, freshclam: use the new option parser (bb#1215)
git-svn: trunk@4573
2008-12-18 19:42:53 +00:00
Tomasz Kojm
e1c57af20c fix parentheses
git-svn: trunk@4571
2008-12-18 14:24:43 +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
aCaB
87620def4a add tempdir, some fixes
git-svn: trunk@4531
2008-12-04 16:27:16 +00:00
aCaB
66ded5b846 Whitelisting complete
git-svn: trunk@4530
2008-12-04 16:27:10 +00:00
aCaB
ce34c246e0 AddHeader
git-svn: trunk@4527
2008-12-04 16:26:52 +00:00
aCaB
e9747a42a2 Implenet actions
git-svn: trunk@4526
2008-12-04 16:26:47 +00:00
aCaB
f7f3b5913f cfg fix
git-svn: trunk@4525
2008-12-04 16:26:41 +00:00
aCaB
6840d862f5 LocalNet parser complete
git-svn: trunk@4523
2008-12-04 16:26:30 +00:00
aCaB
4c237bcfdd Squashed commit of the following:
commit 0ddbd1a7117e207b8aa87079568a056691d5eb32
Author: acab <acab@1337ness.(none)>
Date:   Thu Nov 27 17:18:04 2008 +0100

    to be committed

commit 51f8010a275717b8a56a3ab22d49755899819518
Author: acab <acab@1337ness.(none)>
Date:   Thu Nov 27 15:18:40 2008 +0100

    mangle body

commit cd38463f4739f4a7778b6bf294cfb2166024656e
Author: acab <acab@1337ness.(none)>
Date:   Thu Nov 27 14:43:39 2008 +0100

    parse clamd result

commit 7b8a39495e59ac745342455f8e9aab09951d1041
Author: acab <acab@1337ness.(none)>
Date:   Thu Nov 27 03:19:45 2008 +0100

    handle calloc shifts

commit a58b732af99f9e3f18d2327e977432f1117028ee
Author: acab <acab@1337ness.(none)>
Date:   Thu Nov 27 02:07:19 2008 +0100

    spam added, local is b0rked

commit 22604b4b037cfdbc92d6b29986652e2f004bd1f3
Author: acab <acab@albe.digitalfuture.it>
Date:   Wed Nov 26 19:44:59 2008 +0100

    free/close stuff

commit 33a02aed984981d3e80ca4930a482f702624f08f
Author: aCaB <acab@digitalfuture.it>
Date:   Wed Nov 26 03:11:29 2008 +0100

    skeleton ready

commit 4630d9902ee74b6137abf6526c6a9ad3e41fc597
Author: aCaB <acab@digitalfuture.it>
Date:   Tue Nov 25 22:59:41 2008 +0100

    need to rebase

commit 083f5f98aecfce2763870f20ae97643d5683613a
Author: aCaB <acab@digitalfuture.it>
Date:   Tue Nov 25 22:45:11 2008 +0100

    in body()

commit 08f040f67de1264810953415c0a47c95ec9acff0
Author: aCaB <acab@digitalfuture.it>
Date:   Tue Nov 25 19:51:15 2008 +0100

    clamfi

commit bc08fe8f72580b8be81791a7c03ec38952781af7
Author: aCaB <acab@digitalfuture.it>
Date:   Tue Nov 25 16:47:17 2008 +0100

    adding milter

commit 34dcebd9294a059f2c45ec9d1817bdb75f423cb3
Author: aCaB <acab@digitalfuture.it>
Date:   Tue Nov 25 00:35:11 2008 +0100

    netcode works, fix to cfgparser

commit 3cc0997d907e817954328c60e43cdcca0667d6f3
Author: aCaB <acab@digitalfuture.it>
Date:   Mon Nov 24 23:46:05 2008 +0100

    socket probe

commit 0c3bbd6d03f8df931cb114b07150cd0b7dcd0aff
Author: aCaB <acab@digitalfuture.it>
Date:   Mon Nov 24 19:02:06 2008 +0100

    nonblock started

commit a1193ff0de0d0a3d9212d833110236b1329c1f2e
Author: aCaB <acab@digitalfuture.it>
Date:   Mon Nov 24 11:17:41 2008 +0100

    legacy options

commit 90519c59ff8a4f44fceaf84e8c40116254c73045
Author: aCaB <acab@digitalfuture.it>
Date:   Sun Nov 23 19:41:26 2008 +0100

    sockets pool

commit 897b0c5f82503530ba3fbb2fcc3a9c007488e90a
Author: aCaB <acab@digitalfuture.it>
Date:   Sun Nov 23 01:02:59 2008 +0100

    Logging done

commit 4cf3a218756271c74782a1649f728e1c6e977ae5
Author: aCaB <acab@digitalfuture.it>
Date:   Sat Nov 22 23:31:34 2008 +0100

    Config done

commit 93b271579f680286c697476c00d8eec7effb2fc4
Author: aCaB <acab@digitalfuture.it>
Date:   Sat Nov 22 22:50:42 2008 +0100

    Sanitise config file options

commit bf5e81b8561b258daaef134894761fa80d44f5b1
Author: aCaB <acab@digitalfuture.it>
Date:   Sat Nov 22 20:25:06 2008 +0100

    cfgparser hacks to allow for milter own conf

commit 8924e93b2567a1f378c2177b4011b67631b49cc1
Author: aCaB <acab@digitalfuture.it>
Date:   Sat Nov 22 19:03:45 2008 +0100

    command line parser

commit d2180e370f75948b6ce12f89979bda9e92ccd5f8
Author: aCaB <acab@digitalfuture.it>
Date:   Sat Nov 22 16:36:37 2008 +0100

    restart from scratch

commit 249d6cdbddbea622c949753aafbf48e526e0ef4d
Author: aCaB <acab@digitalfuture.it>
Date:   Sun Nov 16 19:39:12 2008 +0100

    more diversion

commit b948990103867b59c749da88d6384128c1e5e6d3
Author: aCaB <acab@digitalfuture.it>
Date:   Sun Nov 16 17:31:42 2008 +0100

    milter separation (milter)

commit 6dc259a5d4f8f6e4428953055510382160ef8df4
Author: aCaB <acab@digitalfuture.it>
Date:   Sun Nov 16 17:23:14 2008 +0100

    milter separation

git-svn: trunk@4519
2008-12-04 16:26:04 +00:00
Tomasz Kojm
fa78cc4341 s/ArchiveMaxScanSize/ArchiveMaxFileSize in deprecated
git-svn: trunk@4505
2008-12-01 12:00:20 +00:00
aCaB
41cf3f0e48 typo in shared/cfgparser.c
git-svn: trunk@4490
2008-11-28 17:12:00 +00:00
aCaB
cd04ff0694 cfgparser hacks backported from branches/milter-v2.0
git-svn: trunk@4489
2008-11-28 16:57:15 +00:00
Tomasz Kojm
c6677c9418 LogFileUnlock was not working correctly (bb#1304)
git-svn: trunk@4471
2008-11-25 20:07:11 +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
Tomasz Kojm
285d0b33ca freshclam: add new config option DetectionStatsCountry
git-svn: trunk@4297
2008-10-28 19:10:48 +00:00
Tomasz Kojm
c702906433 cosmetics
git-svn: trunk@4255
2008-10-13 11:17:35 +00:00
Tomasz Kojm
64fd0bfcd7 freshclam: add support for submitting detection statistics (bb#777)
git-svn: trunk@4241
2008-10-10 14:22:00 +00:00
Török Edvin
b105842c5c when --disable-gcc-vcheck is set, set CFLAGS to O0 and
append -broken-compiler to the VERSION (bb #684)
introduce VERSION_SUFFIX for easier handling, and convert -exp to use it

git-svn: trunk@4239
2008-10-09 09:00:26 +00:00
Tomasz Kojm
04fa4e9d01 shared/options.c: handle obsolete options in cmdline parser (bb#1213)
git-svn: trunk@4236
2008-10-07 20:18:21 +00:00
Tomasz Kojm
dec7ffce08 shared/cfgparser.c, clamdconf: gently deprecate obsolete options (bb#1213)
git-svn: trunk@4231
2008-10-07 17:02:15 +00:00
Tomasz Kojm
e863785852 enable ScanPDF by default (bb#1179)
git-svn: trunk@4189
2008-09-18 09:45:47 +00:00
Tomasz Kojm
3f9918e1de libclamav/dlp.c: limit number of false positive alerts
clamd, clamscan: don't scan for stripped SSNs by default


git-svn: trunk@4153
2008-08-29 23:33:12 +00:00
Tomasz Kojm
57e1a05eda credit card detection fixes
git-svn: trunk@4150
2008-08-29 10:32:33 +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
Török Edvin
7959343dc7 allow make distcheck to succeed (bb #1142)
fix some more warnings
  filter -Werror in clamav-milter.c

git-svn: trunk@4141
2008-08-25 14:18:48 +00:00
Tomasz Kojm
04be06be87 shared/misc.c: fix double "-exp"
git-svn: trunk@4133
2008-08-23 20:24:04 +00:00
Török Edvin
5cd3f734a9 add lots of warnings flags to 'make distcheck',
and turn some warnings into errors (bb #1092)

git-svn: trunk@4129
2008-08-21 20:21:43 +00:00
Tomasz Kojm
d706617ce5 shared/tar.c: fix invalid close on error path - bb#1141
git-svn: trunk@4125
2008-08-21 11:29:57 +00:00
Török Edvin
add738d28c portability fixes
if there is a version.h.static use that instead of output from svnversion
use get_version(), tools outside libclamav shouldn't rely on libclamav version
exception: clamconf itself needs both, and the milter shows both

git-svn: trunk@4076
2008-08-04 10:38:24 +00:00
Török Edvin
04f9bedf4b use SVN revision in version info
TODO: replace every remaining use of VERSION with cl_retver()

git-svn: trunk@4070
2008-08-03 21:52:11 +00:00
Tomasz Kojm
b023c36d4b libclamav: add support for loading specific PUA categories (bb#939)
clamd: new options ExcludePUA and IncludePUA
clamscan: new switches --exclude-pua and --include-pua



git-svn: trunk@4046
2008-07-31 16:26:50 +00:00
Török Edvin
7f0d1148d6 clamd, clamscan, libclamav: new option HeuristicScanPrecedence (bb #649)
docs/: update docs for HeuristicScanPrecedence and ScanPartialMessages
unit_tests/: add test for HeuristicScanPrecedence


git-svn: trunk@4037
2008-07-31 10:51:46 +00:00
Török Edvin
4270f93bcc (bb #913, #916)
* fix scan of partial messages
* allow for tempfiles to be cleaned up based on age
* new clamd.conf option ScanPartialMessages
* sample cleanup script
* clamd/thrmgr.c: fix item_count


git-svn: trunk@4031
2008-07-30 13:54:34 +00:00
Tomasz Kojm
0129373ed0 add REG_NOSUB
git-svn: trunk@3976
2008-07-18 18:48:10 +00:00