/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/__pycache__
NameSizeModeActions
clcagefs.cpython-311.pyc172630644editdlrm
clcaptain.cpython-311.pyc44100644editdlrm
clconfig.cpython-311.pyc32630644editdlrm
clconfpars.cpython-311.pyc191050644editdlrm
clcustomscript.cpython-311.pyc18970644editdlrm
cldebug.cpython-311.pyc13250644editdlrm
clemail.cpython-311.pyc24730644editdlrm
clexception.cpython-311.pyc17360644editdlrm
clfunc.cpython-311.pyc122330644editdlrm
clhook.cpython-311.pyc112290644editdlrm
cllog.cpython-311.pyc28500644editdlrm
cloutput.cpython-311.pyc8460644editdlrm
clproc.cpython-311.pyc91410644editdlrm
clpwd.cpython-311.pyc122610644editdlrm
clquota.cpython-311.pyc18290644editdlrm
clsec.cpython-311.pyc15890644editdlrm
clwpos_lib.cpython-311.pyc236420644editdlrm
const.cpython-311.pyc2930644editdlrm
evr_utils.cpython-311.pyc51310644editdlrm
features.cpython-311.pyc62330644editdlrm
group_info_reader.cpython-311.pyc66150644editdlrm
lock.cpython-311.pyc20190644editdlrm
mail_helper.cpython-311.pyc73770644editdlrm
mysql_lib.cpython-311.pyc102460644editdlrm
php_conf_reader.cpython-311.pyc115570644editdlrm
sysctl.cpython-311.pyc106710644editdlrm
ui_config.cpython-311.pyc47990644editdlrm
utils.cpython-311.pyc464610644editdlrm
utils_cmd.cpython-311.pyc42920644editdlrm
__init__.cpython-311.pyc15720644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/clcommon/__pycache__/features.cpython-311.pyc (6233B)
]j $UddlZddlmZddlmZmZmZmZddlm Z GddeZ e e Z e e e d<e je je jgZde e fd Ze je je je jgZe je jgZe je je jgZgZe e e d <de e fd Ze je je je jgZde e fd Zde e fd Z de!e e"ffdZ#de e fdZ$dZ%dZ&de'dzfdZ(dS)N)StrEnum)is_cl_admin_editionis_cl_shared_pro_edition_safelyis_cl_solo_edition is_container) is_ubuntucFeZdZdZdZdZdZdZdZdZ dZ d Z d Z d Z d Zd ZdZdS)FeaturezS Enum of available CloudLinux features that vendors can disable or enable. php_selector ruby_selectorpython_selectornodejs_selector mod_lsapimysql_governorlvewizardcagefsreseller_limitsxray accelerate_wp autotracingN)__name__ __module__ __qualname____doc__ PHP_SELECTOR RUBY_SELECTORPYTHON_SELECTORNODEJS_SELECTORLSAPIGOVERNORLVEWIZARDCAGEFSRESELLER_LIMITSXRAYWPOS AUTOTRACINGq/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/clcommon/features.pyr r s["L#M'O'O EH C F F'O D DKKKr*r ALL_CL_FEATURESreturnc0trtSgS)z Return overrides that are applied to the list of features depending on the current system base os. Right now we support two backends: rhel-like almalinux and ubuntu. )r!UBUNTU_BASED_CL_FEATURES_DISABLEDr)r*r+%_get_features_disabled_by_system_typer0.s{{100 Ir*SHARED_PRO_CL_FEATURES_DISABLEDctdrtStdrtSt rt St S)NTskip_jwt_check)rSOLO_CL_FEATURES_DISABLEDrADMIN_CL_FEATURES_DISABLEDrr1SHARED_CL_FEATURES_DISABLEDr)r*r+!_get_features_disabled_by_licenser8OsN...+(( D 1 1 1+)) ( * *+..**r*c0trtSgS)z Return overrides that are applied to the list of features depending on the current system environment. Right now we support two envs: - bare metal or virtualized servers - virtuoso containers )rCONTAINER_CL_FEATURES_DISABLEDr)r*r+%_get_features_disabled_by_environmentr;bs~~.-- Ir*c6ddlm}|S)Nrcpapi)clcommonr>get_unsupported_featuresr=s r+#get_control_panel_disabled_featuresrAps&  ) ) + ++r*ct}t}t}t}t t j||||fdtDS)az Return dict of CloudLinux features that can be used on current system. The key is the feature name and the value is True if feature is allowed to be used and False otherwise. By default, all features are assumed to be supported later we check different conditions and turn off features that are not supported on current CloudLinux intallation. ci|]}||vSr)r)).0featureunsuppored_featuress r+ z-get_cl_feature_status_map..s1      33   r*)rAr0r8r;set itertoolschainr,)panel_supported_features features_disabled_by_system_typefeatures_disabled_by_license features_disabled_by_environmentrFs @r+get_cl_feature_status_maprOws CDD'L'N'N$#D#F#F 'L'N'N$ , ( , $       &   r*cVdtDS)z, Return a list of enabled features. cg|] \}}|| Sr)r))rDrEis_feature_enableds r+ z+get_cl_enabled_features..s3    'G'     r*)rOitemsr)r*r+get_cl_enabled_featuresrUs5  +D+F+F+L+L+N+N   r*cbtdrtStdrtSdS)zm Return the maximum number of hosting accounts that are currently allowed by CloudLinux license. Tr3N)r!MAX_HOSTING_ACCOUNTS_SOLO_EDITIONr"MAX_HOSTING_ACCOUNTS_ADMIN_EDITIONr)r*r+get_hosting_accounts_limitr[s; ...200 D 1 1 1211 4r*))rIenumrclcommon.lib.cleditionrrrrclcommon.utilsrr listr,__annotations__rrrr/r0r!r"r%r5r6r&r'r(r7r1r8r:r;rAdictboolrOrUrYrZintr[r)r*r+rds\  %$$$$$     g   ("&gg...   %! tG}       K      L L  24g333+4=++++   K  " tG}    ,T'],,,,!4 #6!!!!Hg%&!%&" C$J      r*