← Back
Editing: rsync_data.cpython-312.opt-1.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� Z ed� ZdZ ed� Z ed� Z dZ d� Zd � Zy )�pluginzN SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH. a SELinux denied RSYNC access to $TARGET_PATH. If this is an RSYNC repository, it has to have a file context label of rsync_data_t. If you did not intend to use $TARGET_PATH as an RSYNC repository, this message could indicate either a bug or an intrusion attempt. a You can alter the file context by executing chcon -R -t rsync_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 rsync_data_t '$FIX_TARGET_PATH'" z'chcon -R -t rsync_data_t '$TARGET_PATH'z:If $TARGET_BASE_PATH should be shared via the RSYNC daemonz1You need to change the label on $TARGET_BASE_PATHz\# semanage fcontext -a -t rsync_data_t '$FIX_TARGET_PATH' # restorecon -v '$FIX_TARGET_PATH'c �F � t j | t � d| _ y )N�green)r �__init__�__name__�level)�selfs �//usr/share/setroubleshoot/plugins/rsync_data.pyr zplugin.__init__2 s � �����h�'��� � c � � |j dg� rn|j ddg� s[|j |j |j z � r3|j ddg� r |j � r| j � S y )N�rsync_t� samba_share_tzhttpd_.*_content_t�file�dir)�matches_source_types�matches_target_types�all_accesses_are_in�r_file_perms�r_dir_perms� has_tclass_in�path_is_not_standard_directory�report)r �avcs r �analyzezplugin.analyze6 sp � ��$�$�i�[�1��(�(�/�;O�)P�Q��#�#�C�$4�$4�s���$F�G����v�u�o�.��.�.�0��;�;�=� �r N) r � __module__�__qualname__�_�summary�problem_description�fix_description�fix_cmd�if_text� then_text�do_textr r � r r r r sb � � � � �G� � � �� � � �O� 8�G��L�M�G��E�F�I�&�G�� r r )�gettext�translationr! �setroubleshoot.util�setroubleshoot.Pluginr r r) r r �<module>r. s<