/opt/cloudlinux/venv/lib/python3.11/site-packages
NameSizeModeActions
aiohttp/-0755rm
aiohttp-3.9.2.dist-info/-0755rm
aiohttp_jinja2/-0755rm
aiohttp_jinja2-1.5.dist-info/-0755rm
aiohttp_security/-0755rm
aiohttp_security-0.4.0.dist-info/-0755rm
aiohttp_session/-0755rm
aiohttp_session-2.9.0.dist-info/-0755rm
aiosignal/-0755rm
aiosignal-1.3.1.dist-info/-0755rm
alembic/-0755rm
alembic-1.11.1.dist-info/-0755rm
astroid/-0755rm
astroid-2.15.6.dist-info/-0755rm
attr/-0755rm
attrs/-0755rm
attrs-23.1.0.dist-info/-0755rm
backports/-0755rm
certifi/-0755rm
certifi-2023.7.22.dist-info/-0755rm
cffi/-0755rm
cffi-1.15.1.dist-info/-0755rm
chardet/-0755rm
chardet-5.2.0.dist-info/-0755rm
charset_normalizer/-0755rm
charset_normalizer-2.1.1.dist-info/-0755rm
clcagefslib/-0755rm
clcommon/-0755rm
clconfig/-0755rm
clconfigure/-0755rm
cldashboard/-0755rm
clevents/-0755rm
clflags/-0755rm
cllicense/-0755rm
cllimits/-0755rm
cllimitslib_v2/-0755rm
cllimits_validator/-0755rm
cllvectl/-0755rm
clpackages/-0755rm
clquota/-0755rm
clselect/-0755rm
clselector/-0755rm
clsentry/-0755rm
clsummary/-0755rm
clveconfig/-0755rm
clwizard/-0755rm
clwpos/-0755rm
cl_dom_collector/-0755rm
cl_website_collector/-0755rm
configparser-5.0.2.dist-info/-0755rm
contextlib2/-0755rm
contextlib2-21.6.0.dist-info/-0755rm
coverage/-0755rm
coverage-7.2.7.dist-info/-0755rm
cryptography/-0755rm
cryptography-41.0.2.dist-info/-0755rm
ddt-1.4.4.dist-info/-0755rm
dill/-0755rm
dill-0.3.7.dist-info/-0755rm
distlib/-0755rm
distlib-0.3.8.dist-info/-0755rm
docopt-0.6.2.dist-info/-0755rm
dodgy/-0755rm
dodgy-0.2.1.dist-info/-0755rm
filelock/-0755rm
filelock-3.13.1.dist-info/-0755rm
flake8/-0755rm
flake8-5.0.4.dist-info/-0755rm
flake8_polyfill/-0755rm
flake8_polyfill-1.0.2.dist-info/-0755rm
frozenlist/-0755rm
frozenlist-1.4.0.dist-info/-0755rm
future/-0755rm
future-0.18.3.dist-info/-0755rm
git/-0755rm
gitdb/-0755rm
gitdb-4.0.10.dist-info/-0755rm
GitPython-3.1.32.dist-info/-0755rm
guppy/-0755rm
guppy3-3.1.3.dist-info/-0755rm
idna/-0755rm
idna-3.4.dist-info/-0755rm
iniconfig/-0755rm
iniconfig-2.0.0.dist-info/-0755rm
isort/-0755rm
isort-5.12.0.dist-info/-0755rm
jinja2/-0755rm
Jinja2-3.0.3.dist-info/-0755rm
jsonschema/-0755rm
jsonschema-3.2.0.dist-info/-0755rm
jwt/-0755rm
lazy_object_proxy/-0755rm
lazy_object_proxy-1.9.0.dist-info/-0755rm
libfuturize/-0755rm
libpasteurize/-0755rm
lvemanager/-0755rm
lvestats/-0755rm
lve_stats-2.0.dist-info/-0755rm
lve_utils/-0755rm
lxml/-0755rm
lxml-4.9.2.dist-info/-0755rm
mako/-0755rm
Mako-1.2.4.dist-info/-0755rm
markupsafe/-0755rm
MarkupSafe-2.1.3.dist-info/-0755rm
mccabe-0.7.0.dist-info/-0755rm
mock/-0755rm
mock-5.1.0.dist-info/-0755rm
multidict/-0755rm
multidict-6.0.4.dist-info/-0755rm
numpy/-0755rm
numpy-1.25.1.dist-info/-0755rm
numpy.libs/-0755rm
packaging/-0755rm
packaging-23.1.dist-info/-0755rm
past/-0755rm
pep8_naming-0.10.0.dist-info/-0755rm
pip/-0755rm
pip-24.3.1.dist-info/-0755rm
pkg_resources/-0755rm
platformdirs/-0755rm
platformdirs-3.11.0.dist-info/-0755rm
pluggy/-0755rm
pluggy-1.2.0.dist-info/-0755rm
prettytable/-0755rm
prettytable-3.8.0.dist-info/-0755rm
prometheus_client/-0755rm
prometheus_client-0.8.0.dist-info/-0755rm
prospector/-0755rm
prospector-1.10.2.dist-info/-0755rm
psutil/-0755rm
psutil-5.9.5.dist-info/-0755rm
psycopg2/-0755rm
psycopg2_binary-2.9.6.dist-info/-0755rm
psycopg2_binary.libs/-0755rm
pycodestyle-2.9.1.dist-info/-0755rm
pycparser/-0755rm
pycparser-2.21.dist-info/-0755rm
pydocstyle/-0755rm
pydocstyle-6.3.0.dist-info/-0755rm
pyfakefs/-0755rm
pyfakefs-5.10.2.dist-info/-0755rm
pyflakes/-0755rm
pyflakes-2.5.0.dist-info/-0755rm
PyJWT-2.8.0.dist-info/-0755rm
pylint/-0755rm
pylint-2.17.4.dist-info/-0755rm
pylint_celery/-0755rm
pylint_celery-0.3.dist-info/-0755rm
pylint_django/-0755rm
pylint_django-2.5.3.dist-info/-0755rm
pylint_flask/-0755rm
pylint_flask-0.6.dist-info/-0755rm
pylint_plugin_utils/-0755rm
pylint_plugin_utils-0.7.dist-info/-0755rm
pylve-2.1-py3.11.egg-info/-0755rm
pymysql/-0755rm
PyMySQL-1.1.0.dist-info/-0755rm
pyparsing/-0755rm
pyparsing-3.0.9.dist-info/-0755rm
pyrsistent/-0755rm
pyrsistent-0.19.3.dist-info/-0755rm
pytest/-0755rm
pytest-7.4.0.dist-info/-0755rm
pytest_check/-0755rm
pytest_check-2.5.3.dist-info/-0755rm
pytest_snapshot/-0755rm
pytest_snapshot-0.9.0.dist-info/-0755rm
pytest_subprocess/-0755rm
pytest_subprocess-1.5.3.dist-info/-0755rm
pytest_tap/-0755rm
pytest_tap-3.5.dist-info/-0755rm
python_pam-1.8.4.dist-info/-0755rm
pyvirtualdisplay/-0755rm
PyVirtualDisplay-3.0.dist-info/-0755rm
PyYAML-6.0.1.dist-info/-0755rm
raven/-0755rm
raven-6.10.0.dist-info/-0755rm
requests/-0755rm
requests-2.31.0.dist-info/-0755rm
requirements_detector/-0755rm
requirements_detector-1.2.2.dist-info/-0755rm
schema-0.7.5.dist-info/-0755rm
semver/-0755rm
semver-3.0.1.dist-info/-0755rm
sentry_sdk/-0755rm
sentry_sdk-1.29.2.dist-info/-0755rm
setoptconf/-0755rm
setoptconf_tmp-0.3.1.dist-info/-0755rm
setuptools/-0755rm
setuptools-81.0.0.dist-info/-0755rm
simplejson/-0755rm
simplejson-3.19.1.dist-info/-0755rm
six-1.16.0.dist-info/-0755rm
smmap/-0755rm
smmap-5.0.0.dist-info/-0755rm
snowballstemmer/-0755rm
snowballstemmer-2.2.0.dist-info/-0755rm
sqlalchemy/-0755rm
sqlalchemy-1.3.24.dist-info/-0755rm
ssa/-0755rm
svgwrite/-0755rm
svgwrite-1.4.3.dist-info/-0755rm
tap/-0755rm
tap_py-3.2.1.dist-info/-0755rm
testfixtures/-0755rm
testfixtures-7.1.0.dist-info/-0755rm
toml/-0755rm
toml-0.10.2.dist-info/-0755rm
tomlkit/-0755rm
tomlkit-0.11.8.dist-info/-0755rm
typing_extensions-4.7.1.dist-info/-0755rm
unshare-0.22.dist-info/-0755rm
urllib3/-0755rm
urllib3-2.0.4.dist-info/-0755rm
vendors_api/-0755rm
virtualenv/-0755rm
virtualenv-20.21.1.dist-info/-0755rm
wcwidth/-0755rm
wcwidth-0.2.6.dist-info/-0755rm
websiteisolation/-0755rm
wmt/-0755rm
wrapt/-0755rm
wrapt-1.15.0.dist-info/-0755rm
xray/-0755rm
yaml/-0755rm
yarl/-0755rm
yarl-1.9.2.dist-info/-0755rm
_distutils_hack/-0755rm
_pytest/-0755rm
_yaml/-0755rm
__pycache__/-0755rm
clcontrollib.py530420644editdlrm
cldetectlib.py188430644editdlrm
cldiaglib.py496600644editdlrm
clhooklib.py12960644editdlrm
cli_utils.py16980644editdlrm
cllicenselib.py118640644editdlrm
clsetuplib.py51930644editdlrm
clsudo.py235860644editdlrm
cl_proc_hidepid.py46380644editdlrm
configparser.py15460644editdlrm
ddt.py127330644editdlrm
distutils-precedence.pth1510644editdlrm
docopt.py199460644editdlrm
lveapi.py232940644editdlrm
lvectllib.py1364790644editdlrm
lvestat.py69970644editdlrm
mccabe.py106540644editdlrm
pam.py75560644editdlrm
pep8ext_naming.py190520644editdlrm
py.py2630644editdlrm
pycodestyle.py1035010644editdlrm
pylve.cpython-311-x86_64-linux-gnu.so295280755editdlrm
remove_ubc.py58640755editdlrm
schema.py302210644editdlrm
secureio.py200370644editdlrm
simple_rpm.so155440755editdlrm
six.py345490644editdlrm
typing_extensions.py1110820644editdlrm
unshare.cpython-311-x86_64-linux-gnu.so167040755editdlrm
_cffi_backend.cpython-311-x86_64-linux-gnu.so2740480755editdlrm
_lvdmap.cpython-311-x86_64-linux-gnu.so188000755editdlrm
_pyrsistent_version.py230644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/remove_ubc.py (5864B)
#!/opt/cloudlinux/venv/bin/python3 -bb # -*- coding: utf-8 -*- # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENSE.TXT import os import sys import xml.dom.minidom as xml CoreVersion = 6 core = os.uname() if core[2].find('el5.lve0.8') != -1: CoreVersion = 5 # defined ve.cfg variables ve_cfg = '' ve_lveconfig = '' ve_ubc = '' ve_default = '' ve_lve = '' ve_defaults = '' ve_package = '' ubc = 'false' VE_CFG_PATH = '/etc/container/ve.cfg' VE_CFG_PATH_TMP = VE_CFG_PATH + '.tmp' # Save XML config ve.cfg def save_xml(xml_config): xml_config = xml_config.toprettyxml(encoding='utf-8', indent='', newl='') xml_config = xml_config.replace("\n", '').replace("\t", '') new_xml = xml.parseString(xml_config) buf = new_xml.toprettyxml(encoding='utf-8') if not buf: # paranoia mode) raise RuntimeError(f"Rejected attempt to write empty {VE_CFG_PATH}") with open(VE_CFG_PATH_TMP, 'wb') as f: f.write(buf) f.flush() os.fsync(f.fileno()) os.rename(VE_CFG_PATH_TMP, VE_CFG_PATH) def get_XML_cfg(): global ve_cfg global ve_lveconfig global ve_ubc global ve_default global ve_lve global ve_defaults global ve_package try: ve_cfg = xml.parse(VE_CFG_PATH) except Exception: print('error: bad ve.cfg file') sys.exit(1) try: ve_lveconfig = ve_cfg.getElementsByTagName("lveconfig")[0] except Exception: print('error: bad ve.cfg file') sys.exit(1) global ubc try: ve_ubc = ve_lveconfig.getElementsByTagName("system")[0].getElementsByTagName("ubc")[0].getAttribute("enabled") ubc = ve_ubc except Exception: ubc = 'true' try: ve_default = ve_lveconfig.getElementsByTagName("defaults")[0] except Exception: print('warning: default section error in ve.cfg') try: ve_lve = ve_lveconfig.getElementsByTagName("lve") except Exception: pass try: ve_package = ve_lveconfig.getElementsByTagName("package") except Exception: pass # Get defaults values from ve.cfg ve_defaults = {} try: ve_defaults['mem'] = int(ve_default.getElementsByTagName('mem')[0].getAttribute('limit')) except Exception: ve_defaults['mem'] = 262144 mem = ve_cfg.createElement('mem') mem.setAttribute('limit', str(262144)) try: ve_default.appendChild(mem) except Exception: pass if CoreVersion != 5: try: ve_defaults['io'] = int(ve_default.getElementsByTagName('io')[0].getAttribute('limit')) if ve_defaults['io'] == 25: ve_default.getElementsByTagName('io')[0].setAttribute('limit', str(1024)) except Exception: ve_defaults['io'] = 1024 io = ve_cfg.createElement('io') io.setAttribute('limit', str(1024)) try: ve_default.appendChild(io) except Exception: pass if os.path.exists('/sys/module/lve/parameters/lve_ubc'): try: with open('/sys/module/lve/parameters/lve_ubc', "w", encoding="utf-8") as f: f.write('Y') except Exception: pass def main(): get_XML_cfg() for el in ve_lve: if ubc == 'false': try: el.getElementsByTagName('mem')[0].setAttribute('limit', str(0)) except Exception: mem = ve_cfg.createElement('mem') mem.setAttribute('limit', str(0)) el.appendChild(mem) else: try: mem = el.getElementsByTagName('mem')[0].getAttribute('limit') except Exception: mem = ve_cfg.createElement('mem') mem.setAttribute('limit', str(ve_defaults['mem'])) el.appendChild(mem) else: pass if CoreVersion != 5: if ve_defaults['io'] == 25: try: if ( int(el.getElementsByTagName('io')[0].getAttribute('limit')) <= 100 and int(el.getElementsByTagName('io')[0].getAttribute('limit')) != 0 ): el.getElementsByTagName('io')[0].setAttribute('limit', str(1024)) except Exception: pass for el in ve_package: if ubc == 'false': try: el.getElementsByTagName('mem')[0].setAttribute('limit', str(0)) except Exception: mem = ve_cfg.createElement('mem') mem.setAttribute('limit', str(0)) el.appendChild(mem) else: try: mem = el.getElementsByTagName('mem')[0].getAttribute('limit') except Exception: mem = ve_cfg.createElement('mem') mem.setAttribute('limit', str(ve_defaults['mem'])) el.appendChild(mem) if CoreVersion != 5: if ve_defaults['io'] == 25: try: if ( int(el.getElementsByTagName('io')[0].getAttribute('limit')) <= 100 and int(el.getElementsByTagName('io')[0].getAttribute('limit')) != 0 ): el.getElementsByTagName('io')[0].setAttribute('limit', str(1024)) except Exception: pass try: ve_ubc = ve_lveconfig.getElementsByTagName("system") for el in ve_ubc: el.parentNode.removeChild(el) except Exception: pass save_xml(ve_cfg) sys.exit(0) if __name__ == "__main__": main()