| Revision 6990,
1.1 KB
checked in by alanbach-guest, 2 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. |
|---|
| 6 | Author: Andres Rodriguez <andreserl@ubuntu.com> |
|---|
| 7 | |
|---|
| 8 | This program is free software; you can redistribute it and/or modify it |
|---|
| 9 | under the terms of the GNU General Public License as published by the |
|---|
| 10 | Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 11 | option) any later version. See http://www.gnu.org/copyleft/gpl.html for |
|---|
| 12 | the full text of the license. |
|---|
| 13 | ''' |
|---|
| 14 | |
|---|
| 15 | from apport.hookutils import * |
|---|
| 16 | import re |
|---|
| 17 | |
|---|
| 18 | def 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.