/opt/cloudlinux/venv/bin
NameSizeModeActions
activate16910644editdlrm
activate.csh9150644editdlrm
activate.fish21910644editdlrm
Activate.ps190330644editdlrm
alembic2290755editdlrm
cagefsctl_user.py159250755editdlrm
cagefs_enter_site.py18770755editdlrm
chardetect2370755editdlrm
clcpapi54090755editdlrm
cl_sysctl46200755editdlrm
coverage2310755editdlrm
coverage-3.112310755editdlrm
coverage32310755editdlrm
cpanel-dbmapping39290755editdlrm
crontab-user-wrapper.py44010755editdlrm
da_suid_caller.py6860644editdlrm
detect-requirements2380755editdlrm
dodgy2240755editdlrm
epylint2350755editdlrm
f2py2320755editdlrm
f2py32320755editdlrm
f2py3.112320755editdlrm
flake82300755editdlrm
futurize2310755editdlrm
get_gprof18850755editdlrm
get_objgraph16670755editdlrm
isort2250755editdlrm
isort-identify-imports2590755editdlrm
jsonschema2290755editdlrm
lvestats_config_reader.py11450644editdlrm
mako-render2290755editdlrm
normalizer2600755editdlrm
pasteurize2330755editdlrm
pip2370755editdlrm
pip32370755editdlrm
pip3.112370755editdlrm
plesk_suid_caller.py9050644editdlrm
prospector2290755editdlrm
py.test2370755editdlrm
pycodestyle2280755editdlrm
pydocstyle2290755editdlrm
pyflakes2270755editdlrm
pylint2330755editdlrm
pylint-config2490755editdlrm
pyreverse2390755editdlrm
pysemver2250755editdlrm
pytest2370755editdlrm
python153680755editdlrm
python3153680755editdlrm
python3.11153680755editdlrm
raven2350755editdlrm
symilar2350755editdlrm
tap2230755editdlrm
tappy2230755editdlrm
undill6030755editdlrm
virtualenv2540755editdlrm
Edit: /opt/cloudlinux/venv/bin/cagefs_enter_site.py (1877B)
#!/opt/cloudlinux/venv/bin/python3 -sbb # -*- coding: utf-8 -*- # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2025 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # https://cloudlinux.com/docs/LICENCE.TXT # """ Execute a command inside CageFS for a site (document root or domain). This wrapper provides a command-line interface for executing commands within the isolated CageFS environment for a specific website. """ import argparse import os import sys from clcagefslib.webisolation import libenter def create_parser(): """ Create argument parser for cagefs_enter_site. Returns: argparse.ArgumentParser: Configured argument parser """ parser = argparse.ArgumentParser( # the command is named with _underscores_ to match # existing cagefs_enter wrapper from lvewrappers prog="cagefs_enter_site", description="Execute a command inside CageFS for a site (document root or domain)", ) parser.add_argument("site", type=str, help="Document root or domain") parser.add_argument( "command", type=str, nargs=argparse.REMAINDER, help="Command to execute" ) return parser def main(): """ Main entry point. Returns: int: Exit code """ parser = create_parser() args = parser.parse_args() if not args.command: parser.error("COMMAND is required") try: return libenter.enter_site(args.site, args.command) except ValueError as e: print(f"Error: {e}", file=sys.stderr) return 1 except KeyboardInterrupt: # Clean Ctrl+C exit without traceback (exit code 130 = SIGINT). return 130 if __name__ == "__main__": if os.geteuid() == 0: print("Error: This program can not be run as root", file=sys.stderr) sys.exit(1) sys.exit(main())