HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/setroubleshoot/plugins/__pycache__/rsync_data.cpython-39.pyc
a

�Z`!
�@sDddlZejddd�ZejZddlTddlmZGdd�de�ZdS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@sLeZdZed�Zed�Zed�ZdZed�Zed�Z	dZ
dd	�Zd
d�ZdS)
�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'cCst�|t�d|_dS)NZgreen)r�__init__�__name__�level)�self�r	�//usr/share/setroubleshoot/plugins/rsync_data.pyr2szplugin.__init__cCsR|�dg�rJ|�ddg�sJ|�|j|j�rJ|�ddg�rJ|��rJ|��SdSdS)NZrsync_tZ
samba_share_tzhttpd_.*_content_t�file�dir)Zmatches_source_typesZmatches_target_typesZall_accesses_are_inZr_file_permsZr_dir_permsZ
has_tclass_inZpath_is_not_standard_directoryZreport)rZavcr	r	r
�analyze6s����zplugin.analyzeN)
r�
__module__�__qualname__�_ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZif_textZ	then_textZdo_textrr
r	r	r	r
rsr)�gettextZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginrrr	r	r	r
�<module>s