⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.96
Server IP:
147.93.97.220
Server:
Linux srv843233 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
apport
/
package-hooks
/
View File Name :
source_apport.py
"""Apport package hook for apport itself. This adds /var/log/apport.log and the file listing in /var/crash to the report. """ # Copyright 2007 Canonical Ltd. # Author: Martin Pitt <martin.pitt@ubuntu.com> import glob import apport.hookutils APPORT_LOG = "/var/log/apport.log" def add_info(report): """Add Apport logs to the problem report.""" apport.hookutils.attach_file_if_exists(report, APPORT_LOG, "ApportLog") reports = glob.glob("/var/crash/*") if reports: report["CrashReports"] = apport.hookutils.command_output( ["stat", "-c", "%a:%u:%g:%s:%y:%x:%n"] + reports )