HEX
Server: Apache
System: Linux hp3-stn-1011028.hostingp3.local 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: csh958633 (951153)
PHP: 8.3.30
Disabled: shell_exec,exec,system,popen,set_time_limit
Upload Files
File: //usr/share/setroubleshoot/plugins/httpd_write_content.pyc
�
c�L]c@s^ddlZejdde�ZejZddlTddlmZdefd��YZdS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBs>eZed�ZdZed�ZdZd�Zd�ZRS(s�
    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.
    s1chcon -R -t httpd_sys_rw_content_t '$TARGET_PATH's2You need to change the label on '$FIX_TARGET_PATH'sf# semanage fcontext -a -t httpd_sys_rw_content_t '$FIX_TARGET_PATH'
# restorecon -v '$FIX_TARGET_PATH'cCs!tj|t�|jd�dS(Nid(Rt__init__t__name__tset_priority(tself((s8/usr/share/setroubleshoot/plugins/httpd_write_content.pyR,scCsf|jddg�rb|jdg�rb|jddg�rb|j|j|j�rb|j�SndS(Nthttpd_tthttpd_sys_script_tthttpd_sys_content_ttfiletdir(tmatches_source_typestmatches_target_typest
has_tclass_intall_accesses_are_intcreate_file_permstrw_dir_permstreporttNone(Rtavc((s8/usr/share/setroubleshoot/plugins/httpd_write_content.pytanalyze0s
(	Rt
__module__t_tproblem_descriptiontfix_cmdt	then_texttdo_textRR(((s8/usr/share/setroubleshoot/plugins/httpd_write_content.pyRs		(tgettextttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRR(((s8/usr/share/setroubleshoot/plugins/httpd_write_content.pyt<module>s