HEX
Server: LiteSpeed
System: Linux php-prod-1.spaceapp.ru 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
User: xnsbb3110 (1041)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //proc/676643/root/lib/python3/dist-packages/apparmor/__pycache__/fail.cpython-310.pyc
o

%`b	�@sTddlmZddlZddlZddlZddlZddlZddlmZdd�Z	dd�Z
dS)�)�print_functionN)�errorcGs�|\}}}|jdkrtdtjd�t|j�dStjddd�\}}t�	|d�}t
jd|d	d
d�}|�|�|�
d�|�
d
�td�tj|��tjd�tdtjd�tdtjd�tdtjd�td|tjd�tdtjd�tdtjd�dS)ayUsed as exception handler in the aa-* tools.
       For AppArmorException (used for profile syntax errors etc.), print only the exceptions
       value because a backtrace is superfluous and would confuse users.
       For other exceptions, print backtrace and save detailed information in a file in /tmp/
       (including variable content etc.) to make debugging easier.
    �AppArmorException�)�filezapparmor-bugreport-z.txt)�prefix�suffix�w��text�
)�displayr�format�contextzQPlease consider reporting a bug at https://gitlab.com/apparmor/apparmor/-/issues
zand attach this file.
zAn unexpected error occoured!zFor details, see %szPPlease consider reporting a bug at https://gitlab.com/apparmor/apparmor/-/issueszand attach this file.N)�__name__�print�sys�stderrr�value�tempfile�mkstemp�os�fdopen�cgitb�Hook�handle�write�join�	traceback�format_exception)�exc_info�ex_cls�ex�tb�fd�pathr�
cgitb_hook�r'�//usr/lib/python3/dist-packages/apparmor/fail.py�handle_exceptions"




r)cCs
tt_dS)z-Setup handle_exception() as exception handlerN)r)r�
excepthookr'r'r'r(�enable_aa_exception_handler7s
r+)�
__future__rrrrrr�apparmor.commonrr)r+r'r'r'r(�<module>s