📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 20:12:04
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clcagefslib
/
webisolation
/
crontab
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/clcagefslib/webisolation/crontab/__pycache__
🔄 Refresh
✏️
Editing: utils.cpython-311.pyc
Read Only
� s^j� � �D � d Z ddlZddlZddlmZ ddlmZ dedz fd�ZdS )z)Utility functions for crontab operations.� N)�userdomains� )�DOCUMENT_ROOT_ENV�returnc � � t j � t � � } | �dS t j � � }|dk r| S t j |� � j }d� t |� � D � � }| |vrt d| �d�� � �| S )u Get the document root from environment variable. When PROXYEXEC_DOCUMENT_ROOT is set, validate that it is one of the calling user's real document roots — defence in depth against a user invoking the wrapper directly with a forged value. Returns: Optional[str]: The document root path if PROXYEXEC_DOCUMENT_ROOT is set, None otherwise. Raises: ValueError: If PROXYEXEC_DOCUMENT_ROOT is set but does not appear in the calling user's docroot list. Nr c � � h | ]\ }}|��S � r )�.0�_�docroots �Zopt/cloudlinux/venv/lib/python3.11/site-packages/clcagefslib/webisolation/crontab/utils.py� <setcomp>z$get_document_root.<locals>.<setcomp>, s � �E�E�E���G�W�E�E�E� zDocument root path z is not found for user) �os�environ�getr �getuid�pwd�getpwuid�pw_namer � ValueError)� document_root�uid�username� user_docrootss r �get_document_rootr s� � � �J�N�N�#4�5�5�M����t� �)�+�+�C� �a�x�x����|�C� � �(�H�E�E�{�8�/D�/D�E�E�E�M��M�)�)��I�-�I�I�I� � � � �r ) �__doc__r r �clcommon.cpapir � constantsr �strr r r r �<module>r! sl �� 0� /� � � � � � � � � &� &� &� &� &� &� (� (� (� (� (� (�!�3��:� !� !� !� !� !� !r
💾 Save Changes
❌ Cancel