aCaB
3be4ac3f65
drop useless checks
...
git-svn: trunk@4545
17 years ago
aCaB
cd04ff0694
cfgparser hacks backported from branches/milter-v2.0
...
git-svn: trunk@4489
17 years ago
aCaB
c6385428e2
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-id: file:///var/lib/svn/clamav-devel/branches/milter-v2.0@4486 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
c6677c9418
LogFileUnlock was not working correctly (bb#1304)
...
git-svn: trunk@4471
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
ab0d2f054d
libclamav, clamd, clamscan: use cl_engine_set() to control AC settings
...
git-svn: trunk@4404
17 years ago
Török Edvin
dd15bc42f5
fix "leak". It was a valgrind false-positive because it couldn't see the
...
pointer.
git-svn: trunk@4402
17 years ago
Tomasz Kojm
b8fe70b3a3
libclamav: drop options parameter in cl_engine_new(); replace cl_engine_dup() with cl_engine_addref()
...
git-svn: trunk@4398
17 years ago
Tomasz Kojm
395fb661e3
fix some possible memleaks
...
git-svn: trunk@4391
17 years ago
Török Edvin
15adbc849a
update unit tests to new API.
...
Initialization order changed, make sure stats_tls_key is initialized.
git-svn: trunk@4387
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
aCaB
094104a7ac
preliminary dlopen support for libclamunrar - this is mostly libtool stuff
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/dlopen@4360 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
08402afa4c
fix more compiler warnings (bb #273 )
...
git-svn: trunk@4353
17 years ago
Török Edvin
5a1034b991
fix more compiler warnings (bb #273 ).
...
git-svn: trunk@4349
17 years ago
Török Edvin
b9b477842d
fix compiler warnings, more to come (bb #273 )
...
git-svn: trunk@4346
17 years ago
Török Edvin
deb3031222
mempool statistics support
...
git-svn: trunk@4344
17 years ago
Tomasz Kojm
ac1b219cf1
libclamav, clamd: always return correct db version in VERSION (bb#1168)
...
git-svn: trunk@4332
17 years ago
Török Edvin
764f76c841
* clamd/thrmgr.c (thrmgr_printstats, IDLE_TASK): add comments
...
* contrib/clamdtop/TODO: more TODO items
git-svn: trunk@4328
17 years ago
Török Edvin
64cb380717
fix whitespace
...
git-svn: trunk@4327
17 years ago
Török Edvin
ee7ac1fc63
fix mixed statements (bb #1269 )
...
git-svn: trunk@4326
17 years ago
Török Edvin
6bdb35ea6a
use mdprintf instead of fdopen on socket (bb #1270 ) (thanks to Gianluigi Tiesi <sherpya*netfarm.it>)
...
git-svn: trunk@4325
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
c702906433
cosmetics
...
git-svn: trunk@4255
17 years ago
Tomasz Kojm
b1fa154b64
clamd/server.h: drop dead code (bb#1231)
...
git-svn: trunk@4254
17 years ago
Tomasz Kojm
04fa4e9d01
shared/options.c: handle obsolete options in cmdline parser (bb#1213)
...
git-svn: trunk@4236
17 years ago
Török Edvin
ae685a75c1
link to libclamunrar_iface explicitly to
...
allow non-rpath builds to work. (bb #1203 )
Thanks to James Ralston <ralston*pobox.com>
git-svn: trunk@4224
17 years ago
Török Edvin
85398f3ed8
fix overlapping arguments in disasm/debug (bb #1150 )
...
move copt out of main, so that valgrind is not reporting false leaks
make distcheck works now
git-svn: trunk@4193
17 years ago
Török Edvin
1642ffba29
fix some races in check_clamd.sh
...
add more valgrind suppressions
better log parsing for valgrind
add mutex to prevent multiple simultaneous forks (bb #1187 )
git-svn: trunk@4182
17 years ago
Török Edvin
b8edbb880d
clamd/thrmgr.c: fix valgrind warning (bb #1184 )
...
unit_tests: add more valgrind tests, add a reload and a multiscan test (bb #1092 )
git-svn: trunk@4175
17 years ago
Török Edvin
15d67313c4
allow 'make check' to work even if check is not installed
...
by skipping checks that require it. (bb #1157 )
if configure is not able to find check, you can use
--with-libcheck-prefix, instead of CHECK_CFLAGS and
CHECK_LIBS.
remove accidental AC_DEFINE GETHOSTBYNAME_R_6 from last commit.
git-svn: trunk@4172
17 years ago
aCaB
6d48ea885a
update libtool - bb#1162
...
git-svn: trunk@4170
17 years ago
Tomasz Kojm
edc677c179
clamd/server-th.c: fix handling of pthread_attr_init/pthread_create in ClamukoScanOnAccess (bb#1169)
...
git-svn: trunk@4169
17 years ago
Török Edvin
2d75763208
revert last commit, it breaks bzip2 detection in /usr/local
...
git-svn: trunk@4163
17 years ago
Török Edvin
8179270b95
if pkg-config cannot find check look in standard places for check
...
(such as /usr/local/lib)
git-svn: trunk@4162
17 years ago
Török Edvin
4a40b66cf0
replace AC_FUNC_MMAP: check only for MAP_PRIVATE and not MAP_FIXED (bb #1140 ) HP-UX: zlib in non-standard path, LIBS got set to -lz, but -L was missing, just restore LIBS and don't touch it
...
git-svn: trunk@4145
17 years ago
Tomasz Kojm
6670d61d4b
drop support for Cygwin (due to broken ClamAV builds)
...
git-svn: trunk@4143
17 years ago
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
17 years ago
Török Edvin
e357da7b90
more leak fixes (bb #1141 )
...
git-svn: trunk@4127
17 years ago
Tomasz Kojm
1bf0d5a864
clamd/clamd.c: return an error (instead of a warning) if AllowSupplementaryGroups is enabled but initgroups() not available
...
git-svn: trunk@4120
17 years ago
Tomasz Kojm
3eba9d8363
clamd/server-th.c: add missing proto for cli_initengine() (bb#1136)
...
git-svn: trunk@4116
17 years ago
aCaB
55144c4766
work around non reentrant lresolv
...
git-svn: trunk@4087
17 years ago
Török Edvin
dfc0c031cb
if there is a version.h.static use that instead of output from svnversion
...
Makefile portability fixes
fix assert failure
add lcov to top level makefile
cleanup after lcov when you run make clean (bb #1112 )
fix parsing of [^.] character class
fix parsing of [r-t]
fix handling of @ for URL hashes
fix handling of &# inside URLs
drop some dead code
more unit tests for str
portability fixes
git-svn: trunk@4078
17 years ago
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
17 years ago
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
17 years ago
Török Edvin
4a0bd44290
Multiscan queues a lot of scan tasks. If thread_idle wasn't zero when multiscan
...
started queueing, it will only spawn at most one thread, and keep queueing
without spawning more threads (because threads_idle now non-zero), but the idle
thread doesn't get a chance to pick up the tasks.
Fix this by testing whether we have enough idle threads to pick up the items in
the work queue. If there aren't then spawn some more until max limit is reached,
or we have enough idle threads to handle all tasks in the queue.
git-svn: trunk@4066
17 years ago
Török Edvin
9a22341892
apply patch from bb #885
...
clamd is unusable on OpenBSD and some other BSD versions without it.
It has a C_BSD wrapper around it so it shouldn't affect anything else.
git-svn: trunk@4060
17 years ago
aCaB
8cc8f8100f
missing include in clamd.c
...
git-svn: trunk@4059
17 years ago
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
17 years ago
Török Edvin
1eb943f3fc
use automake for a basic check that the installed programs work.
...
currently only tests clamscan and sigtool
database: 0 sized .cvd files were still installed, because exit 0 didn't stop
the entire rule. fixed
git-svn: trunk@4042
17 years ago