~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
'''apport package hook for clamav

(c) 2012 Canonical Ltd.
Author: Marc Deslauriers <marc.deslauriers@canonical.com>
'''

from apport.hookutils import *

def add_info(report):
    # Get configuration files
    attach_conffiles(report, 'clamav-freshclam')
    attach_conffiles(report, 'clamav-daemon')
    attach_file_if_exists(report, '/etc/clamav/clamd.conf')
    attach_file_if_exists(report, '/etc/clamav/freshclam.conf')

    # Get apparmor logs
    attach_mac_events(report, ['/usr/bin/freshclam', '/usr/sbin/clamd'])