jOfdZddlZd\ZZZd\ZZZZdZ dZ dZ dZ dZ dZdZdZd 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 . Copyright © 2019 Cloud Linux Software Inc. This software is also available under ImunifyAV commercial license, see N)notifycleanupcleanup_on_schedule)nonedayweekmonthicfd}|S)Nc"||S|SN)valuecoerces @/opt/imunify360/venv/share/imunify360/config_schema/antivirus.pyfznullable..f+s =Lve}}r)rrs` rnullabler*s# Hrcddlm}|jsB|dd|dd|dd|S)z?Reject waf_enabled changes when security_plugin_enabled is off.r) Wordpress waf_enabledNai_bot_protectionai_bot_protection_preset) defence360agent.contracts.configrSECURITY_PLUGIN_ENABLEDpop) wordpressrs rwordpress_waf_rulesr3sc::::::  ,8 mT*** )4000 0$777 rcjtjds|Sd|vr |dsd|d<|S)zA To prevent turning off MyImunify if feature flag exists z'/var/imunify360/myimunify-freemium.flagenableT)ospathexists) myimunifys rmyimunify_rulesr&>sF 7>>C D D9Yx%8" ( rcidddtdddddd dd d d id d dddd dtddddid ddiddd d ddttttgdddd d dddd dddd dddd dddd dddd ddddddddd ddd ddd dt tddd!d"dtd#d$d%dtd&d$d'dtd&d$d(dd ddd)dd d ddd dddd dddd ddd*id d+ddt t ttgtd,dtd-d.d/d0dtd-d1d-d0dtdd2dd0d3id d4ddtdd1td0dtdd1td0dtd5tddtdd1d6d0dtdd1d6d0dtd5d5ddtd5tdd7id d8ddd d dtdd9dd:id d;ddtdd1td0dtdd1td0dtddd?ddd iid d@dd?ddd iid dAddBdCdid gdDdd dddEid dFdd?dd d iid dGdddddddddddd ddd ddddd ddd d ddd d dHdIdd dddd d ddJ id dKdddLd ddMd dd d dNid dOddddPdQdt t"fdd d ddRd dSidTdUddVddd iid dWddd d ddd dd d ddXgdYddZid d[dd\dddd ddd ddd ddd ddd ddd ddd d]id iid iS)^NBACKUP_RESTOREdictintegerZ)typermindefaultbooleanTr-r/F)max_days_in_backupcl_backup_allowedcl_on_premise_backup_allowedr-schemar/MALWARE_CLEANUP)trim_file_instead_of_removalkeep_original_files_daysMALWARE_SCANNINGtry_restore_from_backup_firstdefault_actionstring)r-r/allowednotify_on_detectenable_scan_inotifyoptimize_realtime_scanenable_scan_modsecsends_file_for_analysisenable_scan_pure_ftpdscan_modified_files)r-r/rcloud_assisted_scan rapid_scanr-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_cpanelcrontabsdetect_admin_toolsMALWARE_SCAN_SCHEDULE)r-r?r/r)r-rr.maxr/intervalhour day_of_week day_of_monthMALWARE_SCAN_INTENSITYir )cpuioram user_scan_cpu user_scan_io user_scan_ram resident_ramMALWARE_DATABASE_SCAN)r! db_timeoutRESOURCE_MANAGEMENTr ) cpu_limitio_limit ram_limitERROR_REPORTINGr!SEND_ADDITIONAL_DATAADMIN_CONTACTSlistr-)r-r6rr/)emailsenable_icontact_notificationsPATCHMAN PERMISSIONSuser_override_pd_rules)r-rr/r) support_formadvisoruser_ignore_listupgrade_buttonallow_malware_scanuser_override_malware_actionsuser_override_proactive_defense*allow_local_malware_ignore_list_managementuse_plesk_service_planLOGGERi)max_log_file_size backup_countsyscall_monitor SECURE_SITErreadonlyr- MY_IMUNIFY3https://{{ your billing system host }}:?{{ port }}/r!purchase_page_urlr-rr6r/ CONTROL_PANELgeneric_user_notifications WORDPRESSbalanced)rstrictmonitor)security_plugin_enabledrrr DASHBOARD notifications)insecure_wp_coreoutdated_wp_corescan_not_scheduled malware_foundmalicious_redirect_detectedmalware_detectedaibolit_vulnerable)intCLEANUPNOTIFYCLEANUP_ON_SCHEDULErNONEDAYWEEKMONTHDEFAULT_INTENSITY_CPUDEFAULT_INTENSITY_IODEFAULT_INTENSITY_RAMDEFAULT_INTENSITY_RESIDENT_RAM%DEFAULT_RESOURCE_MANAGEMENT_CPU_LIMIT$DEFAULT_RESOURCE_MANAGEMENT_IO_LIMIT%DEFAULT_RESOURCE_MANAGEMENT_RAM_LIMITr)r&rrrget_root_configrIs T &!! ''&#&& &$11 %  T * &#11 &!! --    +T J ^/%$22^ !$& &1DE## ^#%$%%^&%#((^$)%#++%^,%%#''-^4*%#,,5^<(%#**=^D&%# $((E^N&%#((O^V% %#W^`?%&smm $# AAa^l-%!&//m^v-%!(//w^@&%!(((A^J% %#K^T% %$U^`& %#'' & %# & %#''s^^^~Cb b KT P % $c47# &! &!   &! !!)8=" " QT P !&!4 &!3 &!4 &! ""&! !!&!# ""&!= !!S//`e3# 3# QT x &$ &!!   " " yT X &!D &!C &!D ,1  YT L )!E!EF  MT V %#  ! ! WT j #%x0 %! & %#22    kT L %$    M T ` & $#!! & $# & $$%% & %### & $$'' & %$22 & %$6 44& %#?? & %$++U//`e3 3 a T H &'&& & !! -6%#H#H    I T h    i T t _-&$ %M&&    u T V ,%#//    W T j &$,, &#   &$&& %)@@@--&+  k T X "%.'+-- %.'+-- %.'+// %.'+** %.'+88 %.'+-- %.'+//3< "A!"!"#HM' ' Y T T Trcvddddddddiiddd dtttgdd d ddd d iddddddttfd ddd dddidddd ddd iiddd t t ttgddtddddtddddtddddiddttfdd ddd iiddS)Nr)r2r*Tc$|ot|Sr)r)xs rz%get_non_root_config..)s c!ffrr+)r-rrr.r/r5r>)r-r/r?rr0rI)r=r<rFr1rrrr)r-r?rrT)r-rr.rVrWrXrYr)r(r;rrrrSr) rrrr)r&rrrrrrrrrget_non_root_configr!s$% $44# ''   %# &1DE $ ##& $#22    "%)dFKK_-&$ %M&&    $,% $#//   % $c47 &! &!   &! !!#05" " :01% $#     qd d dr)__doc__r"rrrrrrrrrrrrrrrrr&rrrrrrs* ($$ 8c4!%()%'($(+%   UUUpeeeeer