HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/setroubleshoot/plugins/__pycache__/catchall_boolean.cpython-39.opt-1.pyc
a

�Z`��@s\ddlZddlZddlZejddd�ZejZddlTddlmZddlZGdd�de�Z	dS)	�Nzsetroubleshoot-pluginsT)Zfallback)�*)�Pluginc@sPeZdZed�Zed�Zed�ZdZdd�Zdd�Z	d	d
�Z
dd�Zd
d�ZdS)�pluginzN
    SELinux is preventing $SOURCE_PATH "$ACCESS" access on $TARGET_PATH.
    a:

    SELinux denied access requested by $SOURCE. The current boolean
    settings do not allow this access.  If you have not setup $SOURCE to
    require this access this may signal an intrusion attempt. If you do intend
    this access you need to change the booleans on this system to allow
    the access.
    z�
    Confined processes can be configured to run requiring different access, SELinux provides booleans to allow you to turn on/off
    access as needed.

    �cCs t�|t�|�d�d|_dS)N�Zyellow)r�__init__�__name__Zset_priority�level)�self�r�5/usr/share/setroubleshoot/plugins/catchall_boolean.pyr6s
zplugin.__init__cCsHt�|d�}t|tj�s(tj|dd�}td�|d��|dd�S)Nr�utf8)�encodingzIf you want to %s�)�sepolicyZboolean_desc�
isinstance�sixZ	text_type�_�lower)r
�avc�argsZtxtrrr�get_if_text;szplugin.get_if_textcCstd�|d|dfS)Nzsetsebool -P %s %srr)r)r
rrrrr�get_do_textAszplugin.get_do_textcCsTtd�|d}z,|dr:|ddkr:|td�|d7}WntyNYn0|S)Nz?You must tell SELinux about this by enabling the '%s' boolean.
r��Nonez,You can read '%s' man page for more details.)r�
IndexError)r
rr�textrrr�
get_then_textDszplugin.get_then_textcCsr|�|jj�}t|j�dkrng}|j}d}|j}|D]4}|sJ|�|d�}|�|�|d|d|f��q4|SdS)Nrrr)Z
check_for_manZscontext�type�len�bools�fix_description�appendZreport)r
rZman_pageZreportsZfix�fix_cmdr �brrr�analyzeNs zplugin.analyzeN)
r�
__module__�__qualname__rZsummaryZproblem_descriptionr!r#rrrrr%rrrrr s	
r)
�gettext�osrZtranslationrZsetroubleshoot.utilZsetroubleshoot.Pluginrrrrrrr�<module>s