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/connect_ports.pyo
�
c�L]c@s^ddlZejdde�ZejZddlTddlmZdefd��YZdS(i����Nssetroubleshoot-pluginstfallback(t*(tPlugintplugincBs_eZed�Zed�Zed�ZdZed�ZdZd�Z	d�Z
d�ZRS(	sR
    SELinux is preventing $SOURCE_PATH from connecting to port $PORT_NUMBER.
    s�
    SELinux has denied $SOURCE from connecting to a network port $PORT_NUMBER which does not have an SELinux type associated with it.
    If $SOURCE should be allowed to connect on $PORT_NUMBER, use the <i>semanage</i> command to assign $PORT_NUMBER to a port type that $SOURCE_TYPE can connect to (%s).
    

If $SOURCE is not supposed
    to connect to $PORT_NUMBER, this could signal an intrusion attempt.
    s�
    If you want to allow $SOURCE to connect to $PORT_NUMBER, you can execute 

    # semanage port -a -t PORT_TYPE -p %s $PORT_NUMBER

    where PORT_TYPE is one of the following: %s.
    tsIIf you want to allow $SOURCE_PATH to connect to network port $PORT_NUMBERs!you need to modify the port type.cCsS|djd�}t|�dkr3td�|Std�|d|dfSdS(Nit,sc# semanage port -a -t PORT_TYPE -p %s $PORT_NUMBER
    where PORT_TYPE is one of the following: %s.s+# semanage port -a -t %s -p %s $PORT_NUMBERi(tsplittlent_(tselftavctoptionstports((s2/usr/share/setroubleshoot/plugins/connect_ports.pytget_do_text0s
cCs!tj|t�|jd�dS(Nid(Rt__init__t__name__tset_priority(R	((s2/usr/share/setroubleshoot/plugins/connect_ports.pyR8scCsr|jddddg�rn|jdg�rn|j�}|rn|j|jjd�ddj|�f�SndS(	Nthi_reserved_port_ttreserved_port_ttport_ttunreserved_port_ttname_connectRis, (tmatches_target_typesthas_any_access_intallowed_target_typestreportttclassRtjointNone(R	R
t
allowed_types((s2/usr/share/setroubleshoot/plugins/connect_ports.pytanalyze<s/(Rt
__module__Rtsummarytproblem_descriptiontfix_descriptiontfix_cmdtif_textt	then_textR
RR(((s2/usr/share/setroubleshoot/plugins/connect_ports.pyRs					(tgettextttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRR(((s2/usr/share/setroubleshoot/plugins/connect_ports.pyt<module>s