HEX
Server: Apache/2.4.65 (Unix) OpenSSL/3.5.5
System: Linux cpanel.ns-taberra.com 5.14.0-681.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 11 20:19:22 UTC 2026 x86_64
User: asif201 (1002)
PHP: 8.3.0
Disabled: NONE
Upload Files
File: //usr/share/setroubleshoot/plugins/__pycache__/associate.cpython-39.pyc
a

�Z`��@s\ddlZejddd�ZejZddlTddlmZddlZddlTddlZGdd�de�Z	dS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@sHeZdZed�Zdd�Zed�Zdd�Zed�ZdZ	d	d
�Z
dd�Zd
S)�pluginzN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
    cCstd�|dS)Nz�
You tried to place a type on a %s that is not a file type.  This is not allowed, you must assigne a file type.  You can list all file types using the seinfo command.

seinfo -afile_type -x

    �)�_��self�avc�args�r�./usr/share/setroubleshoot/plugins/associate.py�get_problem_description$s�zplugin.get_problem_descriptionzpIf you want to change the label of $TARGET_PATH to %s, you are not allowed to since it is not a valid file type.cCs|j|dS)Nr)�if_textrrrr�get_if_text.szplugin.get_if_textz!you must pick a valid file label.zXselect a valid file type.  List valid file labels by executing: 
# seinfo -afile_type -xcCst�|t�|�d�dS)N�d)r�__init__�__name__Zset_priority)rrrrr4szplugin.__init__cCsL|jjtvrH|�dg�r*|�d|jjf�S|�dg�rH|�d|jjf�SdS)NZ	relabeltorZ	associate)Ztcontext�typeZ
file_typesZall_accesses_are_inZreportZscontext)rr	rrr�analyze8szplugin.analyzeN)r�
__module__�__qualname__rZsummaryr
rrZ	then_textZdo_textrrrrrrrsr)
�gettextZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginr�os�statZselinuxrrrrr�<module>s