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

If $SOURCE is not supposed
    to bind to $PORT_NUMBER, this could signal an intrusion attempt.
    sI
    If you want to allow $SOURCE to bind to port $PORT_NUMBER, you can execute 

    # semanage port -a -t PORT_TYPE -p %s $PORT_NUMBER
    
where PORT_TYPE is one of the following: %s.

    

If this system is running as an NIS Client, turning on the allow_ypbind boolean may fix the problem.  setsebool -P allow_ypbind=1.
    tsFIf you want to allow $SOURCE_PATH to bind 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((s//usr/share/setroubleshoot/plugins/bind_ports.pytget_do_text2s
cCs!tj|t�|jd�dS(Nid(Rt__init__t__name__tset_priority(R	((s//usr/share/setroubleshoot/plugins/bind_ports.pyR:scCsr|jddddg�rn|jdg�rn|j�}|rn|j|jjd�ddj|�f�SndS(	Nthi_reserved_port_ttreserved_port_ttport_ttunreserved_port_tt	name_bindRis, (tmatches_target_typesthas_any_access_intallowed_target_typestreportttclassRtjointNone(R	R
t
allowed_types((s//usr/share/setroubleshoot/plugins/bind_ports.pytanalyze>s/(Rt
__module__Rtsummarytproblem_descriptiontfix_descriptiontfix_cmdtif_textt	then_textR
RR(((s//usr/share/setroubleshoot/plugins/bind_ports.pyRs					(tgettextttranslationtTrueRtsetroubleshoot.utiltsetroubleshoot.PluginRR(((s//usr/share/setroubleshoot/plugins/bind_ports.pyt<module>s