File: //usr/share/setroubleshoot/plugins/sandbox_connect.pyo
�
c�L]c @ s^ d d l Z e j d d e �Z e j Z d d l Td d l m Z d e f d � � YZ d S( i����Ns setroubleshoot-pluginst fallback( t *( t Plugint pluginc B s\ e Z e d � Z e d � Z e d � Z d Z e d � Z e d � Z d � Z d � Z
RS( 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 within a sandbox.
If $SOURCE should be allowed to connect on $PORT_NUMBER, you need to use a different sandbox type like sandbox_web_t or sandbox_net_t.
# sandbox -X -t sandbox_net_t $SOURCE
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
# sandbox -X -t sandbox_net_t $SOURCE
t sI If you want to allow $SOURCE_PATH to connect to network port $PORT_NUMBERs� you need to modify the sandbox type. sandbox_web_t or sandbox_net_t.
For example:
sandbox -X -t sandbox_net_t $SOURCE_PATH
Please read 'sandbox' man page for more details.
c C s! t j | t � | j d � d S( NiK ( R t __init__t __name__t set_priority( t self( ( s4 /usr/share/setroubleshoot/plugins/sandbox_connect.pyR 7 s c C s2 | j d g � r. | j d g � r. | j � Sd S( Nt sandbox_x_client_tt name_connect( t matches_source_typest has_any_access_int reportt None( R t avc( ( s4 /usr/share/setroubleshoot/plugins/sandbox_connect.pyt analyze; s
( R t
__module__t _t summaryt problem_descriptiont fix_descriptiont fix_cmdt if_textt then_textR R ( ( ( s4 /usr/share/setroubleshoot/plugins/sandbox_connect.pyR s ( t gettextt translationt TrueR t setroubleshoot.utilt setroubleshoot.PluginR R ( ( ( s4 /usr/share/setroubleshoot/plugins/sandbox_connect.pyt <module> s