⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.32
Server IP:
15.204.235.159
Server:
Linux srv.techlup.co.ke 4.18.0-553.5.1.el8_10.x86_64 #1 SMP Wed Jun 5 09:12:13 EDT 2024 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
setroubleshoot
/
plugins
/
__pycache__
/
View File Name :
rsync_data.cpython-36.pyc
3 nm�a! � @ sD d dl Z e jddd�Zej Zd dlT d dlmZ G dd� de�ZdS ) � Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc @ sL e Zd Zed�Zed�Zed�ZdZed�Zed�Z dZ dd � Zd d� ZdS ) �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 C s t j| t� d| _d S )NZgreen)r �__init__�__name__�level)�self� r �//usr/share/setroubleshoot/plugins/rsync_data.pyr 2 s zplugin.__init__c C sT |j dg�rL|jddg� rL|j|j|j �rL|jddg�rL|j� rL| j� S d S d S )NZrsync_tZ samba_share_tzhttpd_.*_content_t�file�dir)Zmatches_source_typesZmatches_target_typesZall_accesses_are_inZr_file_permsZr_dir_permsZ has_tclass_inZpath_is_not_standard_directoryZreport)r Zavcr r r �analyze6 s zplugin.analyzeN) r � __module__�__qualname__�_ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZif_textZ then_textZdo_textr r r r r r r s r )�gettextZtranslationr Zsetroubleshoot.utilZsetroubleshoot.Pluginr r r r r r �<module> s