Hacked By AnonymousFox

Current Path : /opt/imunify360/venv/share/imunify360/config_schema/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/share/imunify360/config_schema/__pycache__/antivirus.cpython-311.pyc

�

L�g�=��\�dZddlZd\ZZZd\ZZZZdZ	dZ
dZdZdZ
dZd�Zd	�Zd
�Zd�ZdS)u

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.


This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See the GNU General Public License for more details.


You should have received a copy of the GNU General Public License
 along with this program.  If not, see <https://www.gnu.org/licenses/>.

Copyright © 2019 Cloud Linux Software Inc.

This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
�N)�notify�cleanup�cleanup_on_schedule)�none�day�week�month�i��c����fd�}|S)Nc�"��|�|S�|��S�N�)�value�coerces ��@/opt/imunify360/venv/share/imunify360/config_schema/antivirus.py�fznullable.<locals>.f*s����=��L��v�e�}�}��r)rrs` r�nullabler)s#��������

�Hrc�j�tj�d��s|Sd|vr
|dsd|d<|S)zA
    To prevent turning off MyImunify if feature flag exists
    z'/var/imunify360/myimunify-freemium.flag�enableT)�os�path�exists)�	myimunifys r�myimunify_rulesr1sF���7�>�>�C�D�D�����9���Y�x�%8��"�	�(���rc���ddtddd�ddd�dd	d�d
�id�dddd�dtddd�d
�id�diddd	d��ddttttgd��ddd	d��dddd��dddd��dddd��dddd��dddd��ddddd��dddd��ddd	dd��ddt	t��ddd��ddtd d!��d"dtd#d!��d$dtd#d!��d%dd	dd��d&dd	d	d��dd	dd�dd	dd�d'��id�ddt
tttgtd(�dtd)d*d+d,�dtd)d-d)d,�dtdd.dd,�d/�id�ddtdd-td,�dtdd-td,�dtd0td�dtdd-d1d,�dtdd-d1d,�dtd0d0d�d2�id�ddd	d�dtdd3d�d4�id�ddtdd-td,�dtdd-td,�dtd5td�d6�id�dd7ddd�iid�dd7ddd�iid�dd8d9did	gd:�dd	dd�d;�id�ddddd�dddd�ddd	d�dd	dd�ddd	d�dd	d	d�dd	d	d<d=�dd	dd�d>�id�ddd?d�dd@d�dd	d�dA�id�ddddB�dtt fdd	d�ddCd�dD�idE�ddFddd�iid�dG�S)HN�dict�integer��Z)�typer�min�default�booleanT�r"r$F)�max_days_in_backup�cl_backup_allowed�cl_on_premise_backup_allowed�r"�schemar$�)�trim_file_instead_of_removal�keep_original_files_days�try_restore_from_backup_first�default_action�string)r"r$�allowed�notify_on_detect�enable_scan_inotify�optimize_realtime_scan�enable_scan_modsec�sends_file_for_analysis�enable_scan_pure_ftpd�scan_modified_files)r"r$r�cloud_assisted_scan�
rapid_scan�r"rr$�,rapid_scan_rescan_unchanging_files_frequency)r"rrr$�max_signature_size_to_scani)r"rr$�max_cloudscan_size_to_scani@�max_mrs_upload_file�
detect_elf�	hyperscan)�enable_scan_cpanel�crontabs)r"r2r$r��)r"rr#�maxr$��)�interval�hour�day_of_week�day_of_monthir
)�cpu�io�ram�
user_scan_cpu�user_scan_io�
user_scan_ram�)r�
db_timeoutr)�	cpu_limit�io_limit�	ram_limitr�listr")r"r+rr$)�emails�enable_icontact_notifications�user_override_pd_rules)r"rr$r)�support_form�advisor�user_ignore_list�upgrade_button�allow_malware_scan�user_override_malware_actions�user_override_proactive_defense�*allow_local_malware_ignore_list_managementi��)�max_log_file_size�backup_count�syscall_monitor�r�readonlyr"�3https://{{ your billing system host }}:?{{ port }}/�r�purchase_page_url�r"rr+r$�generic_user_notifications)�BACKUP_RESTORE�MALWARE_CLEANUP�MALWARE_SCANNING�MALWARE_SCAN_SCHEDULE�MALWARE_SCAN_INTENSITY�MALWARE_DATABASE_SCAN�RESOURCE_MANAGEMENT�ERROR_REPORTING�SEND_ADDITIONAL_DATA�ADMIN_CONTACTS�PERMISSIONS�LOGGER�SECURE_SITE�
MY_IMUNIFY�
CONTROL_PANEL)�int�CLEANUP�NOTIFY�CLEANUP_ON_SCHEDULEr�NONE�DAY�WEEK�MONTH�DEFAULT_INTENSITY_CPU�DEFAULT_INTENSITY_IO�DEFAULT_INTENSITY_RAM�%DEFAULT_RESOURCE_MANAGEMENT_CPU_LIMIT�$DEFAULT_RESOURCE_MANAGEMENT_IO_LIMIT�%DEFAULT_RESOURCE_MANAGEMENT_RAM_LIMITrrrrr�get_root_configr�;sb���&�!��!�	'�'�&�#�&�&�
&�$�1�1��� �%
�
�*�&�#�1�1�
&�!��!�	-�-����
�
�"�Y�/�%�$�2�2�Y�
!�$�&� &��1D�E�#�#�Y�#�%�$�%�%�Y�&�%�#�(�(�Y�$)�%�#�+�+�%Y�,%�%�#�'�'�-Y�4*�%�#�,�,�5Y�<(�%�#�*�*�=Y�D&�%�#� $�(�(�EY�N&�%�#�(�(�OY�V�%� %�#���WY�`?�%�&�s�m�m� $�#�	A�A�aY�l-�%�!�&�/�/�mY�v-�%�!�(�/�/�wY�@&�%�!�(�(�(�AY�J�%� %�#���KY�T�%� %�$���UY�`&� %�#�'�'�&� %�#���iY�Y�Y�t�y]
�]
�~�%� $�c�4��7�#���&�!��� ���&�!��� � � �&�!��� �!�!�)��8�="
�"
�B�&�!���4���&�!���3���&�!��4�	��&�!��� �"�"�&�!��� �!�!�&�!��#�	"�"�G)�)�T�Y-#
�-#
�^�&�$���
&�!��!�	�����"
�"
�"�&�!���D���&�!���C���&�!��D�	����,�1 
� 
�6��)��!E�!E�F��
�
���%�#�����	!
�	!
��#�%�x�0� %�!�	��&� %�#�2�2����
�
�$�&� $�#�!�!�&� $�#���&� $�$�%�%�&� %�#�#�#�&� $�$�'�'�&� %�$�2�2�&� %�$�6�	4�4�&� %�#�?�?�K*�*�V�[.
�.
�`�&�'�&�&�&� �!�!�
-6�%�#H�#H����
�
�"���	
�
���_�-�&�$���
%�M�&�&�
�
��
�
�"�,�%�#�/�/���	
�	
�az�z�zrc
��ddddd�ddd�iid�dd	dtttgdd
�dddd�d
�id�dddd�dttfddd�d	dd�d�id�dddddd�iid�d�S)Nrr'rTc�$�|ot|��Sr)r)�xs r�<lambda>z%get_non_root_config.<locals>.<lambda>�s����c�!�f�f�rr )r"rrr#r$r*r1)r"r$r2rr%r<)r0r/riFr&rkrlrnro)rprrr|r}r~)r�r�r�rrrrr�get_non_root_configr��s+���$�%� $�4�4��#�'�'���
�
��%�#� &��1D�E� $�	#�#�&� $�#�2�2����
�
�$���
�
���_�-�&�$���
%�M�&�&�
�
��
�
�"�,�%� $�#�/�/���

�

�i?�?�?r)�__doc__rr�r�r�r�r�r�r�r�r�r�r�r�r�rrr�r�rrr�<module>r�s�����*
�	�	�	�(�$���$�8���c�4��������()�%�'(�$�(+�%�
�
�
����{�{�{�|@�@�@�@�@r

Hacked By AnonymousFox1.0, Coded By AnonymousFox