← Back
Editing: sshd_root.cpython-312.pyc
� �Z`T � � � d dl Z e j dd�� Zej Zd dl� d dlmZ d dlZd dl� d dlZ G d� de� Z y) � Nzsetroubleshoot-pluginsT)�fallback)�*)�Pluginc �\ � e Zd Z ed� Z ed� Z ed� Z ed� ZdZd� Z d� Z y) �pluginzN SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH. z� SELinux denied access requested by $SOURCE. $TARGET_PATH may be mislabeled. sshd is allowed to read content in /root/.ssh directory if it is labeled correctly. z� You can restore the default system context to this file by executing the restorecon command. # restorecon -R /root/.ssh zyou must fix the labels.z/sbin/restorecon -Rv /root/.sshc �t � t j | t � d| _ d| _ t d� | _ y )N�yellowTzRestore Context)r �__init__�__name__�level�fixable�_�button_text)�selfs �./usr/share/setroubleshoot/plugins/sshd_root.pyr zplugin.__init__3 s, � �����h�'��� �����,�-��� c �� � |j dg� r_|j dg� rM|j dk( r>|j |j � r#|j ddg� r| j � S y )N�sshd_t�admin_home_tz /root/.ssh�file�dir)�matches_source_types�matches_target_types�tpath�all_accesses_are_in�read_file_perms� has_tclass_in�report)r �avcs r �analyzezplugin.analyze9 sd � ��$�$�h�Z�0��(�(�.�)9�:�� � �\�)��'�'��(;�(;�<��!�!�6�5�/�2��;�;�=� �r N)r � __module__�__qualname__r �summary�problem_description�fix_description� then_text�do_textr r � r r r r sP � �� � �G� � � �� � � �O� �,�-�I�/�G�.� r r ) �gettext�translationr �setroubleshoot.util�setroubleshoot.Pluginr �os�stat�selinuxr r( r r �<module>r0 sE ��* ��G��� 8�4�H�� ���� !� (� � � �#�V� #r
Save File
Cancel