File: //usr/share/setroubleshoot/plugins/mounton.pyc
�
c�L]c @ s^ d d l Z e j d d e �Z e j Z d d l Td d l m Z d e f d � � YZ d S( i����Ns setroubleshoot-pluginst fallback( t *( t Plugint pluginc B sb e Z e d � Z e d � Z e d � Z e d � Z e d � Z d Z d Z d � Z
d � Z RS( st
SELinux prevented $SOURCE from mounting on the file or directory
"$TARGET_PATH" (type "$TARGET_TYPE").
s�
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.
s(
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'"
sE If you want to allow $SOURCE_BASE_PATH to mount on $TARGET_BASE_PATH.s- you must change the labeling on $TARGET_PATH.sO # semanage fcontext -a -t mnt_t '$FIX_TARGET_PATH'
# restorecon -v $TARGET_PATHs chcon -t mnt_t '$TARGET_PATH'c C s t j | t � d S( N( R t __init__t __name__( t self( ( s, /usr/share/setroubleshoot/plugins/mounton.pyR 7 s c C sB | j d g � r: | j d g � r: | j � r: | j � Sd Sd S( Nt mount_tt mounton( t matches_source_typest has_any_access_int path_is_not_standard_directoryt reportt None( R t avc( ( s, /usr/share/setroubleshoot/plugins/mounton.pyt analyze: s
( R t
__module__t _t summaryt problem_descriptiont fix_descriptiont if_textt then_textt do_textt fix_cmdR R ( ( ( s, /usr/share/setroubleshoot/plugins/mounton.pyR s ( t gettextt translationt TrueR t setroubleshoot.utilt setroubleshoot.PluginR R ( ( ( s, /usr/share/setroubleshoot/plugins/mounton.pyt <module> s