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_unified.pyo
�
c�L]c@s`ddlZejdde�ZejZddlZddlmZdefd��YZdS(i����Nssetroubleshoot-pluginstfallback(tPlugintplugincBsbeZed�Zed�Zed�ZdZed�Zed�ZdZ	d�Z
d�ZRS(	s?
    SELinux prevented httpd $ACCESS access to http files.
    sW
    SELinux prevented httpd $ACCESS access to http files.

    Ordinarily httpd is allowed full access to all files labeled with http file
    context.  This machine has a tightened security policy with the $BOOLEAN
    turned off,  This requires explicit labeling of all files.  If a file is
    a cgi script it needs to be labeled with httpd_TYPE_script_exec_t in order
    to be executed.  If it is read only content, it needs to be labeled
    httpd_TYPE_content_t, it is writable content. it needs to be labeled
    httpd_TYPE_script_rw_t or httpd_TYPE_script_ra_t. You can use the
    chcon command to change these context.  Please refer to the man page
    "man httpd_selinux" or
    <a href="http://fedora.redhat.com/docs/selinux-apache-fc3">FAQ</a>
    "TYPE" refers to one of "sys", "user" or "staff" or potentially other
    script types.
    sg
    Changing the "$BOOLEAN" boolean to true will allow this access:
    "setsebool -P $BOOLEAN=1"
    ssetsebool -P $BOOLEAN=1scIf you want to allow httpd to execute cgi scripts and to unify HTTPD handling of all content files.s_you must tell SELinux about this by enabling the 'httpd_unified' and 'http_enable_cgi' booleanss1# setsebool -P httpd_unified=1 httpd_enable_cgi=1cCs!tj|t�|jd�dS(Ni(Rt__init__t__name__tset_priority(tself((s2/usr/share/setroubleshoot/plugins/httpd_unified.pyR=scCsj|jd�rf|jd�rf|jdks<|jdkrftjd�rftjd�rf|j�SdS(Nshttpd_t httpd_.*_script_ts	httpd_.*ttfiletdirt
httpd_unifiedthttpd_enable_cgi(tmatches_source_typestmatches_target_typesttclasstselinuxtsecurity_get_boolean_activetreporttNone(Rtavc((s2/usr/share/setroubleshoot/plugins/httpd_unified.pytanalyzeAs
(Rt
__module__t_tsummarytproblem_descriptiontfix_descriptiontfix_cmdtif_textt	then_texttdo_textRR(((s2/usr/share/setroubleshoot/plugins/httpd_unified.pyRs				(tgettextttranslationtTrueRRtsetroubleshoot.PluginRR(((s2/usr/share/setroubleshoot/plugins/httpd_unified.pyt<module>s