File: source_clamav.py

package info (click to toggle)
clamav 0.99%2Bdfsg-0%2Bdeb6u1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 63,444 kB
  • ctags: 51,567
  • sloc: cpp: 267,214; ansic: 163,108; sh: 35,371; python: 2,630; makefile: 2,249; perl: 1,690; yacc: 1,352; pascal: 1,218; lex: 714; lisp: 184; csh: 117; xml: 38; asm: 32; exp: 4
file content (17 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (10)
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'])