← Back
Editing: selinuxpolicy.cpython-312.pyc
� �Z`_ � �x � d dl Z e j dd�� Zej Zd dl� d dlmZ G d� de� Zy) � Nzsetroubleshoot-pluginsT)�fallback)�*)�Pluginc �p � e Zd Z ed� Z ed� ZdZdZ ed� Z ed� Z ed� Z d� Zd� Zy ) �pluginz3 Your system may be seriously compromised! a� SELinux has prevented $SOURCE from modifying $TARGET. This denial indicates $SOURCE was trying to modify the selinux policy configuration. All applications that need this access should have already had policy written for them. If a compromised application tries to modify the SELinux policy this AVC will be generated. This is a serious issue. Your system may very well be compromised. z:Contact your security administrator and report this issue.� zUIf you do not think $SOURCE_BASE_PATH should try $ACCESS access on $TARGET_BASE_PATH.z]you may be under attack by a hacker, since confined applications should not need this access.c �F � t j | t � d| _ y )N�red)r �__init__�__name__�level)�selfs �2/usr/share/setroubleshoot/plugins/selinuxpolicy.pyr zplugin.__init__0 s � �����h�'��� � c � � |j dg� s|j � r#|j g d�� r| j � S y )N�write)�selinux_config_t�default_context_t�file_context_t�semanage_store_t�semanage_read_lock_t�semanage_trans_lock_t�load_policy_exec_t�setfiles_exec_t�checkpolicy_exec_t�newrole_exec_t�policy_src_t�restorecond_exec_t�run_init_exec_t�setsebool_exec_t�semanage_exec_t�selinux_var_lib_t)�has_any_access_in�open_with_write�matches_target_types�report)r �avcs r �analyzezplugin.analyze4 sA � � � "� "�G�9� -��1D�1D�1F��#�#� %&� '�$ �;�;�=� �r N) r � __module__�__qualname__�_�summary�problem_description�fix_description�fix_cmd�if_text� then_text�do_textr r( � r r r r s[ � � � � �G� � � �� S�O��G��g�h�G��q�r�I��L�M�G��r r )�gettext�translationr+ �setroubleshoot.util�setroubleshoot.Pluginr r r3 r r �<module>r8 s<