File: source_clamav.py

package info (click to toggle)
clamav 0.101.4+dfsg-0+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 29,564 kB
  • sloc: ansic: 158,978; sh: 8,178; cpp: 5,173; makefile: 2,088; yacc: 1,351; lex: 714; python: 120; perl: 17
file content (17 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (9)
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'])