+
     6g  c                   s    ^ RI t ] P                  ! RRR7      t]P                   t^ RI5 ^ RIHt ^ RIt^ RI5 ^ RIt^ RIt ! R R]4      t	R# )	i    Nzsetroubleshoot-pluginsT)Zfallback)Z*)Pluginc                   s   a  ] tR t^ t o ]! R4      tRt]! R4      tR t]! R4      t	R t
]! R4      tRtR	 tR
 tRtV tR# )pluginzN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access to $TARGET_PATH.
    z/sbin/restorecon $SOURCE_PATHz
    You can restore the default system context to this file by executing the
    restorecon command.  restorecon '$SOURCE_PATH'.
    c                s4    \        R 4      V^,          ,          # )am  
    SELinux denied access requested by $SOURCE. $SOURCE_PATH may
    be mislabeled.  $SOURCE_PATH default SELinux type is
    <B>%s</B>, but its current type is <B>$SOURCE_TYPE</B>. Changing
    this file back to the default type may fix your problem.
    <p>
    This file could have been mislabeled either by user error, or if an normally confined application
    was run under the wrong domain.
    <p>
    However, this might also indicate a bug in SELinux because the file should not have been labeled
    with this type.
    <p>
    If you believe this is a bug, please file a bug report against this package.
    )_selfavcZargs   &&&6/usr/share/setroubleshoot/plugins/restorecon_source.pyget_problem_descriptionZplugin.get_problem_description,   s"      	 7 	    zGIf you want to fix the label. 
$SOURCE_PATH default label should be %s.c                s6    V P                   V^,          ,          # )i   )if_textr   r   r   get_if_textZplugin.get_if_text>   s    ||d1g%%r	   zyou can run restorecon.z"# /sbin/restorecon -v $SOURCE_PATHc                s    \         P                  ! V \        4       V P                  ^d4       RV n        RV n        \        R4      V n        R# )id   ZgreenTzRestore
ContextN)r    __init____name__Zset_prioritylevelfixabler   button_text)r   s   &r   r   Zplugin.__init__D   s:    h'#
-.r	   c                s   VP                   '       g   R # VP                  f   R # VP                  ^ ,          R8w  d   R #  \        P                  ! VP                  P	                  R4      \
        4      ^,          pVP                  R4      ^,          p\        P                  ! VP                  P	                  R4      4      ^,          pVP                  R4      ^,          pW58w  d   V P                  ^ V34      #  R #   \         d     R # i ; i)NZ/Z"Z:)
Zquery_environmentZspathselinuxZmatchpathconZstripZS_IFREGZsplitZ
getfileconZreportZOSError)r   r   ZmconZ	mcon_typeZgconZ	gcon_types   &&    r   analyzeZplugin.analyzeK   s    $$$T99T99Q<3t	''		(<gFqIDjjoa(I%%ciiooc&:;A>D

3*I%{{Ay>22 &
   		s    B9C= =DD)r   r   r   N)r   Z
__module__Z__qualname__Z__firstlineno__r   ZsummaryZfix_cmdZfix_descriptionr   r
   r   Z	then_textZdo_textr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r       sb       	G .G  	O
  Z[G& +,I2G/ r	   r   )
ZgettextZtranslationr   Zsetroubleshoot.utilZsetroubleshoot.Pluginr    ZosZstatr   r   ) r	   r   <module>r      sF   *  84H ! ( 	   :V :r	   