Shawn webb
4e2700c74c
Fix previous commit
14 years ago
Shawn webb
9120a4a622
BB#5412: Resource cleanup under error conditions
14 years ago
Shawn webb
a593713605
Fix whitespace
14 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
Tomasz Kojm
bc3b9efc5b
clamd: add new option ClamukoExcludeUID (bb#2260)
15 years ago
Tomasz Kojm
3c91587c8c
fix typo
15 years ago
Tomasz Kojm
2e136dcd0d
freshclam, clamd: handle EINTR during waitpid() (bb#2422)
15 years ago
aCaB
bbce04496c
fix win32 build
15 years ago
Tomasz Kojm
bb08962d85
fix previous commit
15 years ago
Tomasz Kojm
49f8de2207
clamd: add new commands DETSTATS and DETSTATSCLEAR (part of bb#2312)
15 years ago
aCaB
ced85d637c
bb#1889
16 years ago
aCaB
3d7d59c104
clamd-win32 - works!
16 years ago
aCaB
288b945f57
clamd-win32 - where is my mind?
16 years ago
aCaB
4155214d9a
fix accept
16 years ago
aCaB
5eca45b5e7
clamd-win32 - WIP#3
16 years ago
aCaB
1c4d9a22fa
clamd-win32: WIP#2
16 years ago
aCaB
3b074c7878
clamd-win32 - WIP
16 years ago
Török Edvin
e2fbea32c1
fix distcheck warnings.
16 years ago
Török Edvin
cb9a7b448d
Improve error message when no ancillary data is received (bb #1700 ).
...
On Linux show a message that SELinux/AppArmor might be blocking the file
descriptor.
16 years ago
aCaB
e0bb54d7d4
win32: s/C_WINDOWS/_WIN32/ in clamd, shared
16 years ago
aCaB
9cf0716828
drop interix
16 years ago
aCaB
be4bf7f4ab
win32
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
17 years ago
Török Edvin
0dd49673a0
fix build when poll is not available.
...
git-svn: trunk@4966
17 years ago
Török Edvin
c9954509cc
better detect half-shut vs. full-shutdown sockets (bb #1441 )
...
git-svn: trunk@4948
17 years ago
Török Edvin
de5f850d16
fix previous commit
...
git-svn: trunk@4928
17 years ago
Török Edvin
e68d70e7e0
strerror/strerror_r->cli_strerror which is always thread safe.
...
git-svn: trunk@4927
17 years ago
Török Edvin
b0e57898e8
fix FILDES and make check on NetBSD. (bb #1411 ).
...
git-svn: trunk@4905
17 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
17 years ago
Török Edvin
14896add0b
force alignment of ancillary data buffer (bb #1425 ).
...
git-svn: trunk@4858
17 years ago
Török Edvin
a414efbf5e
revert previous commit, it is the wrong fix.
...
git-svn: trunk@4828
17 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
17 years ago
Török Edvin
e114b109c4
fix use of uninitialized value.
...
add test for STREAM.
fix missing closing pragmas.
git-svn: trunk@4810
17 years ago
Török Edvin
ef49ed625f
fix compiler warning
...
git-svn: trunk@4808
17 years ago
Török Edvin
625377ab50
add missing parameter
...
git-svn: trunk@4807
17 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
17 years ago
Török Edvin
5f6edb222c
ReadTimeout handling, and introduce CommandReadTimeout.
...
git-svn: trunk@4803
17 years ago
Török Edvin
80681b50c7
Initialize mutex.
...
Fix poll_fd to properly lock/unlock mutex.
This fixes the STREAM command.
git-svn: trunk@4787
17 years ago
Török Edvin
bfd89d7c84
fix Solaris build
...
git-svn: trunk@4776
17 years ago
Tomasz Kojm
086eab5c26
update old copyright headers
...
git-svn: trunk@4775
17 years ago
Török Edvin
034994bd9c
fdpassing is now in others.c instead of session.c, move
...
the defines.
git-svn: trunk@4774
17 years ago
Török Edvin
4cc952e322
add check for msg.controllen, apparently Mac OS X sets it to 0,
...
but CMSG_FIRSTHDR is not NULL!
git-svn: trunk@4761
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
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
d0f6ecae1c
Never close a file descriptor that is monitored using
...
poll()/select() from another thread.
It introduces subtle bugs.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4742 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
ae083d79ff
downgrade message
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4736 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
00eab4092f
clamd/others.c: handle multiple %v parameters
...
clamd/server-th.c: fix dbstat memleak
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4724 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago