1 diff -urNp -x '*.orig' clamav-0.103.0.org/etc/clamav-milter.conf.sample clamav-0.103.0/etc/clamav-milter.conf.sample
2 --- clamav-0.103.0.org/etc/clamav-milter.conf.sample 2020-09-13 02:27:09.000000000 +0200
3 +++ clamav-0.103.0/etc/clamav-milter.conf.sample 2021-04-06 16:38:59.095023292 +0200
7 # Comment or remove the line below.
13 @@ -17,12 +17,12 @@ Example
14 # inet6:port@[hostname|ip-address] - to specify an ipv6 socket
17 -#MilterSocket /tmp/clamav-milter.socket
18 +MilterSocket /var/lib/clamav/clamav-milter.socket
19 #MilterSocket inet:7357
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
26 # Sets the permissions on the (unix) milter socket to the specified mode.
27 # Default: disabled (obey umask)
28 @@ -64,7 +64,7 @@ Example
29 # also owned by root to keep other users from tampering with it.
32 -#PidFile /var/run/clamav-milter.pid
33 +PidFile /var/run/clamav/clamav-milter.pid
35 # Optional path to the global temporary directory.
36 # Default: system specific (usually /tmp or /var/tmp).
37 @@ -91,7 +91,7 @@ Example
41 -#ClamdSocket tcp:scanner.mydomain:7357
42 +ClamdSocket unix:/var/lib/clamav/clamd.socket
46 @@ -241,13 +241,13 @@ Example
47 # Use system logger (can work together with LogFile).
53 # Specify the type of syslog messages - please refer to 'man syslog'
57 -#LogFacility LOG_MAIL
60 # Enable verbose logging.
62 diff -urNp -x '*.orig' clamav-0.103.0.org/etc/clamd.conf.sample clamav-0.103.0/etc/clamd.conf.sample
63 --- clamav-0.103.0.org/etc/clamd.conf.sample 2020-09-13 02:27:09.000000000 +0200
64 +++ clamav-0.103.0/etc/clamd.conf.sample 2021-04-06 16:38:59.095023292 +0200
68 # Comment or remove the line below.
72 # Uncomment this option to enable logging.
73 # LogFile must be writable for the user running daemon.
74 # A full path is required.
76 -#LogFile /tmp/clamd.log
77 +#LogFile /var/log/clamd.log
79 # By default the log file is locked for writing - the lock protects against
80 # running clamd multiple times (if want to run another clamd, please
81 @@ -41,12 +41,12 @@ Example
83 # Use system logger (can work together with LogFile).
88 # Specify the type of syslog messages - please refer to 'man syslog'
91 -#LogFacility LOG_MAIL
94 # Enable verbose logging.
96 @@ -74,7 +74,7 @@ Example
97 # It is recommended that the directory where this file is stored is
98 # also owned by root to keep other users from tampering with it.
100 -#PidFile /var/run/clamd.pid
101 +PidFile /var/run/clamav/clamd.pid
103 # Optional path to the global temporary directory.
104 # Default: system specific (usually /tmp or /var/tmp).
105 @@ -93,11 +93,11 @@ Example
107 # Path to a local socket file the daemon will listen on.
108 # Default: disabled (must be specified by a user)
109 -#LocalSocket /tmp/clamd.socket
110 +LocalSocket /var/lib/clamav/clamd.socket
112 # Sets the group ownership on the unix socket.
113 # Default: disabled (the primary group of the user running clamd)
114 -#LocalSocketGroup virusgroup
115 +#LocalSocketGroup clamav
117 # Sets the permissions on the unix socket to the specified mode.
118 # Default: disabled (socket is world accessible)
119 @@ -216,7 +216,7 @@ Example
121 # Run as another user (clamd must be started by root for this option to work)
122 # Default: don't drop privileges
126 # Stop daemon when libclamav reports out of memory condition.
128 diff -urNp -x '*.orig' clamav-0.103.0.org/etc/freshclam.conf.sample clamav-0.103.0/etc/freshclam.conf.sample
129 --- clamav-0.103.0.org/etc/freshclam.conf.sample 2020-09-13 02:27:09.000000000 +0200
130 +++ clamav-0.103.0/etc/freshclam.conf.sample 2021-04-06 16:38:59.095023292 +0200
132 ## Please read the freshclam.conf(5) manual before editing this file.
135 +## PLD NOTE: Note that freshclam is called periodically via cron
136 +## Check /etc/sysconfig/clamd for details
137 +## Seems better to run task once per period than keep daemon running
139 +## But if you have arguments please tell us.
141 # Comment or remove the line below.
145 # Path to the database directory.
146 # WARNING: It must match clamd.conf's directive!
147 @@ -35,7 +40,7 @@ Example
149 # Use system logger (can work together with UpdateLogFile).
154 # Specify the type of syslog messages - please refer to 'man syslog'
155 # for facility names.
156 @@ -61,7 +61,7 @@ LogSyslog yes
157 # By default when started freshclam drops privileges and switches to the
158 # "clamav" user. This directive allows you to change the database owner.
159 # Default: clamav (may depend on installation options)
160 -#DatabaseOwner clamav
161 +DatabaseOwner clamav
163 # Use DNS to verify virus database version. FreshClam uses DNS TXT records
164 # to verify database and software versions. With this directive you can change
165 @@ -115,7 +120,7 @@ DatabaseMirror database.clamav.net
167 # Number of database checks per day.
168 # Default: 12 (every two hours)
173 # The HTTPProxyServer may be prefixed with [scheme]:// to specify which kind
174 @@ -150,7 +150,7 @@ Checks 2
176 # Send the RELOAD command to clamd.
178 -#NotifyClamd /path/to/clamd.conf
179 +#NotifyClamd /etc/clamd.conf
181 # Run command after successful database update.
182 # Use EXIT_1 to return 1 after successful database update.