+
     6gq  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                   sT   a  ] tR t^t o ]! R4      tRt]! R4      tRtR t	R t
RtV tR# )	plugina  
    SELinux prevented httpd $ACCESS access to $TARGET_PATH.

    httpd scripts are not allowed to write to content without explicit
    labeling of all files.  If $TARGET_PATH is writable content. it needs
    to be labeled httpd_sys_rw_content_t or if all you need is append you can label it httpd_sys_ra_content_t.   Please refer to 'man httpd_selinux' for more information on setting up httpd and selinux.
    z1chcon -R -t httpd_sys_rw_content_t '$TARGET_PATH'z2You need to change the label on '$FIX_TARGET_PATH'zf# semanage fcontext -a -t httpd_sys_rw_content_t '$FIX_TARGET_PATH'
# restorecon -v '$FIX_TARGET_PATH'c                s^    \         P                  ! V \        4       V P                  ^d4       R# )id   N)r    __init____name__Zset_priority)selfs   &8/usr/share/setroubleshoot/plugins/httpd_write_content.pyr   Zplugin.__init__,   s    h'#    c                s   VP                  R R.4      '       dt   VP                  R.4      '       d\   VP                  RR.4      '       dC   VP                  VP                  VP
                  ,           4      '       d   V P                  4       # R# )Zhttpd_tZhttpd_sys_script_tZhttpd_sys_content_tZfileZdirN)Zmatches_source_typesZmatches_target_typesZhas_tclass_inZall_accesses_are_inZcreate_file_permsZrw_dir_permsZreport)r   Zavcs   &&r   analyzeZplugin.analyze0   st    $$i1E%FGG$$&;%<==vuo..&&s'<'<s?O?O'OPP{{}$r    N)r   Z
__module__Z__qualname__Z__firstlineno___Zproblem_descriptionZfix_cmdZ	then_textZdo_textr   r   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s>       	 BGFGI&G r   r   )ZgettextZtranslationr	   Zsetroubleshoot.utilZsetroubleshoot.Pluginr    r   r   r   r   <module>r
      s:   *  84H ! (V r   