⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
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
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 )