~ubuntu-branches/ubuntu/quantal/lxc/quantal-201206191543

« back to all changes in this revision

Viewing changes to debian/lxc.apport

  • Committer: Serge Hallyn
  • Date: 2012-06-01 13:13:23 UTC
  • Revision ID: serge.hallyn@canonical.com-20120601131323-jlmzwgdbf25ryxq7
add apport hook

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'''apport package hook for lxc
 
2
 
 
3
(c) 2012 Canonical Ltd.
 
4
Author:
 
5
Serge Hallyn <serge.hallyn@ubuntu.com>
 
6
'''
 
7
 
 
8
from apport.hookutils import *
 
9
from os import path
 
10
import re
 
11
 
 
12
def add_info(report):
 
13
        attach_related_packages(report, ['dnsmasq', 'dnsmasq-base', 'libvirt-bin', 'apparmor', 'libapparmor1', 'apparmor-utils', 'auditd', 'libaudit0'])
 
14
        attach_mac_events(report)
 
15
        attach_upstart_overrides(report, lxc)
 
16
        command_output(['ls', '-ld', '/bin/sh'])
 
17
        attach_conffiles(report, 'lxc')
 
18
        recent_syslog(re.compile('*lxc*'))
 
19
        # should we attach all lxc apparmor files
 
20
        #command_output(['ls', '-l', '/etc/apparmor.d/lxc']
 
21
        #command_output(['cat', '/etc/apparmor.d/lxc/*']