← Back
Editing: sandbox_connect.cpython-312.opt-1.pyc
� �Z`� � �x � d dl Z e j dd�� Zej Zd dl� d dlmZ G d� de� Zy) � Nzsetroubleshoot-pluginsT)�fallback)�*)�Pluginc �l � e Zd Z ed� Z ed� Z ed� ZdZ ed� Z ed� Z d� Z d� Zy ) �pluginzR SELinux is preventing $SOURCE_PATH from connecting to port $PORT_NUMBER. a� 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. z~ If you want to allow $SOURCE to connect to $PORT_NUMBER, you can execute # sandbox -X -t sandbox_net_t $SOURCE � zIIf you want to allow $SOURCE_PATH to connect to network port $PORT_NUMBERz�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 �Z � t j | t � | j d� y )N�K )r �__init__�__name__�set_priority)�selfs �4/usr/share/setroubleshoot/plugins/sandbox_connect.pyr zplugin.__init__7 s � �����h�'����"�� c �l � |j dg� r"|j dg� r| j � S y )N�sandbox_x_client_t�name_connect)�matches_source_types�has_any_access_in�report)r �avcs r �analyzezplugin.analyze; s4 � ��$�$�&:�%;�<��!�!�>�"2�3��;�;�=� �r N)r � __module__�__qualname__�_�summary�problem_description�fix_description�fix_cmd�if_text� then_textr r � r r r r s_ � � � � �G� � � �� � � �O� �G��[�\�G�� � �I��r r )�gettext�translationr �setroubleshoot.util�setroubleshoot.Pluginr r r"