]> TLD Linux GIT Repositories - packages/clamav.git/blob - clamav-config.patch
- updated to 0.99.4
[packages/clamav.git] / clamav-config.patch
1 diff -ur clamav-0.98.orig/etc/clamav-milter.conf.sample clamav-0.98/etc/clamav-milter.conf.sample
2 --- clamav-0.98.orig/etc/clamav-milter.conf.sample      2013-09-16 19:28:14.000000000 +0000
3 +++ clamav-0.98/etc/clamav-milter.conf.sample   2013-09-21 11:55:39.030891567 +0000
4 @@ -3,7 +3,7 @@
5  ##
6  
7  # Comment or remove the line below.
8 -Example
9 +#Example
10  
11  
12  ##
13 @@ -17,12 +17,12 @@
14  # inet6:port@[hostname|ip-address] - to specify an ipv6 socket
15  #
16  # Default: no default
17 -#MilterSocket /tmp/clamav-milter.socket
18 +MilterSocket /var/lib/clamav/clamav-milter.socket
19  #MilterSocket inet:7357
20  
21  # Define the group ownership for the (unix) milter socket.
22  # Default: disabled (the primary group of the user running clamd)
23 -#MilterSocketGroup virusgroup
24 +#MilterSocketGroup clamav
25  
26  # Sets the permissions on the (unix) milter socket to the specified mode.
27  # Default: disabled (obey umask)
28 @@ -41,7 +41,7 @@
29  # Initialize supplementary group access (clamav-milter must be started by root).
30  #
31  # Default: no
32 -#AllowSupplementaryGroups no
33 +AllowSupplementaryGroups yes
34  
35  # Waiting for data from clamd will timeout after this time (seconds).
36  # Value of 0 disables the timeout.
37 @@ -64,7 +64,7 @@
38  # daemon (main thread).
39  #
40  # Default: disabled
41 -#PidFile /var/run/clamav-milter.pid
42 +PidFile /var/run/clamav/clamav-milter.pid
43  
44  # Optional path to the global temporary directory.
45  # Default: system specific (usually /tmp or /var/tmp).
46 @@ -90,7 +90,7 @@
47  # with the same socket: clamd servers will be selected in a round-robin fashion.
48  #
49  # Default: no default
50 -#ClamdSocket tcp:scanner.mydomain:7357
51 +ClamdSocket /var/lib/clamav/clamd.socket
52  
53  
54  ##
55 @@ -239,13 +239,13 @@
56  # Use system logger (can work together with LogFile).
57  #
58  # Default: no
59 -#LogSyslog yes
60 +LogSyslog yes
61  
62  # Specify the type of syslog messages - please refer to 'man syslog'
63  # for facility names.
64  #
65  # Default: LOG_LOCAL6
66 -#LogFacility LOG_MAIL
67 +LogFacility LOG_MAIL
68  
69  # Enable verbose logging.
70  #
71 diff -ur clamav-0.98.orig/etc/clamd.conf.sample clamav-0.98/etc/clamd.conf.sample
72 --- clamav-0.98.orig/etc/clamd.conf.sample      2013-09-16 19:28:14.000000000 +0000
73 +++ clamav-0.98/etc/clamd.conf.sample   2013-09-21 11:55:39.031891555 +0000
74 @@ -5,13 +5,13 @@
75  
76  
77  # Comment or remove the line below.
78 -Example
79 +#Example
80  
81  # Uncomment this option to enable logging.
82  # LogFile must be writable for the user running daemon.
83  # A full path is required.
84  # Default: disabled
85 -#LogFile /tmp/clamd.log
86 +#LogFile /var/log/clamd.log
87  
88  # By default the log file is locked for writing - the lock protects against
89  # running clamd multiple times (if want to run another clamd, please
90 @@ -41,12 +41,12 @@
91  
92  # Use system logger (can work together with LogFile).
93  # Default: no
94 -#LogSyslog yes
95 +LogSyslog yes
96  
97  # Specify the type of syslog messages - please refer to 'man syslog'
98  # for facility names.
99  # Default: LOG_LOCAL6
100 -#LogFacility LOG_MAIL
101 +LogFacility LOG_MAIL
102  
103  # Enable verbose logging.
104  # Default: no
105 @@ -63,7 +63,7 @@
106  # This option allows you to save a process identifier of the listening
107  # daemon (main thread).
108  # Default: disabled
109 -#PidFile /var/run/clamd.pid
110 +PidFile /var/run/clamav/clamd.pid
111  
112  # Optional path to the global temporary directory.
113  # Default: system specific (usually /tmp or /var/tmp).
114 @@ -82,11 +82,11 @@
115  
116  # Path to a local socket file the daemon will listen on.
117  # Default: disabled (must be specified by a user)
118 -#LocalSocket /tmp/clamd.socket
119 +LocalSocket /var/lib/clamav/clamd.socket
120  
121  # Sets the group ownership on the unix socket.
122  # Default: disabled (the primary group of the user running clamd)
123 -#LocalSocketGroup virusgroup
124 +#LocalSocketGroup clamav
125  
126  # Sets the permissions on the unix socket to the specified mode.
127  # Default: disabled (socket is world accessible)
128 @@ -191,11 +191,11 @@
129  
130  # Run as another user (clamd must be started by root for this option to work)
131  # Default: don't drop privileges
132 -#User clamav
133 +User clamav
134  
135  # Initialize supplementary group access (clamd must be started by root).
136  # Default: no
137 -#AllowSupplementaryGroups no
138 +AllowSupplementaryGroups yes
139  
140  # Stop daemon when libclamav reports out of memory condition.
141  #ExitOnOOM yes
142 diff -ur clamav-0.98.orig/etc/freshclam.conf.sample clamav-0.98/etc/freshclam.conf.sample
143 --- clamav-0.98.orig/etc/freshclam.conf.sample  2013-09-16 19:28:14.000000000 +0000
144 +++ clamav-0.98/etc/freshclam.conf.sample       2013-09-21 11:57:49.466891498 +0000
145 @@ -3,9 +3,11 @@
146  ## Please read the freshclam.conf(5) manual before editing this file.
147  ##
148  
149 +## TLD NOTE: freshclam is called periodically via cron, check
150 +## /etc/sysconfig/clamd for details.
151  
152  # Comment or remove the line below.
153 -Example
154 +#Example
155  
156  # Path to the database directory.
157  # WARNING: It must match clamd.conf's directive!
158 @@ -31,11 +33,11 @@
159  
160  # Enable verbose logging.
161  # Default: no
162 -#LogVerbose yes
163 +LogVerbose yes
164  
165  # Use system logger (can work together with UpdateLogFile).
166  # Default: no
167 -#LogSyslog yes
168 +LogSyslog yes
169  
170  # Specify the type of syslog messages - please refer to 'man syslog'
171  # for facility names.
172 @@ -53,7 +55,7 @@
173  # By default when started freshclam drops privileges and switches to the
174  # "clamav" user. This directive allows you to change the database owner.
175  # Default: clamav (may depend on installation options)
176 -#DatabaseOwner clamav
177 +DatabaseOwner clamav
178  
179  # Initialize supplementary group access (freshclam must be started by root).
180  # Default: no
181 @@ -114,7 +116,7 @@
182  
183  # Number of database checks per day.
184  # Default: 12 (every two hours)
185 -#Checks 24
186 +Checks 2
187  
188  # Proxy settings
189  # Default: disabled
190 @@ -136,7 +138,7 @@
191  
192  # Send the RELOAD command to clamd.
193  # Default: no
194 -#NotifyClamd /path/to/clamd.conf
195 +#NotifyClamd /etc/clamd.conf
196  
197  # Run command after successful database update.
198  # Default: disabled