/usr/share/apport/package-hooks/source_clamav.py is in clamav-base 0.99.4+addedllvm-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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'])
|