PATH:
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
xray
/
reconfiguration
/
__pycache__
� �%�i � �� � d Z ddlZddlZddlZddlZddlmZ ddlmZ ej e � � ZdZdZ edd� � � � fZ ed d� � � � fZded efd�Zdeded ee fd�ZdS )z< Shared constants and helpers for xray.ini file management. � N)�Optional)�cagefsctl_get_prefix)�php44�php51�php52�php53zphp\d+-imunifyzphp-internal)z /opt/alt/php[0-9][0-9]/link/confz+/opt/cpanel/ea-php[0-9][0-9]/root/etc/php.dz$/opt/plesk/php/[0-9].[0-9]/etc/php.dz'/usr/local/php[0-9][0-9]/lib/php.conf.dzM/usr/share/cagefs/.cpanel.multiphp/opt/cpanel/ea-php[0-9][0-9]/root/etc/php.dzA/usr/share/cagefs-skeleton/usr/local/php[0-9][0-9]/lib/php.conf.dz./var/cagefs/*/*/etc/cl.php.d/alt-php[0-9][0-9]c �\ � t j | � d� � d � � S �N�/� ��pwd�getpwnam�split��paths �T/opt/cloudlinux/venv/lib64/python3.11/site-packages/xray/reconfiguration/xray_ini.py�<lambda>r . � � �#�,�t�z�z�#���q�'9�:�:� � )r �userz0/var/cagefs/*/*/etc/cl.php.d/*/alt-php[0-9][0-9]c �\ � t j | � d� � d � � S r r r s r r r 7 r r �dir_path�returnc �J � t D ]}t j || � � r dS �dS )z1 Check if given path is in exclude list. TF)�EXCLUDE_DIR_PATHS�re�search)r �patterns r �is_excluded_pathr <