+
     6g  c                   sz    ^ RI t ] P                  ! RRR7      t]P                   t^ RI5 ^ RIHt  ! R R]4      tR# )	i    Nzsetroubleshoot-pluginsT)Zfallback)Z*)Pluginc                   sv   a  ] tR t^t o ]! R4      t]! R4      t]! R4      tRt]! R4      t	R t
R tR tR	tV tR
# )pluginzV
    SELinux is preventing Samba ($SOURCE_PATH) "$ACCESS" access to $TARGET_PATH.
    a  
    SELinux denied samba access to $TARGET_PATH.
    If you want to share this directory with samba it has to have a file context label of
    samba_share_t. If you did not intend to use $TARGET_PATH as a samba repository,
    this message could indicate either a bug or an intrusion attempt.
    Please refer to 'man samba_selinux' for more information on setting up Samba and SELinux.
    a  
    You can alter the file context by executing chcon -R -t samba_share_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 samba_share_t '$FIX_TARGET_PATH'"
    z(chcon -R -t samba_share_t '$TARGET_PATH'z2You need to change the label on '$FIX_TARGET_PATH'c                sF    R pR pVR8X  d   RpRp\        R4      W43,          # )Z dirz(/.*)?z-Rzb# semanage fcontext -a -t samba_share_t '$FIX_TARGET_PATH%s'
# restorecon %s -v '$FIX_TARGET_PATH')_)selfavctclassZdpathZrflags   &&&  0/usr/share/setroubleshoot/plugins/samba_share.pyget_do_textZplugin.get_do_text.   s9    U?EE ) *-2N; 	;    c                s^    \         P                  ! V \        4       V P                  ^34       R# )i3   N)r    __init____name__Zset_priority)r   s   &r   r
   Zplugin.__init__8   s    h'"r	   c                s`   VP                  R .4      '       d   VP                  . RO4      '       g}   VP                  VP                  VP                  ,           4      '       dK   VP                  RR.4      '       d2   VP                  4       '       d   V P                  VP                  4      # R# )Zsmbd_tZfiler   N)zhttpd_.*_content_tZrsync_data_tZhome_root_tz.*_home_dir_tz	.*_home_t)	Zmatches_source_typesZmatches_target_typesZall_accesses_are_inZcreate_file_permsZcreate_dir_permsZhas_tclass_inZpath_is_not_standard_directoryZreportr   )r   r   s   &&r   analyzeZplugin.analyze<   s    $$hZ00(()|}}##C$9$9C<P<P$PQQvuo....00;;szz**r	    N)r   Z
__module__Z__qualname__Z__firstlineno__r   ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZ	then_textr   r
   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s]       	G   	   	O
 9GFGI;	 	r	   r   )ZgettextZtranslationr   Zsetroubleshoot.utilZsetroubleshoot.Pluginr    r   r   r	   r   <module>r      s:   &  84H ! (+V +r	   