Enhancement #2109

Antivirus: disable syslog messages

Added by Davide Principi almost 8 years ago. Updated almost 8 years ago.

Status:CLOSEDStart date:08/22/2013
Priority:NormalDue date:08/22/2013
Assignee:-% Done:

100%

Category:nethserver-antivirus
Target version:v6.4-beta2
Resolution: NEEDINFO:No

Description

Both clamd and freshclam send messages to syslog and their own log file.

Disable sending the same messages to syslog.


Related issues

Related to NethServer 6 - Enhancement #2062: Upgrade ClamAV to 0.97.8 CLOSED 08/19/2013 08/20/2013
Related to NethServer 6 - Enhancement #2093: amavisd-new 2.8.0 from EPEL CLOSED 08/19/2013 08/20/2013

Associated revisions

Revision a13c90d4
Added by Davide Principi almost 8 years ago

/etc/clamd.conf template: expand template on *update event. Refs #2109

Revision ebd0b9a5
Added by Davide Principi almost 8 years ago

/etc/freshclam.conf template: disable syslog messages. Refs #2109

History

#1 Updated by Davide Principi almost 8 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20
  • Estimated time changed from 2.00 to 1.50

#2 Updated by Davide Principi almost 8 years ago

  • Due date set to 08/22/2013
  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Davide Principi
  • Start date set to 08/22/2013
  • % Done changed from 20 to 30

#3 Updated by Davide Principi almost 8 years ago

  • Status changed from ON_DEV to MODIFIED
  • Assignee deleted (Davide Principi)
  • % Done changed from 30 to 60
Changes
  • Added /etc/clamd.conf template
  • Using default LogSyslog directive value in clamd.conf and freshclam.conf

Test case

After upgrading to modified version:
  • Check /etc/clamd.conf has been expanded and /var/log/messages doesn't receive anymore from clamd and freshclam

#4 Updated by Davide Principi almost 8 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing (updates QA #2093):
nethserver-antivirus-1.0.4-6.0gitebd0b9a5.ns6.noarch.rpm

#5 Updated by Giacomo Sanchietti almost 8 years ago

  • Assignee set to Giacomo Sanchietti

#6 Updated by Giacomo Sanchietti almost 8 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

Tested with packages nethserver-antivirus-1.0.4-7.0git75c4a2c6.ns6.noarch.

Logging to syslog is disabled:

[root@test t]# grep Syslog /etc/clamd.conf 
# LogSyslog yes                          # reset to clamd default Refs #2109

After clamd restart, no log on /var/log/messages.

Marking as VERIFIED.

#7 Updated by Davide Principi almost 8 years ago

  • Status changed from VERIFIED to CLOSED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-mail-common-1.3.1-1.ns6.noarch.rpm
nethserver-mail-filter-1.1.2-1.ns6.src.rpm
nethserver-mail-server-1.4.6-1.ns6.noarch.rpm
nethserver-antivirus-1.0.5-1.ns6.noarch.rpm

Dependencies:
unzoo-4.4-7.el6.x86_64.rpm
altermime-0.3.10-3.el6.x86_64.rpm
amavisd-new-2.8.0-4.el6.noarch.rpm
clamav-db-0.97.8-1.el6.x86_64.rpm
clamav-0.97.8-1.el6.x86_64.rpm
clamd-0.97.8-1.el6.x86_64.rpm
lrzip-0.614-1.el6.x86_64.rpm
p7zip-plugins-9.20.1-2.el6.x86_64.rpm
perl-DBD-SQLite-1.27-3.el6.x86_64.rpm
perl-Razor-Agent-2.85-6.el6.x86_64.rpm

Also available in: Atom PDF