| Server IP : 68.178.164.50 / Your IP : 216.73.216.142 Web Server : Apache System : Linux 50.164.178.68.host.secureserver.net 5.14.0-611.26.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jan 29 05:24:47 EST 2026 x86_64 User : rathinambschool ( 1053) PHP Version : 8.2.30 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/407308/root/usr/share/setroubleshoot/plugins/__pycache__/ |
Upload File : |
a
�Z`� � @ 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�Zed�Zed�ZdZ dZ
dd � Zd
d� ZdS )
�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 C s t �| t� d S )N)r �__init__�__name__)�self� r �,/usr/share/setroubleshoot/plugins/mounton.pyr 7 s zplugin.__init__c C s0 |� dg�r(|�dg�r(|�� r(| �� S d S d S )NZmount_tZmounton)Zmatches_source_typesZhas_any_access_inZpath_is_not_standard_directoryZreport)r Zavcr r r �analyze: s
��zplugin.analyzeN)
r �
__module__�__qualname__�_ZsummaryZproblem_descriptionZfix_descriptionZif_textZ then_textZdo_textZfix_cmdr r
r r r r r s r )�gettextZtranslationr
Zsetroubleshoot.utilZsetroubleshoot.Pluginr r r r r r �<module> s