/usr/share/apport/package-hooks/whoopsie.py is in whoopsie 0.2.24.5.
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 | #!/usr/bin/python
from glob import glob
from apport.hookutils import attach_file_if_exists, command_output
def add_info(report, ui):
log_file = '/var/log/upstart/whoopsie.log'
attach_file_if_exists(report, log_file, 'WhoopsieLog')
reports = glob('/var/crash/*')
if reports:
report['CrashReports'] = command_output(
['stat', '-c', '%a:%u:%g:%s:%y:%x:%n'] + reports)
|