9 Sep 2009 00:37
[PATCH] Clamuko: DazukoFS support + fix reload race
John Ogness <dazukocode <at> ogness.net>
2009-09-08 22:37:14 GMT
2009-09-08 22:37:14 GMT
This is a patch against ClamAV 0.95.2 that introduces DazukoFS support for Clamuko. If /dev/dazukofs.ctrl is not found, it falls back to the original Clamuko (Dazuko) code. The following config options do not have any meaning with DazukoFS: ClamukoScanOnOpen, ClamukoScanOnClose, ClamukoScanOnExec, ClamukoIncludePath, ClamukoExcludePath If using DazukoFS with these options specified, a warning is logged. A new config option ClamukoScannerCount is also introduced (only for use with DazukoFS). It specifies how many scanner threads should be started for Clamuko. It defaults to 3. Note that no virus handling is supported with DazukoFS. File access can only be blocked. This is something that may be added later. This patch also fixes a race condition in clamd/server-th.c where Clamuko could scan files while the db was reloaded. This caused the the scanner thread to sit in cl_scandesc() with 100% CPU forever. Now a reload of Clamuko will be done cleanly. This patch has been tested on Linux/ppc 2.6.30.5 together with DazukoFS 3.1.0-rc2. Signed-off-by: John Ogness <dazukocode <at> ogness.net> --- clamd/Makefile.am | 4 clamd/Makefile.in | 14 ++- clamd/clamuko.c | 14 ++- clamd/clamukofs.c | 246 +++++++++++++++++++++++++++++++++++++++++++++++++++++(Continue reading)
RSS Feed