← Back
Editing: public_content.cpython-312.opt-1.pyc
� �Z`F � �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� ZdZd� Z ed� Z ed� Z dZd � Zy )�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 �Z � t j | t � | j d� y )N� )r �__init__�__name__�set_priority)�selfs �3/usr/share/setroubleshoot/plugins/public_content.pyr zplugin.__init__. s � �����h�'����!�� 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 � � |j g d�� rK|j g d�� r8|j |j |j z � r| j � S y )N)�smbd_t�httpd_t�ftpd_t�httpd_sys_script_t�nfsd_t�rsync_t)� samba_share_tzhttpd_.*_content_t�rsync_data_t)�matches_source_types�matches_target_types�all_accesses_are_in�r_file_perms�r_dir_perms�report)r �avcs r �analyzezplugin.analyze8 sL � ��$�$�%o�p��$�$�%\�]��#�#�C�$4�$4�s���$F�G��;�;�=� �r N) r � __module__�__qualname__�_�summary�problem_description�fix_description�fix_cmdr �if_text� then_text�do_textr � r r r r sd � � � � �G� � � �� � � �O� 9�G�� �J�K�G��q�r�I�&�G�r r )�gettext�translationr# �setroubleshoot.util�setroubleshoot.Pluginr r r+ r r �<module>r0 s<