diff -Nru aiccu-20070115/debian/aiccu.install aiccu-20070115/debian/aiccu.install --- aiccu-20070115/debian/aiccu.install 2012-03-28 12:52:38.000000000 +0000 +++ aiccu-20070115/debian/aiccu.install 2012-06-13 12:54:35.000000000 +0000 @@ -1,3 +1,4 @@ doc/aiccu.conf usr/share/aiccu/conf-templates debian/brokers.list usr/share/aiccu/conf-templates debian/60aiccu etc/pm/sleep.d +debian/aiccu.py usr/share/apport/package-hooks diff -Nru aiccu-20070115/debian/aiccu.py aiccu-20070115/debian/aiccu.py --- aiccu-20070115/debian/aiccu.py 1970-01-01 00:00:00.000000000 +0000 +++ aiccu-20070115/debian/aiccu.py 2012-06-13 12:54:35.000000000 +0000 @@ -0,0 +1,26 @@ +from apport.hookutils import * + +def mask_string (str): + MASK = '##MASKED##' + return str.group(1) + MASK + +def mask_values(confinfo): + """ strip personal/private information from the conf entries """ + pattrn = re.compile ('((username|password|tunnel_id) )(.*)$', re.IGNORECASE) + newReport = "" + for line in confinfo.splitlines(): + line = pattrn.sub (mask_string, line) + newReport += line + '\n' + return newReport + +def add_info(report, ui=None): + attach_file_if_exists(report, '/var/log/aiccu.log', key='var.log.aiccu.log') + attach_file_if_exists(report, '/etc/aiccu.conf', key='etc.aiccu.conf') + try: + report['etc.aiccu.conf'] = mask_values(report['etc.aiccu.conf']) + except KeyError: + pass + try: + report['modified.conffile..etc.aiccu.conf'] = mask_values(report['modified.conffile..etc.aiccu.conf']) + except KeyError: + pass diff -Nru aiccu-20070115/debian/aiccu.upstart aiccu-20070115/debian/aiccu.upstart --- aiccu-20070115/debian/aiccu.upstart 2012-04-02 10:58:20.000000000 +0000 +++ aiccu-20070115/debian/aiccu.upstart 2012-07-03 07:01:26.000000000 +0000 @@ -65,8 +65,8 @@ # Workaround race with local DNS services server=$(grep "^server" /etc/aiccu.conf | awk '{ print $2 }') if [ -z "$server" ]; then - log "No server configuration specified" - exit 1 + log "No server configuration specified - defaulting to tic.sixxs.net" + server="tic.sixxs.net" fi log "Checking access to $server: " count=0 diff -Nru aiccu-20070115/debian/changelog aiccu-20070115/debian/changelog --- aiccu-20070115/debian/changelog 2012-04-02 10:51:53.000000000 +0000 +++ aiccu-20070115/debian/changelog 2012-07-03 07:01:37.000000000 +0000 @@ -1,3 +1,21 @@ +aiccu (20070115-14.1ubuntu3.2) precise-proposed; urgency=low + + * Fix upstart-script to honour default server tic.sixxs.net + (LP: #1007408) + + -- Lars Duesing Fri, 22 Jun 2012 16:11:05 +0200 + +aiccu (20070115-14.1ubuntu3.1) precise-security; urgency=low + + * SECURITY UPDATE: Remove personal data (username, password, tunnel_id) + in apport-reports (LP: #1001432) + - added debian/aiccu.py: added a specialized apport-hook which masks + the data before it is sent to launchpad. + - changed debian/aiccu.install: installs the apport-hook + * Add apport hook for /var/log/aiccu.log + + -- Lars Duesing Mon, 11 Jun 2012 15:31:22 +0200 + aiccu (20070115-14.1ubuntu3) precise; urgency=low [ Lars Duesing ]