source: pkg/security/vinnie/main/bind9/trunk/debian/bind9.apport @ 6990

Revision 6990, 1.1 KB checked in by alanbach-guest, 3 years ago (diff)
  • Added bind9 to vinnie-security
Line 
1#!/usr/bin/python
2
3'''apport hook for bind9
4
5(c) 2010 Andres Rodriguez.
6Author: Andres Rodriguez <andreserl@ubuntu.com>
7
8This program is free software; you can redistribute it and/or modify it
9under the terms of the GNU General Public License as published by the
10Free Software Foundation; either version 2 of the License, or (at your
11option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
12the full text of the license.
13'''
14
15from apport.hookutils import *
16import re
17
18def add_info(report, ui):
19    response = ui.yesno("The contents of your /etc/bind/named.conf file "
20                        "may help developers diagnose your bug more "
21                        "quickly.  However, it may contain sensitive "
22                        "information.  Do you want to include it in your "
23                        "bug report?")
24
25    if response == None: # user cancelled
26        raise StopIteration
27    elif response == True:
28        attach_conffiles(report,'bind9')
29
30    # getting syslog stuff
31    report['SyslogBind9'] = recent_syslog(re.compile(r'named\['))
32
33    # Attaching related packages info
34    attach_related_packages(report, ['bind9utils', 'apparmor'])
Note: See TracBrowser for help on using the repository browser.