/usr/share/apport/package-hooks/source_lxc.py is in lxc-utils 3.0.0-0ubuntu2.
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 18 19 20 21 22 23 24 25 26 | '''apport package hook for lxc
(c) 2012 Canonical Ltd.
Author:
Serge Hallyn <serge.hallyn@ubuntu.com>
'''
from apport.hookutils import *
from os import path
import re
def add_info(report):
attach_related_packages(report, ['dnsmasq', 'dnsmasq-base', 'libvirt-bin', 'apparmor', 'libapparmor1', 'apparmor-utils', 'auditd', 'libaudit0'])
attach_mac_events(report)
attach_upstart_overrides(report, "lxc")
command_output(['ls', '-ld', '/bin/sh'])
attach_conffiles(report, 'lxc')
report["lxcsyslog"] = recent_syslog(re.compile("lxc"))
# should we attach all lxc apparmor files
#command_output(['ls', '-l', '/etc/apparmor.d/lxc']
#command_output(['cat', '/etc/apparmor.d/lxc/*']
attach_file_if_exists(report, '/etc/default/lxc-net', key='lxc-net.default')
attach_file_if_exists(report, '/etc/default/lxc', key='lxc.default')
attach_file_if_exists(report, '/etc/lxc/lxc.conf', key='lxc.conf')
attach_file_if_exists(report, '/etc/lxc/default.conf', key='defaults.conf')
attach_file_if_exists(report, '/etc/lxc/dnsmasq.conf', key='dnsmasq.conf')
|