Tom Judge
6b04dfd0b5
Fix leak of mutex's and conditionals.
13 years ago
Tomasz Kojm
d68aba83b6
clamd: ScanOnAccess now supports ClamAuth on OS X
13 years ago
Tomasz Kojm
de1271a10c
clamd: initial support for on-access scanner using fanotify (bb#2236)
...
only works in notification mode (no access blocking) right now
14 years ago
Tomasz Kojm
9b7a8c3f4b
remove some dazuko/clamuko code - to be replaced with fanotify
14 years ago
Török Edvin
d5db07a9c7
configure: check for enable_extended_FILE_stdio (bb #2542 )
14 years ago
Tomasz Kojm
6bee45b345
clamd: add new option OLE2BlockMacros (requested by Mike)
15 years ago
aCaB
3d7547cf6a
add collect hashes options to clamd and clamscan
15 years ago
Török Edvin
e4a0f2c94f
fix compiler warnings (bb #1872 , bb #1934 , bb #1935 )
15 years ago
aCaB
4fa9557e8c
bb#1892
15 years ago
aCaB
59a61e9c92
fix typo #2
15 years ago
aCaB
f4aef52ce2
fix typo
15 years ago
aCaB
f642d53c7f
win32: use non tls (s)rand(), allow nonblocking sockets
15 years ago
aCaB
88ce192ef5
bb#1812
16 years ago
aCaB
3d7d59c104
clamd-win32 - works!
16 years ago
aCaB
288b945f57
clamd-win32 - where is my mind?
16 years ago
aCaB
80f4bd69c2
fix accept
16 years ago
aCaB
5eca45b5e7
clamd-win32 - WIP#3
16 years ago
aCaB
1c4d9a22fa
clamd-win32: WIP#2
16 years ago
aCaB
b44fbcf5fb
bb#1751
16 years ago
Török Edvin
dbc4970e00
Set limit to 255 so that warning is shown if maxthreads*maxrec would exceed it.
16 years ago
Török Edvin
41feff650c
Enable more than 256 FD support on Solaris (bb #1764 ).
...
Solaris still doesn't have the fix for a bug filed in 1992 (!) enabled by default
for the sake of binary compatibility.
Each 32-bit application that wants to use more than 256 file descriptors must enable
support explicitly, or use an LD_PRELOAD library at runtime that does this
(or be compiled as 64-bit).
Otherwise fdopen(),fopen(),.. fail when the file descriptor is >255.
See http://developers.sun.com/solaris/articles/stdio_256.html
16 years ago
aCaB
e0bb54d7d4
win32: s/C_WINDOWS/_WIN32/ in clamd, shared
16 years ago
aCaB
be4bf7f4ab
win32
16 years ago
Tomasz Kojm
09196f45c7
clamd/server-th.c: fix possible race condition when restarting clamuko (bb#1692), patch from John Ogness
16 years ago
Tomasz Kojm
6a4dd9dc6b
clamd, clamscan, libclamav: drop support for MailFollowURLs (bb#1677)
16 years ago
Tomasz Kojm
68dbfcd9e7
clamd: honour value of 0 in Max* options
16 years ago
Tomasz Kojm
cd0d6a0bf2
clamd, clamav-milter: make pid files globally readable (bb#1642)
16 years ago
Török Edvin
7660b7cb35
Fix 60 byte/STREAM command memory leak on FreeBSD. (bb #1567 ,
...
thanks to Jay Deiman <jay*splitstreams.com> and Chris Mikkelson <cmikk*qwest.net> for tracking down the leak!).
git-svn: trunk@5061
16 years ago
Török Edvin
47d403f899
Fix clamd INSTREAM handling inside IDSESSION (bb #1564 ).
...
git-svn: trunk@5049
16 years ago
Török Edvin
da3e0e4036
fix documentation, fix warnings.
...
git-svn: trunk@5025
16 years ago
Török Edvin
b6de553d58
set timeout to readtimeout after receiving a chunk (bb #1540 ).
...
better checks and documentation for MaxQueue (bb #1521 ).
git-svn: trunk@5023
16 years ago
Török Edvin
9390411bf0
Automatically fix MaxQueue settings (bb #1521 ).
...
Also use rlim_cur instead of rlim_max, because that is what the kernel enforces.
git-svn: trunk@5000
16 years ago
Tomasz Kojm
2accc66fef
libclamav, clamd, clamscan: replace cl_engine_(set|get) with cl_engine_set_(num|str) and cl_engine_get_(num|str)
...
git-svn: trunk@4933
16 years ago
Török Edvin
f8e8ab4fd9
wake recvloopth after SelfCheck (if set), to avoid reloading the DB
...
just before next scan request.
git-svn: trunk@4904
16 years ago
Tomasz Kojm
99f817e731
libclamav: introduce cl_engine_settings_* API calls for copying settings between engines
...
clamd/server-th.c: respect original engine settings after db reload (bb#1380)
git-svn: trunk@4885
16 years ago
Török Edvin
1c3895a69f
downgrade warning message (bb #1433 ).
...
git-svn: trunk@4878
16 years ago
Török Edvin
a1c9ad2cf3
fix distcheck.
...
git-svn: trunk@4836
16 years ago
Török Edvin
5d34634e5d
move the command parsing, and stream handling code into their own functions.
...
No functionality change.
git-svn: trunk@4834
16 years ago
Török Edvin
f36d8f928d
fix NetBSD build
...
git-svn: trunk@4832
16 years ago
Török Edvin
a414efbf5e
revert previous commit, it is the wrong fix.
...
git-svn: trunk@4828
16 years ago
Török Edvin
a1f0c01189
Fix wrong use of strerror_r: it doesn't have to use/fill the buffer,
...
it can return a pointer to a static location, as described in the manpage.
This can happen on a Linux system with a foreign locale, where the LANG=C messages are
returned this way. (BB #1403 )
git-svn: trunk@4827
16 years ago
Török Edvin
4d26118b95
In single INSTREAM mode, remove FD from polled set (BB #1410 )
...
Fix testcase, INSTREAM should say UNKNOWN COMMAND in old mode and close conn, sending
anything after it will likely result in a broken pipe.(BB #1407 )
git-svn: trunk@4826
16 years ago
Török Edvin
b82eea8de0
signals may not wake a poll(), so make sure thread wakes up (BB #1400 ).
...
git-svn: trunk@4816
16 years ago
Török Edvin
537292a773
Reject new commands sent as new-style commands to avoid confusion.
...
This means that IDSESSION/INSTREAM must be sent as nIDSESSION\n or zIDSESSION\0,
ditto for INSTREAM.
Adjust testcases accordingly.
Old commands are still accepted when sent without delimiter.
git-svn: trunk@4811
16 years ago
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
16 years ago
Török Edvin
c5355aedbd
make sending ancillary data at wrong time a protocol error.
...
change testcase accordingly.
git-svn: trunk@4805
16 years ago
Török Edvin
5f6edb222c
ReadTimeout handling, and introduce CommandReadTimeout.
...
git-svn: trunk@4803
16 years ago
Török Edvin
456e31a3cb
fix typo.
...
add another stress test.
Don't leak file descriptors.
Fix IDSESSION delimiter handling.
git-svn: trunk@4800
16 years ago
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
16 years ago
Török Edvin
4e24a36173
add more unit tests.
...
Make handling of old-style commands compatible with old clamd: if they have a \n
that will delimit the command.
If multiscan of a single file encounters errors, don't reply OK too.
git-svn: trunk@4796
16 years ago