← Back
Editing: httpd_can_sendmail.cpython-312.opt-1.pyc
� �Z`� � � � d dl Z e j dd�� Zej Zd dl� d dlmZ d dlZ G d� de� Zy) � Nzsetroubleshoot-pluginsT)�fallback)�*)�Pluginc �p � e Zd Z ed� Z ed� Z ed� ZdZ ed� Z ed� Z dZ d� Zd � Zy )�pluginzB SELinux is preventing the http daemon from sending mail. z� SELinux has denied the http daemon from sending mail. An httpd script is trying to connect to a mail port or execute the sendmail command. If you did not setup httpd to sendmail, this could signal an intrusion attempt. zt If you want httpd to send mail you need to turn on the $BOOLEAN boolean: "setsebool -P $BOOLEAN=1" zsetsebool -P $BOOLEAN=1z'If you want to allow httpd to send mailz$you must setup SELinux to allow thisz!setsebool -P httpd_can_sendmail=1c �F � t j | t � d| _ y )N�green)r �__init__�__name__�level)�selfs �7/usr/share/setroubleshoot/plugins/httpd_can_sendmail.pyr zplugin.__init__3 s � �����h�'��� � c � � |j ddg� r0t j d|j � r| j � S y )N�httpd_t�httpd_sys_script_t�sendmail)�matches_source_types�re�search�source�report)r �avcs r �analyzezplugin.analyze7 s7 � ��#�#�Y�0D�$E�F��y�y��S�Z�Z�0��{�{�}�$�r N) r � __module__�__qualname__�_�summary�problem_description�fix_description�fix_cmd�if_text� then_text�do_textr r � r r r r s` � � � � �G� � � �� � � �O� (�G��9�:�G��8�9�I�1�G��r r )�gettext�translationr �setroubleshoot.util�setroubleshoot.Pluginr r r r% r r �<module>r* s? ��&