HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/share/setroubleshoot/plugins/__pycache__/catchall_boolean.cpython-36.pyc
3

m��a��@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 tj|t�|jd�d|_dS)N�Zyellow)r�__init__�__name__Zset_priority�level)�self�r�5/usr/share/setroubleshoot/plugins/catchall_boolean.pyr6s
zplugin.__init__cCsHtj|d�}t|tj�s(tj|dd�}td�|dj�|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_textcCsVtd�|d}y,|dr:|ddkr:|td�|d7}Wntk
rPYnX|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_textDszplugin.get_then_textcCsv|j|jj�}t|j�dkrrg}|j}d}|j}x<|D]4}|sL|j|d�}|j|j|d|d|f��q6W|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