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

« back to all changes in this revision

Viewing changes to docs/html/node25.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>Clamuko</TITLE>
11
 
<META NAME="description" CONTENT="Clamuko">
 
10
<TITLE>Clam daemon</TITLE>
 
11
<META NAME="description" CONTENT="Clam daemon">
12
12
<META NAME="keywords" CONTENT="clamdoc">
13
13
<META NAME="resource-type" CONTENT="document">
14
14
<META NAME="distribution" CONTENT="global">
20
20
 
21
21
<LINK REL="next" HREF="node26.html">
22
22
<LINK REL="previous" HREF="node24.html">
23
 
<LINK REL="up" HREF="node22.html">
 
23
<LINK REL="up" HREF="node24.html">
24
24
<LINK REL="next" HREF="node26.html">
25
25
</HEAD>
26
26
 
27
27
<BODY >
28
28
 
29
29
<DIV CLASS="navigation"><!--Navigation Panel-->
30
 
<A NAME="tex2html506"
 
30
<A NAME="tex2html517"
31
31
  HREF="node26.html">
32
32
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
33
 
<A NAME="tex2html502"
34
 
  HREF="node22.html">
 
33
<A NAME="tex2html513"
 
34
  HREF="node24.html">
35
35
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
36
 
<A NAME="tex2html496"
 
36
<A NAME="tex2html507"
37
37
  HREF="node24.html">
38
38
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
39
 
<A NAME="tex2html504"
 
39
<A NAME="tex2html515"
40
40
  HREF="node1.html">
41
41
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
42
42
<BR>
43
 
<B> Next:</B> <A NAME="tex2html507"
44
 
  HREF="node26.html">Output format</A>
45
 
<B> Up:</B> <A NAME="tex2html503"
46
 
  HREF="node22.html">Usage</A>
47
 
<B> Previous:</B> <A NAME="tex2html497"
48
 
  HREF="node24.html">Clamdscan</A>
49
 
 &nbsp; <B>  <A NAME="tex2html505"
 
43
<B> Next:</B> <A NAME="tex2html518"
 
44
  HREF="node26.html">Clamdscan</A>
 
45
<B> Up:</B> <A NAME="tex2html514"
 
46
  HREF="node24.html">Usage</A>
 
47
<B> Previous:</B> <A NAME="tex2html508"
 
48
  HREF="node24.html">Usage</A>
 
49
 &nbsp; <B>  <A NAME="tex2html516"
50
50
  HREF="node1.html">Contents</A></B> 
51
51
<BR>
52
52
<BR></DIV>
53
53
<!--End of Navigation Panel-->
54
54
 
55
 
<H2><A NAME="SECTION00063000000000000000"></A><A NAME="clamuko"></A>
 
55
<H2><A NAME="SECTION00061000000000000000"></A><A NAME="clamd"></A>
56
56
<BR>
57
 
Clamuko
 
57
Clam daemon
58
58
</H2>
59
 
    Clamuko is a special thread in <code>clamd</code> that performs on-access
60
 
    scanning under Linux and FreeBSD and shares internal virus database
61
 
    with the daemon. <SPAN  CLASS="textbf">You must follow some important rules when
62
 
    using it:</SPAN>
63
 
    
64
 
<UL>
65
 
<LI>Always stop the daemon cleanly - using the SHUTDOWN command or
66
 
              the
67
 
<BR>
68
 
SIGTERM signal. In other case you can lose access
69
 
              to protected files until the system is restarted.
70
 
</LI>
71
 
<LI>Never protect the directory your mail-scanner software
72
 
              uses for attachment unpacking. Access to all infected
73
 
              files will be automatically blocked and the scanner (including
74
 
              <code>clamd</code>!) will not be able to detect any viruses. In the
75
 
              result <SPAN  CLASS="textbf">all infected mails may be delivered.</SPAN>
76
 
    
77
 
</LI>
78
 
</UL>
79
 
    For example, to protect the whole system add the following lines to
80
 
    <code>clamd.conf</code>:
81
 
    <PRE>
82
 
        ClamukoScanOnAccess
83
 
        ClamukoIncludePath /
84
 
        ClamukoExcludePath /proc
85
 
        ClamukoExcludePath /temporary/dir/of/your/mail/scanning/software
86
 
</PRE>
87
 
    You can also use clamuko to protect files on Samba/Netatalk but a far
88
 
    more better and safe idea is to use the <SPAN  CLASS="textbf">samba-vscan</SPAN> module.
89
 
    NFS is not supported because Dazuko doesn't intercept NFS access calls.
 
59
    <code>clamd</code> is a multi-threaded daemon that uses <SPAN  CLASS="textit">libclamav</SPAN>
 
60
    to scan files for viruses. It may work in one or both modes listening on:
 
61
    
 
62
<UL>
 
63
<LI>Unix (local) socket
 
64
</LI>
 
65
<LI>TCP socket
 
66
    
 
67
</LI>
 
68
</UL>
 
69
    The daemon is fully configurable via the <code>clamd.conf</code> file
 
70
    <A NAME="tex2html18"
 
71
  HREF="footnode.html#foot233"><SUP><SPAN CLASS="arabic">6</SPAN></SUP></A>. <code>clamd</code> recognizes the following commands:
 
72
    
 
73
<UL>
 
74
<LI><SPAN  CLASS="textbf">PING</SPAN>
 
75
<BR>
 
76
Check the daemon's state (should reply with "PONG").
 
77
</LI>
 
78
<LI><SPAN  CLASS="textbf">VERSION</SPAN>
 
79
<BR>
 
80
Print program and database versions.
 
81
</LI>
 
82
<LI><SPAN  CLASS="textbf">RELOAD</SPAN>
 
83
<BR>
 
84
Reload the databases.
 
85
</LI>
 
86
<LI><SPAN  CLASS="textbf">SHUTDOWN</SPAN>
 
87
<BR>
 
88
Perform a clean exit.
 
89
</LI>
 
90
<LI><SPAN  CLASS="textbf">SCAN file/directory</SPAN>
 
91
<BR>
 
92
Scan file or directory (recursively) with archive support
 
93
            enabled (a full path is required).
 
94
</LI>
 
95
<LI><SPAN  CLASS="textbf">RAWSCAN file/directory</SPAN>
 
96
<BR>
 
97
Scan file or directory (recursively) with archive and special file
 
98
            support disabled (a full path is required).
 
99
</LI>
 
100
<LI><SPAN  CLASS="textbf">CONTSCAN file/directory</SPAN>
 
101
<BR>
 
102
Scan file or directory (recursively) with archive support
 
103
            enabled and don't stop the scanning when a virus is found.
 
104
</LI>
 
105
<LI><SPAN  CLASS="textbf">MULTISCAN file/directory</SPAN>
 
106
<BR>
 
107
Scan file in a standard way or scan directory (recursively) using
 
108
            multiple threads (to make the scanning faster on SMP machines).
 
109
</LI>
 
110
<LI><SPAN  CLASS="textbf">STREAM</SPAN>
 
111
<BR>
 
112
Scan stream: <code>clamd</code> will return a new port number you should
 
113
            connect to and send data to scan.
 
114
</LI>
 
115
<LI><SPAN  CLASS="textbf">SESSION, END</SPAN>
 
116
<BR>
 
117
Start/end a <code>clamd</code> session - you can do multiple commands
 
118
            per TCP session (WARNING: due to the <code>clamd</code> implementation the
 
119
            <SPAN  CLASS="textbf">RELOAD</SPAN> command will break the session).
 
120
    
 
121
</LI>
 
122
</UL>
 
123
    and reacts on the special signals:
 
124
    
 
125
<UL>
 
126
<LI><SPAN  CLASS="textbf">SIGTERM</SPAN> - perform a clean exit
 
127
</LI>
 
128
<LI><SPAN  CLASS="textbf">SIGHUP</SPAN> - reopen the log file
 
129
</LI>
 
130
<LI><SPAN  CLASS="textbf">SIGUSR2</SPAN> - reload the database
 
131
    
 
132
</LI>
 
133
</UL>
90
134
 
91
135
<P>
92
 
<BR><HR>
 
136
 
 
137
<DIV CLASS="navigation"><HR>
 
138
<!--Navigation Panel-->
 
139
<A NAME="tex2html517"
 
140
  HREF="node26.html">
 
141
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
 
142
<A NAME="tex2html513"
 
143
  HREF="node24.html">
 
144
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
 
145
<A NAME="tex2html507"
 
146
  HREF="node24.html">
 
147
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
 
148
<A NAME="tex2html515"
 
149
  HREF="node1.html">
 
150
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A>  
 
151
<BR>
 
152
<B> Next:</B> <A NAME="tex2html518"
 
153
  HREF="node26.html">Clamdscan</A>
 
154
<B> Up:</B> <A NAME="tex2html514"
 
155
  HREF="node24.html">Usage</A>
 
156
<B> Previous:</B> <A NAME="tex2html508"
 
157
  HREF="node24.html">Usage</A>
 
158
 &nbsp; <B>  <A NAME="tex2html516"
 
159
  HREF="node1.html">Contents</A></B> </DIV>
 
160
<!--End of Navigation Panel-->
93
161
<ADDRESS>
94
162
Tomasz Kojm
95
 
2008-07-07
 
163
2008-09-01
96
164
</ADDRESS>
97
165
</BODY>
98
166
</HTML>