🔐 Sid Gifari File Manager Pro
v8.0.5 | 2026-06-15 05:50:09 | PHP 8.1.34
📂
/ (Root)
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
clselect
/
__pycache__
📍 /opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/__pycache__
🔄 Refresh
✏️
Editing: cluserselect.cpython-311.pyc
Read Only
� ��j�z � �� � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl mZ d dl mZmZmZmZ d dlmZ d dlmZ d dlZd d lmZ d dlmZ d dlmZmZ d d lmZ d dl m!Z! d dlm"Z" d dl#m$Z$ d dl%m&Z&m'Z'm(Z( d dl)m*Z*m+Z+ d dl,m-Z- d dl.m/Z/ d dl0m1Z1m2Z2m3Z3 d dl4m5Z5 n# e6$ r Y nw xY w d dl7m8Z8 d dl9m:Z: n# e6$ r d� Z8dZ:Y nw xY w G d� de� � Z;dS )� )�print_function)�absolute_import)�divisionN)�configparser)�S_IRUSR�S_IWUSR�S_IRGRP�S_IROTH)� iteritems)�Path� )�ClSelect)�ClSelectExcept)�ClPwd� clcaptain)�clprint)�utils)�clcagefs)�ExternalProgramFailed)�docroot�domain_owner�userdomains)�NoDomain�NoPanelUser)�BASEDIR)�get_user_prefix)�is_ea4_enabled�read_cpanel_ea4_php_conf�configure_alt_php)�da_change_user_php_ini)�get_website_id)�load_user_configc � � d S �N� )�_s �L/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/cluserselect.py�<lambda>r( - s � �t� � c � � e Zd ZdZdZ ej � � rendZdZdZ d.d�Z ed/d �� � Zd � Z d0d�Zd1d�Zd� Zd� Zd� Zd� Zd� Z d2d�Zd2d�Zdedefd�Zd3d�Zd� Zd� Zd� Zd� Zd� Zd4d�Zd5d �Z ee � � Z d!� Z!d"� Z"d#� Z#d.d$�Z$d%� Z%d&� Z& ee&� � Z&d'� Z'd(� Z( ee(� � Z(d6d)�Z)d*� Z*d+� Z+ ee+� � Z+d,� Z,d-� Z-dS )7�ClUserSelectz/var/cagefsz /usr/selectorz'/usr/share/cagefs-skeleton/usr/selectorz/etc/cagefs/excludez.cl.selector/selector.pathNc �\ � t j � � s!t j � d� � sdS |D ]�}| j � |� � }t j � |j d� � }t j � |� � s�| � |� � } t j |� � n.# t t f$ r}t j ||� � �d}~ww xY w t � |� � ��# t � |� � w xY w��dS )z� Creates flags mod_lsapi_reset_me in users' home directories in order to recreate CRIU images when php version/extensions/options have changed For details see LVEMAN-1210 :param users: list of usernames (strings) z/var/run/mod_lsapi/criu.enabledN�mod_lsapi_reset_me)r � in_cagefs�os�path�isfile�_clpwd�get_pw_by_name�join�pw_dir�_change_uidr �write�OSErrorr r �UnableToSaveDatar+ �_restore_uid)�self�users�user�pwr0 �previous_user_data�es r'