← Back
Editing: cvs_data.cpython-312.pyc
� �Z`V � �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� Z ed� Z ed� Z ed� ZdZ dZ d� Zd � Zy )�pluginzS SELinux is preventing cvs ($SOURCE_PATH) "$ACCESS" access to $TARGET_PATH a SELinux denied cvs access to $TARGET_PATH. If this is a CVS repository it needs to have a file context label of cvs_data_t. If you did not intend to use $TARGET_PATH as a CVS repository it could indicate either a bug or it could signal an intrusion attempt. a You can alter the file context by executing chcon -R -t cvs_data_t '$TARGET_PATH' You must also change the default file context files on the system in order to preserve them even on a full relabel. "semanage fcontext -a -t cvs_data_t '$FIX_TARGET_PATH'" z8If $TARGET_BASE_PATH should be shared via the cvs daemonz2You need to change the label on $TARGET_BASE_PATH'zZ# semanage fcontext -a -t cvs_data_t '$FIX_TARGET_PATH' # restorecon -v '$FIX_TARGET_PATH'zj/usr/sbin/semanage fcontext -a -t cvs_data_t '$FIX_TARGET_PATH';/usr/sbin/restorecon -v '$FIX_TARGET_PATH'c �t � t j | t � d| _ t d� | _ d| _ y )NTzChange label�green)r �__init__�__name__�fixable�_�button_text�level)�selfs �-/usr/share/setroubleshoot/plugins/cvs_data.pyr zplugin.__init__3 s+ � �����h�'�����^�,����� � c �� � |j dg� r[|j |j |j z � r3|j ddg� r |j � r| j � S y )N�cvs_t�file�dir)�matches_source_types�all_accesses_are_in�create_file_perms�create_dir_perms� has_tclass_in�path_is_not_standard_directory�report)r �avcs r �analyzezplugin.analyze9 s^ � ��#�#�W�I�.��"�"�3�#8�#8�3�;O�;O�#O�P����f�e�_�-��-�-�/��;�;�=� �r N) r � __module__�__qualname__r �summary�problem_description�fix_description�if_text� then_text�do_text�fix_cmdr r � r r r r se � � � � �G� � � �� � � �O� �J�K�G��F�G�I�&�G� �G��r r )�gettext�translationr �setroubleshoot.util�setroubleshoot.Pluginr r r) r r �<module>r. s<