Server IP : 184.154.167.98 / Your IP : 18.119.163.163 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/setroubleshoot/plugins/__pycache__/ |
Upload File : |
3 nm�aF � @ 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�ZdZdd� Zed�Z ed�Z d Zd d� ZdS ) �pluginzN SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH. ab SELinux denied access to $TARGET_PATH requested by $SOURCE. $TARGET_PATH has a context used for sharing by a different program. If you would like to share $TARGET_PATH from $SOURCE also, you need to change its file context to public_content_t. If you did not intend to allow this access, this could signal an intrusion attempt. a You can alter the file context by executing chcon -t public_content_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 public_content_t '$FIX_TARGET_PATH'" z(chcon -t public_content_t '$TARGET_PATH'c C s t j| t� | jd� d S )N� )r �__init__�__name__Zset_priority)�self� r �3/usr/share/setroubleshoot/plugins/public_content.pyr . s zplugin.__init__z8If you want to treat $TARGET_BASE_PATH as public contentz]You need to change the label on $TARGET_BASE_PATH to public_content_t or public_content_rw_t.z`# semanage fcontext -a -t public_content_t '$FIX_TARGET_PATH' # restorecon -v '$FIX_TARGET_PATH'c C sH |j ddddddg�r@|jddd g�r@|j|j|j �r@| j� S d S d S ) NZsmbd_tZhttpd_tZftpd_tZhttpd_sys_script_tZnfsd_tZrsync_tZ samba_share_tzhttpd_.*_content_tZrsync_data_t)Zmatches_source_typesZmatches_target_typesZall_accesses_are_inZr_file_permsZr_dir_permsZreport)r Zavcr r r �analyze8 s zplugin.analyzeN) r � __module__�__qualname__�_ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdr Zif_textZ then_textZdo_textr r r r r r s r )�gettextZtranslationr Zsetroubleshoot.utilZsetroubleshoot.Pluginr r r r r r �<module> s