Török Edvin
58b5cb19a6
fix poll, we add a new fd so we need to iterate on old nfds.
...
Various other work on recursion, unified scan, etc.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4635 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
dc3a1def55
acceptloop/recvloop as in bb #1339
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4624 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
cb95779e9c
remove fd from poll list, before closing it, handle EBADF in select.
...
If select/poll fails for reason other than EINTR, make that error fatal.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4623 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
aCaB
3ec259a602
preliminary zCMD sport
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4609 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
6eea8d4f3a
fix progexit handling. Now clamd should be able to handle most commands.
...
Except SESSION is probably broken now
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4601 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
4f5a740806
fix accept logic
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4600 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
0dc9d54110
implement common accept+recv loop
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4599 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
d2417fbf93
recvloop. This doesn't compile yet.
...
But perhaps it is more portable to use a single select for accept/recv, then
do accept on listen sockets, and recv on open sockets.
This should be more portable than select on a pipe.
We can also do the operation with one mutex less.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4598 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
3a14515741
accept thread continued
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4597 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
b080923b5a
new poll implementation start
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4596 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Tomasz Kojm
064b4a0c99
initial version of the unified option parser (bb#1215)
...
git-svn: trunk@4565
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
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
Török Edvin
deb3031222
mempool statistics support
...
git-svn: trunk@4344
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
e357da7b90
more leak fixes (bb #1141 )
...
git-svn: trunk@4127
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
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
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
17 years ago
Tomasz Kojm
9a03413e9b
clamscan, clamav-milter: catch and ignore SIGXFSZ; display warning if system limits are too restrictive (bb#994)
...
git-svn: trunk@4033
17 years ago
Török Edvin
4270f93bcc
(bb #913 , #916 )
...
17 years ago
Tomasz Kojm
5a66732fdc
clamd: revert patch from bb#1028 (bb#1113)
...
git-svn: trunk@4029
17 years ago
aCaB
5dcb8a7a81
bb#384
...
git-svn: trunk@4006
17 years ago
aCaB
cc4232a3b1
add some missing checks for pthread api calls - bb#384
...
git-svn: trunk@4004
17 years ago
Tomasz Kojm
29676a327f
improve handling of memory errors
...
git-svn: trunk@3964
17 years ago
Tomasz Kojm
6f2f04916d
libclamav, clamd: prune old lockdb code
...
git-svn: trunk@3955
17 years ago
Tomasz Kojm
04ba76d2cb
minimize memory fragmentation after db reload (bb#1028)
...
git-svn: trunk@3873
17 years ago
Tomasz Kojm
a9d3aa14cd
libclamunrar_iface, clamd, freshclam: merge win32 patches from NJH (bb#802)
...
git-svn: trunk@3872
17 years ago
aCaB
c6266a2c2c
bb#384
...
git-svn: trunk@3851
17 years ago
Tomasz Kojm
26fbf6bddf
DLP updates
...
git-svn: trunk@3798
17 years ago
Tomasz Kojm
77404545b3
fix compilation error on Tru64 (bb#829)
...
git-svn: trunk@3666
18 years ago
aCaB
d9844083b5
typo clamd limits
...
git-svn: trunk@3629
18 years ago
aCaB
23f5dfbd96
clamd options reordered
...
git-svn: trunk@3621
18 years ago
Tomasz Kojm
87e914447c
add missing mutex sync for progexit (bb#461)
...
git-svn: trunk@3610
18 years ago
aCaB
2455584143
sync to trunk
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3599 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Török Edvin
efac2f09b7
don't ignore SIGBUS, SIGFPE, SIGILL, and SIGSEGV.
...
POSIX says the behaviour is undefined if they are ignored.
(on HP-UX behaviour was: hang)
make BIGSTACK the default on HPUX
git-svn: trunk@3593
18 years ago
aCaB
281c7642fb
config
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3592 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
aCaB
d91ab809a2
initial rewrite of limits
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3591 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Török Edvin
9e751804a2
introduce cli_ctime() that uses ctime_r() when
...
available, and falls back to locking with a mutex around
ctime(). (ensures we are using the same mutex always).
use cli_ctime() instead of the thread-unsafe ctime().
This fixes stability problems.
git-svn: trunk@3578
18 years ago
aCaB
813864ce6b
(hopefully) all the stuff lost
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/not_for_0.92_tempbranch@3388 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Török Edvin
88c90922be
revert change from trunk and move to branch.
...
git-svn: trunk@3370
18 years ago
Török Edvin
a4e6ac4d78
remove "all domain scan" feature from phishcheck (--no-phishing-restrictedscan). Nobody is using it.
...
Don't care why an url is clean, just state it is clean.
Various cleanups resulting from this.
Prepare to introduce selective turn on of sub-features.
git-svn: trunk@3369
18 years ago
Tomasz Kojm
aae6f809b4
shutdown conn->sd when exiting scanner_thread() (bb#674)
...
git-svn: trunk@3274
18 years ago
Tomasz Kojm
09eab32afc
move hardware acceleration code to contrib/hwaccel/hwaccel.patch
...
git-svn: trunk@3209
18 years ago
Tomasz Kojm
082567c7f7
fix incorrect handling of SIGSEGV (bb#514)
...
git-svn: trunk@3070
18 years ago
Tomasz Kojm
692bda6847
prepare for enabling phishing code in non-experimental builds
...
git-svn: trunk@3042
18 years ago
Török Edvin
23fc1daa15
remove another cl_Experimental wrapper.
...
The phishcheck related cl_experimental to dconf changes are finished now.
They have also been tested against current experimental trunk,
and detection behaviour is the same.
In other words, phishcheck dconf changes are ready to be merged.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/temp_dconf_phishenable@2998 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Tomasz Kojm
b6e7566510
fix some mistakes, thx to TP
...
git-svn: trunk@2976
18 years ago
Tomasz Kojm
1095156aef
fix gcc -W* warnings
...
git-svn: trunk@2914
18 years ago