]> git.pld-linux.org Git - packages/clamav.git/blame - clamav-pld_config.patch
- release 2 (by relup.sh)
[packages/clamav.git] / clamav-pld_config.patch
CommitLineData
75ee8714 1diff -ur clamav-0.97.1/etc//clamav-milter.conf clamav-0.97.1.new/etc//clamav-milter.conf
2--- clamav-0.97.1/etc//clamav-milter.conf 2011-01-10 18:48:28.000000000 +0100
3+++ clamav-0.97.1.new/etc//clamav-milter.conf 2011-07-14 18:24:02.801795736 +0200
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@@ -238,13 +238,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 #
71diff -ur clamav-0.97.1/etc//clamd.conf clamav-0.97.1.new/etc//clamd.conf
72--- clamav-0.97.1/etc//clamd.conf 2011-05-13 13:25:31.000000000 +0200
73+++ clamav-0.97.1.new/etc//clamd.conf 2011-07-14 18:19:05.824861957 +0200
0c604439 74@@ -5,13 +5,13 @@
5664ab19 75
c935072a
MK
76
77 # Comment or remove the line below.
78-Example
0c604439 79+#Example
c935072a
MK
80
81 # Uncomment this option to enable logging.
0c604439 82 # LogFile must be writable for the user running daemon.
83 # A full path is required.
84 # Default: disabled
c935072a 85-#LogFile /tmp/clamd.log
0c604439 86+#LogFile /var/log/clamd.log
c935072a
MK
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
20a53372 90@@ -40,12 +40,12 @@
c935072a
MK
91
92 # Use system logger (can work together with LogFile).
8934b66c
ER
93 # Default: no
94-#LogSyslog yes
95+LogSyslog yes
c935072a 96
7259763f 97 # Specify the type of syslog messages - please refer to 'man syslog'
0c604439 98 # for facility names.
20a53372
ER
99 # Default: LOG_LOCAL6
100-#LogFacility LOG_MAIL
101+LogFacility LOG_MAIL
102
103 # Enable verbose logging.
104 # Default: no
75ee8714 105@@ -58,7 +58,7 @@
0c604439 106 # This option allows you to save a process identifier of the listening
c935072a 107 # daemon (main thread).
0c604439 108 # Default: disabled
c935072a 109-#PidFile /var/run/clamd.pid
5664ab19
MK
110+PidFile /var/run/clamav/clamd.pid
111
112 # Optional path to the global temporary directory.
0c604439 113 # Default: system specific (usually /tmp or /var/tmp).
75ee8714 114@@ -77,11 +77,11 @@
ae1cf7f1
AZ
115
116 # Path to a local socket file the daemon will listen on.
117 # Default: disabled (must be specified by a user)
4a475f58 118-#LocalSocket /tmp/clamd.socket
ae1cf7f1
AZ
119+LocalSocket /var/lib/clamav/clamd.socket
120
4a475f58 121 # Sets the group ownership on the unix socket.
122 # Default: disabled (the primary group of the user running clamd)
75ee8714 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@@ -186,11 +186,11 @@
0c604439 129
e1ead9e8 130 # Run as another user (clamd must be started by root for this option to work)
8934b66c 131 # Default: don't drop privileges
c935072a
MK
132-#User clamav
133+User clamav
134
0c604439 135 # Initialize supplementary group access (clamd must be started by root).
8934b66c
ER
136 # Default: no
137-#AllowSupplementaryGroups no
138+AllowSupplementaryGroups yes
c935072a 139
8934b66c
ER
140 # Stop daemon when libclamav reports out of memory condition.
141 #ExitOnOOM yes
75ee8714 142@@ -443,15 +443,15 @@
0c604439 143
4a475f58 144 # Set access mask for Clamuko (Dazuko only).
8934b66c
ER
145 # Default: no
146-#ClamukoScanOnOpen yes
147-#ClamukoScanOnClose yes
148-#ClamukoScanOnExec yes
149+ClamukoScanOnOpen yes
150+ClamukoScanOnClose yes
151+ClamukoScanOnExec yes
0c604439 152
6e64bbee 153 # Set the include paths (all files inside them will be scanned). You can have
0c604439 154 # multiple ClamukoIncludePath directives but each directory must be added
4a475f58 155 # in a seperate line. (Dazuko only)
0c604439 156 # Default: disabled
157-#ClamukoIncludePath /home
158+ClamukoIncludePath /home
159 #ClamukoIncludePath /students
160
4a475f58 161 # Set the exclude paths. All subdirectories are also excluded. (Dazuko only)
75ee8714 162diff -ur clamav-0.97.1/etc//freshclam.conf clamav-0.97.1.new/etc//freshclam.conf
163--- clamav-0.97.1/etc//freshclam.conf 2011-01-10 18:48:28.000000000 +0100
164+++ clamav-0.97.1.new/etc//freshclam.conf 2011-07-14 18:14:32.705707450 +0200
4a475f58 165@@ -3,9 +3,14 @@
0c604439 166 ## Please read the freshclam.conf(5) manual before editing this file.
c935072a 167 ##
4a475f58 168
5664ab19
MK
169+## PLD NOTE: Note that freshclam is called periodically via cron
170+## Check /etc/sysconfig/clamd for details
171+## Seems better to run task once per period than keep daemon running
0c604439 172+## only for that.
5664ab19
MK
173+## But if you have arguments please tell us.
174
0c604439 175 # Comment or remove the line below.
176-Example
177+#Example
178
179 # Path to the database directory.
180 # WARNING: It must match clamd.conf's directive!
4a475f58 181@@ -30,11 +35,11 @@
5664ab19
MK
182
183 # Enable verbose logging.
8934b66c
ER
184 # Default: no
185-#LogVerbose yes
186+LogVerbose yes
5664ab19 187
0ad46739 188 # Use system logger (can work together with UpdateLogFile).
8934b66c
ER
189 # Default: no
190-#LogSyslog yes
191+LogSyslog yes
0ad46739 192
7259763f 193 # Specify the type of syslog messages - please refer to 'man syslog'
0c604439 194 # for facility names.
4a475f58 195@@ -48,7 +53,7 @@
0c604439 196 # By default when started freshclam drops privileges and switches to the
197 # "clamav" user. This directive allows you to change the database owner.
198 # Default: clamav (may depend on installation options)
5664ab19
MK
199-#DatabaseOwner clamav
200+DatabaseOwner clamav
201
8934b66c
ER
202 # Initialize supplementary group access (freshclam must be started by root).
203 # Default: no
75ee8714 204@@ -96,7 +101,7 @@
5664ab19 205
0c604439 206 # Number of database checks per day.
207 # Default: 12 (every two hours)
208-#Checks 24
5664ab19
MK
209+Checks 2
210
211 # Proxy settings
0c604439 212 # Default: disabled
75ee8714 213@@ -118,7 +123,7 @@
8934b66c
ER
214
215 # Send the RELOAD command to clamd.
216 # Default: no
217-#NotifyClamd /path/to/clamd.conf
38d9666e 218+#NotifyClamd /etc/clamd.conf
c935072a 219
0c604439 220 # Run command after successful database update.
221 # Default: disabled
This page took 0.086187 seconds and 4 git commands to generate.