~ubuntu-branches/ubuntu/raring/clamav/raring

« back to all changes in this revision

Viewing changes to docs/html/node19.html

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran
  • Date: 2008-09-05 17:25:34 UTC
  • mfrom: (0.35.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080905172534-yi3f8fkye1o7u1r3
* New upstream version (closes: #497662, #497773)
  - lots of new options for clamd.conf
  - fixes CVEs CVE-2008-3912, CVE-2008-3913, CVE-2008-3914, and
    CVE-2008-1389
* No longer supports --unzip option, so typo is gone (closes: #496276)
* Translations:
  - sv (thanks Martin Bagge <brother@bsnet.se>) (closes: #491760)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
8
8
<HTML>
9
9
<HEAD>
10
 
<TITLE>Testing</TITLE>
11
 
<META NAME="description" CONTENT="Testing">
 
10
<TITLE>On-access scanning</TITLE>
 
11
<META NAME="description" CONTENT="On-access scanning">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
18
18
 
19
19
<LINK REL="STYLESHEET" HREF="clamdoc.css">
20
20
 
21
 
<LINK REL="next" HREF="node20.html">
22
21
<LINK REL="previous" HREF="node18.html">
23
 
<LINK REL="up" HREF="node15.html">
 
22
<LINK REL="up" HREF="node18.html">
24
23
<LINK REL="next" HREF="node20.html">
25
24
</HEAD>
26
25
 
27
26
<BODY >
28
27
 
29
28
<DIV CLASS="navigation"><!--Navigation Panel-->
30
 
<A NAME="tex2html431"
 
29
<A NAME="tex2html442"
31
30
  HREF="node20.html">
32
31
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
33
 
<A NAME="tex2html427"
34
 
  HREF="node15.html">
 
32
<A NAME="tex2html438"
 
33
  HREF="node18.html">
35
34
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html421"
 
35
<A NAME="tex2html434"
37
36
  HREF="node18.html">
38
37
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html429"
 
38
<A NAME="tex2html440"
40
39
  HREF="node1.html">
41
40
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
42
41
<BR>
43
 
<B> Next:</B> <A NAME="tex2html432"
44
 
  HREF="node20.html">Setting up auto-updating</A>
45
 
<B> Up:</B> <A NAME="tex2html428"
46
 
  HREF="node15.html">Configuration</A>
47
 
<B> Previous:</B> <A NAME="tex2html422"
48
 
  HREF="node18.html">clamav-milter</A>
49
 
 &nbsp; <B>  <A NAME="tex2html430"
 
42
<B> Next:</B> <A NAME="tex2html443"
 
43
  HREF="node20.html">clamav-milter</A>
 
44
<B> Up:</B> <A NAME="tex2html439"
 
45
  HREF="node18.html">clamd</A>
 
46
<B> Previous:</B> <A NAME="tex2html435"
 
47
  HREF="node18.html">clamd</A>
 
48
 &nbsp; <B>  <A NAME="tex2html441"
50
49
  HREF="node1.html">Contents</A></B> 
51
50
<BR>
52
51
<BR></DIV>
53
52
<!--End of Navigation Panel-->
54
53
 
55
 
<H2><A NAME="SECTION00053000000000000000">
56
 
Testing</A>
57
 
</H2>
58
 
    Try to scan recursively the source directory:
59
 
    <PRE>
60
 
        $ clamscan -r -l scan.txt clamav-x.yz
61
 
</PRE>
62
 
    It should find some test files in the clamav-x.yz/test directory.
63
 
    The scan result will be saved in the <code>scan.txt</code> log file
64
 
    <A NAME="tex2html9"
65
 
  HREF="footnode.html#foot177"><SUP><SPAN CLASS="arabic">4</SPAN></SUP></A>.
66
 
    To test <code>clamd</code>, start it and use <code>clamdscan</code> (or instead connect
67
 
    directly to its socket and run the SCAN command):
68
 
    <PRE>
69
 
        $ clamdscan -l scan.txt clamav-x.yz
70
 
</PRE>
71
 
    Please note that the scanned files must be accessible by the user running
72
 
    <code>clamd</code> or you will get an error.
 
54
<H3><A NAME="SECTION00051100000000000000">
 
55
On-access scanning</A>
 
56
</H3>
 
57
    One of the interesting features of <code>clamd</code> is on-access scanning
 
58
    based on the Dazuko module, available from <TT><A NAME="tex2html13"
 
59
  HREF="http://dazuko.org/">http://dazuko.org/</A></TT>.
 
60
    <SPAN  CLASS="textbf">This module is not required to run clamd - furthermore, you
 
61
    shouldn't run Dazuko on production systems</SPAN>. At the moment Dazuko is
 
62
    avaliable for Linux and FreeBSD, but the following information only covers
 
63
    Linux.
 
64
    <PRE>
 
65
        $ tar zxpvf dazuko-a.b.c.tar.gz
 
66
        $ cd dazuko-a.b.c
 
67
        $ make dazuko
 
68
        or
 
69
        $ make dazuko-smp (for smp kernels)
 
70
        $ su
 
71
        # insmod dazuko.o
 
72
        # cp dazuko.o /lib/modules/`uname -r`/misc
 
73
        # depmod -a
 
74
</PRE>
 
75
    Depending on your Linux distribution you may need to add a "dazuko" entry to
 
76
    <SPAN  CLASS="textit">/etc/modules</SPAN> or run the module during system's startup by adding
 
77
    <PRE>
 
78
        /sbin/modprobe dazuko
 
79
</PRE>
 
80
    to some startup file. You must also create a new device:
 
81
    <PRE>
 
82
        $ cat /proc/devices | grep dazuko
 
83
        254 dazuko
 
84
        $ su -c "mknod -m 600 /dev/dazuko c 254 0"
 
85
</PRE>
 
86
    Now configure Clamuko in <code>clamd.conf</code> and read the <A HREF="node27.html#clamuko">5.3</A>
 
87
    section.
73
88
 
74
89
<P>
75
90
<BR><HR>
76
91
<ADDRESS>
77
92
Tomasz Kojm
78
 
2008-07-07
 
93
2008-09-01
79
94
</ADDRESS>
80
95
</BODY>
81
96
</HTML>