HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //usr/share/setroubleshoot/plugins/__pycache__/httpd_can_sendmail.cpython-36.opt-1.pyc
3

nm�a��@sLddlZejddd�ZejZddlTddlmZddlZGdd�de�ZdS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@sLeZdZed�Zed�Zed�ZdZed�Zed�Z	dZ
dd	�Zd
d�ZdS)
�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=1cCstj|t�d|_dS)NZgreen)r�__init__�__name__�level)�self�r	�7/usr/share/setroubleshoot/plugins/httpd_can_sendmail.pyr3szplugin.__init__cCs(|jddg�r$tjd|j�r$|j�SdS)NZhttpd_tZhttpd_sys_script_tZsendmail)Zmatches_source_types�re�search�sourceZreport)rZavcr	r	r
�analyze7szplugin.analyzeN)
r�
__module__�__qualname__�_ZsummaryZproblem_descriptionZfix_descriptionZfix_cmdZif_textZ	then_textZdo_textrrr	r	r	r
rsr)�gettextZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginrrrr	r	r	r
�<module>s