HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: //proc/self/root/usr/share/apport/package-hooks/source_clamav.py
'''apport package hook for clamav

(c) 2012 Canonical Ltd.
Author: Marc Deslauriers <[email protected]>
'''

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'])