← Back
Editing: mounton.cpython-312.opt-1.pyc
� �Z`� � �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� Z ed� Z ed� ZdZ dZ d� Zd � Zy )�pluginzt SELinux prevented $SOURCE from mounting on the file or directory "$TARGET_PATH" (type "$TARGET_TYPE"). a� SELinux prevented $SOURCE from mounting a filesystem on the file or directory "$TARGET_PATH" of type "$TARGET_TYPE". By default SELinux limits the mounting of filesystems to only some files or directories (those with types that have the mountpoint attribute). The type "$TARGET_TYPE" does not have this attribute. You can change the label of the file or directory. a( Changing the file_context to mnt_t will allow mount to mount the file system: "chcon -t mnt_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 mnt_t '$FIX_TARGET_PATH'" zEIf you want to allow $SOURCE_BASE_PATH to mount on $TARGET_BASE_PATH.z-you must change the labeling on $TARGET_PATH.zO# semanage fcontext -a -t mnt_t '$FIX_TARGET_PATH' # restorecon -v $TARGET_PATHzchcon -t mnt_t '$TARGET_PATH'c �8 � t j | t � y )N)r �__init__�__name__)�selfs �,/usr/share/setroubleshoot/plugins/mounton.pyr zplugin.__init__7 s � �����h�'� c � � |j dg� r2|j dg� r |j � r| j � S y )N�mount_t�mounton)�matches_source_types�has_any_access_in�path_is_not_standard_directory�report)r �avcs r �analyzezplugin.analyze: s= � ��$�$�i�[�1��!�!�9�+�.��.�.�0��;�;�=� �r N) r � __module__�__qualname__�_�summary�problem_description�fix_description�if_text� then_text�do_text�fix_cmdr r � r r r r sd � �� � �G� � � �� � � �O� �W�X�G��A�B�I� �G� .�G�(�r r )�gettext�translationr �setroubleshoot.util�setroubleshoot.Pluginr r r! r r �<module>r&